aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2239dc6..15b21d8 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,12 @@ LDFLAGS = --version-script=libbrilldata.v -shared -lm -llapacke
TARGET = libbrilldata.so
OBJS = basis.o \
+ cpu.o \
+ cpuid.o \
eval.o \
eval_metric.o \
+ eval_psi_radial.o \
+ expansion.o \
init.o \
log.o \
qfunc.o \
@@ -18,10 +22,19 @@ all: $(TARGET)
$(TARGET): $(OBJS)
ld ${LDFLAGS} -o $@ $(OBJS)
+%.o: %.c
+ cc $(CFLAGS) -MMD -MF $(@:.o=.d) -MT $@ -c -o $@ $<
+
+%.o: %.asm
+ yasm -f elf -m amd64 -M $< > $(@:.o=.d)
+ yasm -f elf -m amd64 -o $@ $<
+
clean:
-rm $(OBJECTS) $(TARGET)
test: $(TARGET)
LD_LIBRARY_PATH=. ./test.py
+-include $(OBJS:.o=.d)
+
.PHONY: clean test