Building support and size support.

This commit is contained in:
2026-07-21 23:40:50 -04:00
parent 68969322d0
commit 1a1364ec7c
4 changed files with 41 additions and 12 deletions
+22 -6
View File
@@ -1,16 +1,32 @@
CXXFLAGS+= -std=c++23 -O3
TARGET=cudir
CPPFLAGS+= -I /usr/local/include
CPPFLAGS+= -I.
LDFLAGS+= -Wl,-rpath,'$$ORIGIN/'
LD=$(CXX)
OBJECTS= helpers.o format.o cudir.o
LDFLAGS+= -Wl,-rpath,'$$ORIGIN/' -L .
LDLIBS+= -lalepha
all: cudir
OBJECTS= helpers.o format.o
OBJECTS+= $(TARGET).o
all: __program
$(TARGET): $(OBJECTS) libalepha.so
$(LD) $(LDFLAGS) -o $@ $(OBJECTS) $(LDLIBS)
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 .
cudir: $(OBJECTS)
$(CXX) -o $@ $(OBJECTS)
clean:
rm -f cudir *.o
rm -f $(TARGET) $(OBJECTS)
rm -fR build_alepha libalepha.so
__program: $(TARGET)