84bbd123 |
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` |
e6fe3046 |
23 | CFLAGS = -O3 -mpentium -Wall -fomit-frame-pointer -funroll-loops |
84bbd123 |
24 | OBJS = alg_gfx.o alg_main.o docked.o elite.o \ |
25 | intro.o planet.o shipdata.o shipface.o sound.o space.o \ |
26 | swat.o threed.o vector.o random.o trade.o options.o \ |
27 | stars.o missions.o pilot.o file.o keyboard.o |
28 | EXEC = newkind |
29 | |
30 | all: $(EXEC) |
31 | |
32 | clean: |
e6fe3046 |
33 | rm -f *.o $(EXEC) |
84bbd123 |
34 | |
35 | .SUFFIXES : .c .o |
36 | |
37 | .c.o: |
38 | $(CC) $(CFLAGS) -c $< |
39 | |
40 | $(EXEC): $(OBJS) |
41 | $(CC) -o $(EXEC) $(OBJS) $(LIBS) |
42 | |
43 | |
44 | alg_gfx.o: alg_gfx.c alg_data.h config.h elite.h planet.h gfx.h |
45 | |
46 | alg_main.o: alg_main.c alg_data.h config.h elite.h planet.h gfx.h docked.h\ |
47 | intro.h shipdata.h shipface.h space.h main.h pilot.h file.h keyboard.h |
48 | |
49 | docked.o: docked.c config.h elite.h planet.h gfx.h |
50 | |
51 | elite.o: elite.c config.h elite.h planet.h vector.h shipdata.h |
52 | |
53 | intro.o: intro.c space.h config.h elite.h planet.h gfx.h vector.h\ |
54 | shipdata.h shipface.h threed.h |
55 | |
56 | planet.o: planet.c config.h elite.h planet.h |
57 | |
58 | shipdata.o: shipdata.c shipdata.h vector.h |
59 | |
60 | shipface.o: shipface.c config.h elite.h planet.h shipface.h gfx.h |
61 | |
62 | threed.o: threed.c space.h config.h elite.h planet.h gfx.h vector.h shipdata.h\ |
63 | shipface.h threed.h |
64 | |
65 | vector.o: vector.c config.h vector.h |
66 | |
67 | sound.o: sound.c sound.h |
68 | |
69 | space.o: space.c space.h vector.h alg_data.h config.h elite.h planet.h\ |
70 | gfx.h docked.h intro.h shipdata.h shipface.h main.h random.h |
71 | |
72 | swat.o: swat.c swat.h elite.h config.h main.h gfx.h alg_data.h shipdata.h\ |
73 | random.h pilot.h |
74 | |
75 | random.o: random.c random.h |
76 | |
77 | trade.o: trade.c trade.h elite.h config.h |
78 | |
79 | options.o: options.c options.h elite.h config.h gfx.h file.h |
80 | |
81 | stars.o: stars.c stars.h elite.h config.h gfx.h random.h |
82 | |
83 | missions.o: missions.c missions.h config.h elite.h gfx.h planet.h main.h\ |
84 | vector.h space.h |
85 | |
86 | pilot.o: pilot.c pilot.h config.h elite.h gfx.h vector.h space.h main.h |
87 | |
88 | file.o: file.c file.h config.h elite.h |
89 | |
90 | keyboard.o: keyboard.c keyboard.h |
91 | |
92 | |