-
Notifications
You must be signed in to change notification settings - Fork 33
/
makefile-linux
92 lines (62 loc) · 2.28 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
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
#
# Makefile for Elite - The New Kind, source release 1.0.
#
#
# Instructions for use:
#
# Copy this file to the source directory.
#
# Enter "make -f makefile-linux".
#
# Unzip the Windows distribution from the E:TNK website.
#
# Copy the file "newkind" from the source directory into the same directory as
# the Windows newkind.exe file that you just unzipped.
#
# "cd" to that directory and enter "./newkind &".
#
# Select wisely in battle, and be strong. =)
#
CC = gcc
LIBS = `allegro-config --libs`
CFLAGS = -O -Wall
OBJS = alg_gfx.o alg_main.o docked.o elite.o \
intro.o planet.o shipdata.o shipface.o sound.o space.o \
swat.o threed.o vector.o random.o trade.o options.o \
stars.o missions.o pilot.o file.o keyboard.o
EXEC = newkind
all: $(EXEC)
clean:
rm *.o $(EXEC)
.SUFFIXES : .c .o
.c.o:
$(CC) $(CFLAGS) -c $<
$(EXEC): $(OBJS)
$(CC) -o $(EXEC) $(OBJS) $(LIBS)
alg_gfx.o: alg_gfx.c alg_data.h config.h elite.h planet.h gfx.h
alg_main.o: alg_main.c alg_data.h config.h elite.h planet.h gfx.h docked.h\
intro.h shipdata.h shipface.h space.h main.h pilot.h file.h keyboard.h
docked.o: docked.c config.h elite.h planet.h gfx.h
elite.o: elite.c config.h elite.h planet.h vector.h shipdata.h
intro.o: intro.c space.h config.h elite.h planet.h gfx.h vector.h\
shipdata.h shipface.h threed.h
planet.o: planet.c config.h elite.h planet.h
shipdata.o: shipdata.c shipdata.h vector.h
shipface.o: shipface.c config.h elite.h planet.h shipface.h gfx.h
threed.o: threed.c space.h config.h elite.h planet.h gfx.h vector.h shipdata.h\
shipface.h threed.h
vector.o: vector.c config.h vector.h
sound.o: sound.c sound.h
space.o: space.c space.h vector.h alg_data.h config.h elite.h planet.h\
gfx.h docked.h intro.h shipdata.h shipface.h main.h random.h
swat.o: swat.c swat.h elite.h config.h main.h gfx.h alg_data.h shipdata.h\
random.h pilot.h
random.o: random.c random.h
trade.o: trade.c trade.h elite.h config.h
options.o: options.c options.h elite.h config.h gfx.h file.h
stars.o: stars.c stars.h elite.h config.h gfx.h random.h
missions.o: missions.c missions.h config.h elite.h gfx.h planet.h main.h\
vector.h space.h
pilot.o: pilot.c pilot.h config.h elite.h gfx.h vector.h space.h main.h
file.o: file.c file.h config.h elite.h
keyboard.o: keyboard.c keyboard.h