blob: 4f393442a69cb043b19bb29e7166770973faf057 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
--- 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
+ $(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
|