-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.linux
executable file
·43 lines (35 loc) · 1.38 KB
/
Makefile.linux
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
# @(#)Makefile 5.8 (Berkeley) 5/11/90
PROG= trek
DESTDIR=/usr/games
LIBDIR= $(DESTDIR)/lib
MANDIR= /usr/man/man6
CC= gcc
CFLAGS= -O2
SRCS= abandon.c attack.c autover.c capture.c check_out.c checkcond.c \
compkl.c computer.c damage.c damaged.c dcrept.c destruct.c \
dock.c dumpgame.c dumpme.c dumpssradio.c events.c externs.c \
getcodi.c getpar.c help.c impulse.c initquad.c kill.c klmove.c \
lose.c lrscan.c main.c move.c nova.c out.c phaser.c play.c ram.c \
ranf.c rest.c schedule.c score.c setup.c setwarp.c \
shield.c snova.c srscan.c systemname.c torped.c utility.c \
visual.c warp.c win.c cgetc.c
OBJS= abandon.o attack.o autover.o capture.o check_out.o checkcond.o \
compkl.o computer.o damage.o damaged.o dcrept.o destruct.o \
dock.o dumpgame.o dumpme.o dumpssradio.o events.o externs.o \
getcodi.o getpar.o help.o impulse.o initquad.o kill.o klmove.o \
lose.o lrscan.o main.o move.o nova.o out.o phaser.o play.o ram.o \
ranf.o rest.o schedule.o score.o setup.o setwarp.o \
shield.o snova.o srscan.o systemname.o torped.o utility.o \
visual.o warp.o win.o cgetc.o
INCS= -I/usr/include/bsd
LIBS= -lm -lbsd
all: ${PROG}
$(PROG): $(OBJS)
$(CC) $(OBJS) $(LIBS) -o $(PROG)
$(OBJS): getpar.h trek.h
$(CC) $(CFLAGS) $(INCS) -c $*.c -o $@
install: all
install -c -o bin -g root -m 755 $(PROG) $(DESTDIR)
install -c -o root -g root -m 444 $(PROG).6 $(MANDIR)
clean:
rm -f $(PROG) core *.o