diff options
author | Anton Khirnov <anton@khirnov.net> | 2017-06-30 09:44:25 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2017-06-30 09:45:37 +0200 |
commit | 24103bc5ae3d568ca97bdb70175b975fa680546c (patch) | |
tree | 595ab9702987a266e7730807cdb1f4279b838a78 /Makefile | |
parent | d8e21cfe33c9fd98109374510311479955684412 (diff) |
Refactor conformal factor evaluation.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |