summaryrefslogtreecommitdiff
blob: 859f7bf9ef600ec03f8bce92cd2dbe1adf217559 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- Makefile	2002-01-01 22:46:46.000000000 +0000
+++ Makefile.new	2002-11-11 01:11:12.000000000 +0000
@@ -21,9 +21,9 @@
 man1dir     = $(mandir)/man1
 
 CC      = gcc -W -Wall
-CFLAGS  = -O2 -fomit-frame-pointer
-LDFLAGS = -s
-LIBS    = -lpng
+CFLAGS  += -fomit-frame-pointer `libpng-config --cflags`
+LDFLAGS = -s `libpng-config --ldflags` 
+LIBS    = `libpng-config --libs`
 INSTALL = install
 INSTALL_EXEC = $(INSTALL) -c -m 755
 INSTALL_DATA = $(INSTALL) -c -m 644