2 # Makefile for Elite - The New Kind, source release 1.0.
5 # Instructions for use:
7 # Copy this file to the source directory.
9 # Enter "make -f makefile-linux".
11 # Unzip the Windows distribution from the E:TNK website.
13 # Copy the file "newkind" from the source directory into the same directory as
14 # the Windows newkind.exe file that you just unzipped.
16 # "cd" to that directory and enter "./newkind &".
18 # Select wisely in battle, and be strong. =)
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
42 $(CC) -o $(EXEC) $(OBJS) $(LIBS)
45 alg_gfx.o: alg_gfx.c alg_data.h config.h elite.h planet.h gfx.h
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
50 docked.o: docked.c config.h elite.h planet.h gfx.h
52 elite.o: elite.c config.h elite.h planet.h vector.h shipdata.h
54 intro.o: intro.c space.h config.h elite.h planet.h gfx.h vector.h\
55 shipdata.h shipface.h threed.h
57 planet.o: planet.c config.h elite.h planet.h
59 shipdata.o: shipdata.c shipdata.h vector.h
61 shipface.o: shipface.c config.h elite.h planet.h shipface.h gfx.h
63 threed.o: threed.c space.h config.h elite.h planet.h gfx.h vector.h shipdata.h\
66 vector.o: vector.c config.h vector.h
68 sound.o: sound.c sound.h
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
73 swat.o: swat.c swat.h elite.h config.h main.h gfx.h alg_data.h shipdata.h\
76 random.o: random.c random.h
78 trade.o: trade.c trade.h elite.h config.h
80 options.o: options.c options.h elite.h config.h gfx.h file.h
82 stars.o: stars.c stars.h elite.h config.h gfx.h random.h
84 missions.o: missions.c missions.h config.h elite.h gfx.h planet.h main.h\
87 pilot.o: pilot.c pilot.h config.h elite.h gfx.h vector.h space.h main.h
89 file.o: file.c file.h config.h elite.h
91 keyboard.o: keyboard.c keyboard.h