Commit | Line | Data |
---|---|---|
fdc7d56f EW |
1 | # |
2 | # Copyright (c) 1983 Regents of the University of California, | |
3 | # All rights reserved. Redistribution permitted subject to | |
4 | # the terms of the Berkeley Software License Agreement. | |
5 | # | |
6 | ||
689b8eef | 7 | # @(#)Makefile 1.7 %G% |
589500c0 EW |
8 | |
9 | CFLAGS= -O | |
10 | OBJS= battlestar.o com1.o com2.o com3.o com4.o com5.o com6.o com7.o \ | |
11 | init.o cypher.o getcom.o parse.o room.o save.o fly.o misc.o \ | |
7a0e6972 | 12 | globals.o dayfile.o nightfile.o dayobjs.o nightobjs.o words.o |
589500c0 EW |
13 | CFILES= battlestar.c com1.c com2.c com3.c com4.c com5.c com6.c com7.c \ |
14 | init.c cypher.c getcom.c parse.c room.c save.c fly.c misc.c \ | |
7a0e6972 | 15 | globals.c dayfile.c nightfile.c dayobjs.c nightobjs.c words.c |
589500c0 EW |
16 | LIBS= -lcurses -ltermlib |
17 | LINTFLAGS= -h | |
7a0e6972 | 18 | JUNKFILES= battlestar tags |
641ba3f8 | 19 | DIR= $(DESTDIR)/usr/games |
589500c0 | 20 | LOGFILE= $(DIR)/lib/battlestar.log |
641ba3f8 | 21 | MAN= $(DESTDIR)/usr/man/man6/battlestar.6 |
589500c0 | 22 | |
7a0e6972 EW |
23 | battlestar: $(OBJS) |
24 | cc -o battlestar $(OBJS) $(LIBS) | |
589500c0 | 25 | |
689b8eef EW |
26 | $(OBJS): externs.h |
27 | ||
7a0e6972 EW |
28 | lint: $(CFILES) |
29 | lint $(LINTFLAGS) $(CFILES) $(LIBS) | |
589500c0 EW |
30 | |
31 | install: battlestar $(MAN) $(LOGFILE) | |
fa83ac0a | 32 | install -s battlestar $(DIR)/battlestar |
589500c0 EW |
33 | |
34 | logfile $(LOGFILE): | |
35 | cp /dev/null $(LOGFILE) | |
36 | chmod 666 $(LOGFILE) | |
37 | ||
38 | man $(MAN): | |
39 | install -c battlestar.6 $(MAN) | |
40 | ||
41 | clean: | |
7a0e6972 | 42 | rm -f $(OBJS) $(JUNKFILES) |