21 lines
383 B
Makefile
21 lines
383 B
Makefile
CXXFLAGS+= -std=c++26 -Oz
|
|
CPPFLAGS+= -I .
|
|
|
|
LDFLAGS+= -Wl,-rpath,'$$ORIGIN/'
|
|
|
|
PROGRAMS=calx
|
|
|
|
all: ${PROGRAMS}
|
|
|
|
${PROGRAMS}: libalepha.so
|
|
|
|
|
|
libalepha.so:
|
|
mkdir -p build_alepha
|
|
cd build_alepha; cmake -GNinja -DCMAKE_BUILD_TYPE=Release ../Alepha; cp ../Alepha/helpful-things/Makefile .; make
|
|
cp build_alepha/libalepha.so .
|
|
|
|
clean:
|
|
rm -f ${PROGRAMS}
|
|
rm -fR build_alepha libalepha.so
|