-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 859 Bytes
/
Makefile
File metadata and controls
35 lines (25 loc) · 859 Bytes
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
CC=gcc
CFLAGS=-Wall `pkg-config --cflags gtk+-3.0` -DG_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DGDK_PIXBUF_DISABLE_DEPRECATED=1 -DGTK_DISABLE_DEPRECATED=1
LIBS=-lm `pkg-config --libs gtk+-3.0`
bindir ?= /usr/bin
mandir ?= /usr/share/man
.c.o:
$(CC) -c $(CFLAGS) $(CPPFLAGS) $<
all: main.o sort.o points.o drawing.o g3data2.1.gz
$(CC) $(CFLAGS) -o g3data2 main.o sort.o points.o drawing.o $(LIBS)
strip g3data2
main.o: main.c main.h strings.h vardefs.h
sort.o: sort.c main.h
points.o: points.c main.h
drawing.o: drawing.c main.h
g3data2.1.gz: g3data2.sgml
rm -f *.1
onsgmls g3data2.sgml | sgmlspl /usr/share/sgml/docbook/utils-0.6.14/helpers/docbook2man-spec.pl
gzip g3data2.1
clean:
rm -f *.o g3data2 g3data2.1.gz *~ manpage.*
install:
install g3data2 $(bindir)
install g3data2.1.gz $(mandir)/man1
uninstall:
rm $(bindir)/g3data2