date and time created 86/11/26 13:35:07 by bostic
[unix-history] / usr / src / games / battlestar / Makefile
CommitLineData
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
9CFLAGS= -O
10OBJS= 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
13CFILES= 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
16LIBS= -lcurses -ltermlib
17LINTFLAGS= -h
7a0e6972 18JUNKFILES= battlestar tags
641ba3f8 19DIR= $(DESTDIR)/usr/games
589500c0 20LOGFILE= $(DIR)/lib/battlestar.log
641ba3f8 21MAN= $(DESTDIR)/usr/man/man6/battlestar.6
589500c0 22
7a0e6972
EW
23battlestar: $(OBJS)
24 cc -o battlestar $(OBJS) $(LIBS)
589500c0 25
689b8eef
EW
26$(OBJS): externs.h
27
7a0e6972
EW
28lint: $(CFILES)
29 lint $(LINTFLAGS) $(CFILES) $(LIBS)
589500c0
EW
30
31install: battlestar $(MAN) $(LOGFILE)
fa83ac0a 32 install -s battlestar $(DIR)/battlestar
589500c0
EW
33
34logfile $(LOGFILE):
35 cp /dev/null $(LOGFILE)
36 chmod 666 $(LOGFILE)
37
38man $(MAN):
39 install -c battlestar.6 $(MAN)
40
41clean:
7a0e6972 42 rm -f $(OBJS) $(JUNKFILES)