diff Makefile.gen @ 421:f18f07d8a731

Fix building with libpng.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 03 Nov 2012 07:54:23 +0200
parents 24548dba1eb6
children e88b2993801c
line wrap: on
line diff
--- a/Makefile.gen	Sat Nov 03 07:54:13 2012 +0200
+++ b/Makefile.gen	Sat Nov 03 07:54:23 2012 +0200
@@ -218,6 +218,10 @@
 endif
 
 
+ifeq ($(DM_USE_LIBPNG),yes)
+DM_CFLAGS += -DDM_USE_LIBPNG $(LIBPNG_CFLAGS)
+endif
+
 ###
 ### Rest of the rules
 ###
@@ -380,7 +384,7 @@
 
 $(BINPATH)gfxconv$(EXEEXT): $(OBJPATH)gfxconv.o $(DMLIB_A)
 	@echo " LINK $+"
-	@$(CC) -o $@ $(filter %.o %.a,$+) $(DM_LDFLAGS) $(LIBPNG_CFLAGS) $(LIBPNG_LDFLAGS)
+	@$(CC) -o $@ $(filter %.o %.a,$+) $(DM_LDFLAGS) $(LIBPNG_LDFLAGS)
 
 $(BINPATH)view64$(EXEEXT): $(OBJPATH)view64.o $(DMLIB_A)
 	@echo " LINK $+"