From 24103bc5ae3d568ca97bdb70175b975fa680546c Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 30 Jun 2017 09:44:25 +0200 Subject: Refactor conformal factor evaluation. --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3