ldmc/morphisms/Makefile

16 lines
369 B
Makefile
Raw Normal View History

LIB_DIR=$(shell pwd)/lib
2025-01-29 00:06:39 +01:00
TARGETS=lib/libmorph_length-prefix.so lib/libmorph_posint.so test
2025-01-28 22:33:08 +01:00
all: $(TARGETS)
lib/libmorph_%.so: src/%.c
$(CC) -O3 -shared -o $@ -fPIC -Iinclude $<
2025-01-29 00:06:39 +01:00
test: test.c lib/libmorph_length-prefix.so lib/libmorph_posint.so
$(CC) -O3 -L$(LIB_DIR) -o $@ -Iinclude $< -lmorph_length-prefix -lmorph_posint
2025-01-28 22:33:08 +01:00
clean:
rm $(TARGETS)
.PHONY: all clean