]>
Commit | Line | Data |
---|---|---|
36c4fbeb | 1 | LEX = flex |
101d92af | 2 | BUILD = jethro kraut cockney jive nyc ken ky00te newspeak nethackify scramble |
32a7bed8 | 3 | OTHER = eleet b1ff chef jibberish upside-down rasterman studly fudd \ |
89c1b3d2 | 4 | censor spammer uniencode pirate kenny scottish fanboy LOLCAT |
ef230639 MG |
5 | ifndef CFLAGS |
6 | CFLAGS = -O2 | |
7 | endif | |
8 | CFLAGS += $(CPPFLAGS) | |
97882278 | 9 | export CFLAGS |
36c4fbeb | 10 | INSTALL_PROGRAM = install |
11 | ||
12 | # DEB_BUILD_OPTIONS suport, to control binary stripping. | |
13 | ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) | |
14 | INSTALL_PROGRAM += -s | |
15 | endif | |
16 | ||
e4761fb9 | 17 | all: $(OTHER) $(BUILD) |
7e3afbba | 18 | |
9edc0e61 | 19 | install: $(BUILD) $(OTHER) |
9640714e JH |
20 | install -d $(DESTDIR)/usr/games |
21 | $(INSTALL_PROGRAM) $(BUILD) $(DESTDIR)/usr/games/ | |
22 | install $(OTHER) $(DESTDIR)/usr/games/ | |
23 | install -d $(DESTDIR)/usr/share/man/man6 | |
24 | install -m 0644 filters.6 $(DESTDIR)/usr/share/man/man6 | |
25 | cd $(DESTDIR)/usr/share/man/man6 && \ | |
9edc0e61 | 26 | $(foreach prog,$(BUILD) $(OTHER),ln -s filters.6 $(prog).6;) |
7e3afbba | 27 | |
7e3afbba | 28 | clean: |
e4761fb9 | 29 | $(RM) -f core *.o *~ $(BUILD) |
bc19f2cf | 30 | cd ky00te.dir && make clean |
7e3afbba | 31 | |
32 | .SUFFIXES: .l | |
33 | ||
34 | .l: | |
35 | $(RM) $*.c | |
36 | $(LEX) -t $< > $*.c | |
ef230639 | 37 | $(CC) -o $@ $*.c $(CFLAGS) -lfl $(LDFLAGS) |
7e3afbba | 38 | $(RM) $*.c |
39 | ||
40 | .SUFFIXES: .dir | |
41 | ||
ef230639 | 42 | .dir: |
7e3afbba | 43 | cd $<; make |
f49da801 | 44 | |
846aed59 | 45 | nethackify: nethackify.c |
027a0762 | 46 | scramble: scramble.c |