From c09f96fb7d04adb2f4984b9a7c8e18db29ac942d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Apr 2014 14:07:09 +0200 Subject: update makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 $@ $< -- cgit v1.2.3-70-g09d2