-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (41 loc) · 1.3 KB
/
Makefile
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Unix C makefile for the Infocom tools
CC = cc
NROFF = nroff
#Some systems declare getopt, others do not. Pick whichever works
#CFLAGS = -O -DHAS_GETOPT
CFLAGS += -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -w -D_FORTIFY_SOURCE=2
LDFLAGS = -Wl,-O2,-z,relro,--as-needed,--hash-style=gnu
LIBS =
# .SUFFIXES: .c .h .1 .man
.SUFFIXES: .c .h .1
# .1.man:
# $(NROFF) -man $*.1 | col -b > $*.man
MANPAGES = infodump.1 inforead.1 txd.1 check.1 pix2gif.1
CINC =
COBJS = check.o
IINC = tx.h
IOBJS = infodump.o showhead.o showdict.o showobj.o showverb.o txio.o infinfo.o symbols.o
PINC = pix2gif.h
POBJS = pix2gif.o
TINC = tx.h
TOBJS = txd.o txio.o showverb.o infinfo.o symbols.o showobj.o
# "doc" target merely breaks manpages for modern systems
# all : check infodump pix2gif txd doc
all : check infodump pix2gif txd
check : $(COBJS)
$(CC) -o $@ $(LDFLAGS) $(COBJS) $(LIBS)
$(COBJS) : $(CINC)
infodump : $(IOBJS)
$(CC) -o $@ $(LDFLAGS) $(IOBJS) $(LIBS)
$(IOBJS) : $(IINC)
pix2gif : $(POBJS)
$(CC) -o $@ $(LDFLAGS) $(POBJS) $(LIBS)
$(POBJS) : $(PINC)
txd : $(TOBJS)
$(CC) -o $@ $(LDFLAGS) $(TOBJS) $(LIBS)
$(TOBJS) : $(TINC)
# "doc" target merely breaks manpages for modern systems
clean :
# -rm *.o check infodump pix2gif txd $(FORMATTEDMAN)
-rm *.o check infodump pix2gif txd
doc: $(FORMATTEDMAN)