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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
# %W% %G% %U% - (c) Copyright 1987, 1988 Chuck Simmons
#
# Copyright (C) 1987, 1988 Chuck Simmons
#
# See the file COPYING, distributed with empire, for restriction
# and warranty information.
VERS=$(shell sed <vms-empire.spec -n -e '/Version: \(.*\)/s//\1/p')
# Change the line below for your system. If you are on a Sun or Vax,
# you may want BSD.
SYS = LINUX
#SYS = BSD
#SYS = SYSV
# Use -g to compile the program for debugging.
DEBUG = -g
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
DEBUG = -DDEBUG
endif
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
DEBUG += -O0
else
DEBUG += -O2
endif
# Use -p to profile the program.
#PROFILE = -p -DPROFILE
PROFILE =
LIBS = -lncurses
# You shouldn't have to modify anything below this line.
CFLAGS = $(DEBUG) $(PROFILE) -D$(SYS)
FILES = \
attack.c \
compmove.c \
data.c \
display.c \
edit.c \
empire.c \
game.c \
main.c \
map.c \
math.c \
object.c \
term.c \
usermove.c \
util.c
HEADERS = empire.h extern.h
OFILES = \
attack.o \
compmove.o \
data.o \
display.o \
edit.o \
empire.o \
game.o \
main.o \
map.o \
math.o \
object.o \
term.o \
usermove.o \
util.o
all: vms-empire
vms-empire: $(OFILES)
$(CC) $(PROFILE) -o vms-empire $(OFILES) $(LIBS)
TAGS: $(HEADERS) $(FILES)
etags $(HEADERS) $(FILES)
lint: $(FILES)
lint -u -D$(SYS) $(FILES) -lcurses
clean:
rm -f *.o TAGS vms-empire
clobber: clean
rm -f vms-empire vms-empire-*.tar*
SOURCES = README NEWS vms-empire.6 COPYING Makefile BUGS AUTHORS $(FILES) $(HEADERS) MANIFEST vms-empire.spec
vms-empire-$(VERS).tar.gz: $(SOURCES) vms-empire.6
@ls $(SOURCES) | sed s:^:vms-empire-$(VERS)/: >MANIFEST
@(cd ..; ln -s vms-empire vms-empire-$(VERS))
(cd ..; tar -czvf vms-empire/vms-empire-$(VERS).tar.gz `cat vms-empire/MANIFEST`)
@(cd ..; rm vms-empire-$(VERS))
dist: vms-empire-$(VERS).tar.gz
release: vms-empire-$(VERS).tar.gz
shipper -f; rm -f CHANGES ANNOUNCE* *.6 *.html *.rpm *.lsm MANIFEST
|