--- Makefile.orig 2008-12-14 08:20:17.000000000 +0000 +++ Makefile 2009-02-26 19:26:26.052491697 +0000 @@ -1,15 +1,13 @@ -CC=gcc -CFLAGS=-Wall `pkg-config --cflags gtk+-2.0` +MYCFLAGS=-Wall `pkg-config --cflags gtk+-2.0` LIBS=`pkg-config --libs gtk+-2.0` bindir ?= /usr/bin mandir ?= /usr/share/man .c.o: - $(CC) -c $(CFLAGS) $(CPPFLAGS) $< + $(CC) -c $(CFLAGS) $(CPPFLAGS) $(MYCFLAGS) $< -g3data: main.o sort.o points.o drawing.o g3data.1.gz - $(CC) $(CFLAGS) -o g3data main.o sort.o points.o drawing.o $(LIBS) - strip g3data +g3data: main.o sort.o points.o drawing.o g3data.1 + $(CC) $(LDFLAGS) -o g3data main.o sort.o points.o drawing.o $(LIBS) main.o: main.c main.h strings.h vardefs.h @@ -19,17 +17,17 @@ drawing.o: drawing.c main.h -g3data.1.gz: g3data.sgml +g3data.1: g3data.sgml rm -f *.1 onsgmls g3data.sgml | sgmlspl /usr/share/sgml/docbook/utils-0.6.14/helpers/docbook2man-spec.pl - gzip g3data.1 + mv *.1 g3data.1 clean: - rm -f *.o g3data g3data.1.gz *~ manpage.* + rm -f *.o g3data g3data.1 *~ manpage.* install: install g3data $(bindir) - install g3data.1.gz $(mandir)/man1 + install g3data.1 $(mandir)/man1 uninstall: rm $(bindir)/g3data