Building support and size support.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user