summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 707d284..92ab428 100644
--- a/Makefile
+++ b/Makefile
@@ -111,7 +111,11 @@ bin/%.so: obj/%.o obj/%_c.o
@mkdir -p bin
$(CC) $(FLAGS) $$($(PKGCONFIG) --libs $($(LIBS_))) -shared -o $@ $^
-obj/%.o: src/%.c src/%.h
+obj/%.o: src/%.c
+ @mkdir -p obj
+ $(CC) $(FLAGS) -c -o $@ $<
+
+obj/%_c.o: src/%_c.c src/%_c.h
@mkdir -p obj
$(CC) $(FLAGS) -c -o $@ $<