Commit | Line | Data |
---|---|---|
3df9ffe3 | 1 | # |
76797561 DF |
2 | # Copyright (c) 1980 Regents of the University of California. |
3 | # All rights reserved. The Berkeley software License Agreement | |
4 | # specifies the terms and conditions for redistribution. | |
3df9ffe3 | 5 | # |
abeb5c4d | 6 | # @(#)Makefile 5.2 (Berkeley) %G% |
3df9ffe3 | 7 | # |
b5f0675e | 8 | |
857c03ff EW |
9 | CTAGS = ctags -w |
10 | CFLAGS = -O | |
11 | ||
12 | CFILES = main.c pl_main.c pl_1.c pl_2.c pl_3.c pl_4.c pl_5.c pl_6.c pl_7.c \ | |
13 | dr_main.c dr_1.c dr_2.c dr_3.c dr_4.c dr_5.c lo_main.c \ | |
14 | assorted.c game.c globals.c misc.c parties.c sync.c version.c | |
15 | OBJS = main.o pl_main.o pl_1.o pl_2.o pl_3.o pl_4.o pl_5.o pl_6.o pl_7.o \ | |
16 | dr_main.o dr_1.o dr_2.o dr_3.o dr_4.o dr_5.o lo_main.o \ | |
17 | assorted.o game.o globals.o misc.o parties.o sync.o version.o | |
18 | HFILES = externs.h player.h driver.h machdep.h | |
19 | OTHERFILES = Makefile sail.6 | |
20 | JUNKFILES = sail tags make.out | |
21 | LIBS = -lcurses -ltermlib | |
22 | ||
23 | SAILMASTER = daemon | |
24 | LOGFILE = lib/saillog | |
25 | TARGET = $(DESTDIR)/usr/games | |
3df9ffe3 | 26 | |
ba28d9ed | 27 | all: sail |
a7f6ca95 | 28 | |
ba28d9ed EW |
29 | sail: $(OBJS) |
30 | $(CC) -o sail $(OBJS) $(LIBS) | |
3df9ffe3 | 31 | |
b3a57661 | 32 | lint: |
ba28d9ed | 33 | lint -z $(CFILES) -lcurses |
3df9ffe3 | 34 | |
ba28d9ed EW |
35 | tags: $(CFILES) $(HFILES) |
36 | $(CTAGS) $(CFILES) $(HFILES) | |
1c4e97f4 | 37 | |
ba28d9ed | 38 | $(CFILES) $(HFILES) $(OTHERFILES): |
857c03ff | 39 | sccs get $@ |
1c4e97f4 | 40 | |
005fc5a1 | 41 | clean: |
ba28d9ed | 42 | rm -f $(OBJS) $(JUNKFILES) |
3df9ffe3 | 43 | |
abeb5c4d | 44 | install: sail $(TARGET)/$(LOGFILE) |
857c03ff | 45 | install -s -m 4755 -o $(SAILMASTER) sail $(TARGET)/sail |
1c4e97f4 | 46 | |
32c0a52f | 47 | logfile $(TARGET)/$(LOGFILE): |
ba28d9ed EW |
48 | cp /dev/null $(TARGET)/$(LOGFILE) |
49 | chown $(SAILMASTER) $(TARGET)/$(LOGFILE) | |
50 | chmod 644 $(TARGET)/$(LOGFILE) | |
857c03ff | 51 | |
005fc5a1 EW |
52 | main.o: externs.h machdep.h |
53 | pl_main.o: player.h externs.h machdep.h | |
54 | pl_1.o: player.h externs.h machdep.h | |
55 | pl_2.o: player.h externs.h machdep.h | |
56 | pl_3.o: player.h externs.h machdep.h | |
57 | pl_4.o: player.h externs.h machdep.h | |
58 | pl_5.o: player.h externs.h machdep.h | |
59 | pl_6.o: player.h externs.h machdep.h | |
60 | pl_7.o: player.h externs.h machdep.h | |
61 | dr_main.o: driver.h externs.h machdep.h | |
62 | dr_1.o: driver.h externs.h machdep.h | |
63 | dr_2.o: driver.h externs.h machdep.h | |
64 | dr_3.o: driver.h externs.h machdep.h | |
65 | dr_4.o: externs.h machdep.h | |
66 | dr_5.o: externs.h machdep.h | |
67 | lo_main.o: externs.h machdep.h | |
68 | assorted.o: externs.h machdep.h | |
69 | game.o: externs.h machdep.h | |
70 | globals.o: externs.h machdep.h | |
71 | misc.o: externs.h machdep.h | |
72 | parties.o: externs.h machdep.h | |
73 | sync.o: externs.h machdep.h |