From c78cb17e2a8055f71d210e719e72ace7e9fb7b2e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 15 Apr 2014 22:06:56 +0200 Subject: fix errors and warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d0023f3..fa273a3 100644 --- a/Makefile +++ b/Makefile @@ -132,6 +132,10 @@ obj/%.o: src/%.c @mkdir -p obj $(CC) $(FLAGS) $(CWARN) -c -o $@ $< +obj/%.o: src/%.c src/%.h + @mkdir -p obj + $(CC) $(FLAGS) $(CWARN) -c -o $@ $< + obj/%_c.o: src/%_c.c src/%_c.h @mkdir -p obj $(CC) $(FLAGS) $(CWARN) -c -o $@ $< @@ -141,9 +145,11 @@ obj/%.o: obj/%.c $(CC) $(FLAGS) -c -o $@ $< ifeq ($(FAKE_W32),y) -obj/blueshift_w32gdi_c.o: FLAGS+=-DFAKE_W32GDI obj/fake_w32gdi.o obj/fake_w32gdi.h +obj/blueshift_w32gdi_c.o: src/blueshift_w32gdi_c.c src/blueshift_w32gdi_c.h \ + obj/fake_w32gdi.o src/fake_w32gdi.h + @mkdir -p bin + $(CC) $(FLAGS) $$($(PKGCONFIG) --libs $($(LIBS_))) -shared -DFAKE_W32GDI -o $@ $^ endif -obj/fake_w32gdi.o: obj/fake_w32gdi.h # Build rules for Cython source files -- cgit v1.2.3-70-g09d2