chiark / gitweb /
Proper Subversion configuration.
[newkind] / makefile-linux
1 #
2 # Makefile for Elite - The New Kind, source release 1.0.
3 #
4 #
5 # Instructions for use:
6 #
7 # Copy this file to the source directory.
8 #
9 # Enter "make -f makefile-linux".
10 #
11 # Unzip the Windows distribution from the E:TNK website.
12 #
13 # Copy the file "newkind" from the source directory into the same directory as
14 # the Windows newkind.exe file that you just unzipped.
15 #
16 # "cd" to that directory and enter "./newkind &".
17 #
18 # Select wisely in battle, and be strong. =)
19 #
20
21 CC = gcc
22 LIBS = `allegro-config --libs`
23 # CFLAGS = -O3 -mpentium -Wall -fomit-frame-pointer -funroll-loops
24 CFLAGS = -O3 -mpentium -Wall -g -funroll-loops
25 OBJS = alg_gfx.o alg_main.o docked.o elite.o \
26 intro.o planet.o shipdata.o shipface.o sound.o space.o \
27 swat.o threed.o vector.o random.o trade.o options.o \
28 stars.o missions.o pilot.o file.o keyboard.o
29 EXEC = newkind
30
31 all: $(EXEC)
32
33 clean:
34         rm -f *.o $(EXEC)
35
36 .SUFFIXES : .c .o
37
38 .c.o:
39         $(CC) $(CFLAGS) -c $<
40
41 $(EXEC): $(OBJS)
42         $(CC) -o $(EXEC) $(OBJS) $(LIBS)
43                     
44                     
45 alg_gfx.o: alg_gfx.c alg_data.h config.h elite.h planet.h gfx.h
46
47 alg_main.o: alg_main.c alg_data.h config.h elite.h planet.h gfx.h docked.h\
48         intro.h shipdata.h shipface.h space.h main.h pilot.h file.h keyboard.h
49
50 docked.o: docked.c config.h elite.h planet.h gfx.h
51
52 elite.o: elite.c config.h elite.h planet.h vector.h shipdata.h
53
54 intro.o: intro.c space.h config.h elite.h planet.h gfx.h vector.h\
55         shipdata.h shipface.h threed.h
56
57 planet.o: planet.c config.h elite.h planet.h
58
59 shipdata.o: shipdata.c shipdata.h vector.h
60
61 shipface.o: shipface.c config.h elite.h planet.h shipface.h gfx.h
62
63 threed.o: threed.c space.h config.h elite.h planet.h gfx.h vector.h shipdata.h\
64         shipface.h threed.h
65
66 vector.o: vector.c config.h vector.h
67
68 sound.o: sound.c sound.h
69
70 space.o: space.c space.h vector.h alg_data.h config.h elite.h planet.h\
71         gfx.h docked.h intro.h shipdata.h shipface.h main.h random.h
72
73 swat.o: swat.c swat.h elite.h config.h main.h gfx.h alg_data.h shipdata.h\
74         random.h pilot.h
75
76 random.o: random.c random.h
77
78 trade.o: trade.c trade.h elite.h config.h
79
80 options.o: options.c options.h elite.h config.h gfx.h file.h
81
82 stars.o: stars.c stars.h elite.h config.h gfx.h random.h
83
84 missions.o: missions.c missions.h config.h elite.h gfx.h planet.h main.h\
85         vector.h space.h
86
87 pilot.o: pilot.c pilot.h config.h elite.h gfx.h vector.h space.h main.h
88
89 file.o: file.c file.h config.h elite.h
90
91 keyboard.o: keyboard.c keyboard.h
92
93