summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-15 22:06:56 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-15 22:06:56 +0200
commitc78cb17e2a8055f71d210e719e72ace7e9fb7b2e (patch)
treeb763599952d8ae94f6b32f1f2f5aea87e4f764fa /Makefile
parentCython side of Windows GDI support (diff)
downloadblueshift-c78cb17e2a8055f71d210e719e72ace7e9fb7b2e.tar.gz
blueshift-c78cb17e2a8055f71d210e719e72ace7e9fb7b2e.tar.bz2
blueshift-c78cb17e2a8055f71d210e719e72ace7e9fb7b2e.tar.xz
fix errors and warnings
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
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