2006-06-05 15:59:38 +02:00
|
|
|
--- Makefile.orig Mon Mar 27 22:38:37 2006
|
|
|
|
+++ Makefile Mon Jun 5 15:37:15 2006
|
|
|
|
@@ -3,15 +3,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-CC = gcc
|
|
|
|
-CFLAGS = -O2 -g -Wall `pkg-config gtk+-2.0 --cflags`
|
|
|
|
+CC ?= gcc
|
|
|
|
+CFLAGS += `pkg-config gtk+-2.0 --cflags`
|
|
|
|
|
|
|
|
-LD = $(CC)
|
|
|
|
-LDFLAGS = `pkg-config gtk+-2.0 --libs` -lm
|
|
|
|
+LD ?= $(CC)
|
|
|
|
+LDFLAGS += `pkg-config gtk+-2.0 --libs` -lm
|
2006-03-19 01:35:19 +01:00
|
|
|
|
|
|
|
ifeq ($(PNG),yes)
|
2006-03-26 21:41:18 +02:00
|
|
|
CFLAGS += -DHAVE_LIBPNG
|
2006-03-19 01:35:19 +01:00
|
|
|
-LDFLAGS += -lpng
|
|
|
|
+CFLAGS += `pkg-config --cflags ${LOCALBASE}/libdata/pkgconfig/libpng12.pc`
|
2006-05-28 09:37:30 +02:00
|
|
|
+LDFLAGS += `pkg-config --libs ${LOCALBASE}/libdata/pkgconfig/libpng12.pc`
|
2006-03-19 01:35:19 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
SRCS = xnecview.c xwin.c parse_input.c parse_output.c draw.c draw_opaque.c freqplot.c postscript.c icon.xbm
|