summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-02 14:07:09 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-02 14:07:09 +0200
commitc09f96fb7d04adb2f4984b9a7c8e18db29ac942d (patch)
tree16958dfa4da7d562b9db916d3644da6e0e489646 /Makefile
parentdocument (diff)
downloadblueshift-c09f96fb7d04adb2f4984b9a7c8e18db29ac942d.tar.gz
blueshift-c09f96fb7d04adb2f4984b9a7c8e18db29ac942d.tar.bz2
blueshift-c09f96fb7d04adb2f4984b9a7c8e18db29ac942d.tar.xz
update makefile
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-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 $@ $<