chiark / gitweb /
Proper Subversion configuration.
[newkind] / makefile-linux
CommitLineData
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
21CC = gcc
22LIBS = `allegro-config --libs`
29332db6 23# CFLAGS = -O3 -mpentium -Wall -fomit-frame-pointer -funroll-loops
24CFLAGS = -O3 -mpentium -Wall -g -funroll-loops
84bbd123 25OBJS = alg_gfx.o alg_main.o docked.o elite.o \
26intro.o planet.o shipdata.o shipface.o sound.o space.o \
27swat.o threed.o vector.o random.o trade.o options.o \
28stars.o missions.o pilot.o file.o keyboard.o
29EXEC = newkind
30
31all: $(EXEC)
32
33clean:
e6fe3046 34 rm -f *.o $(EXEC)
84bbd123 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
45alg_gfx.o: alg_gfx.c alg_data.h config.h elite.h planet.h gfx.h
46
47alg_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
50docked.o: docked.c config.h elite.h planet.h gfx.h
51
52elite.o: elite.c config.h elite.h planet.h vector.h shipdata.h
53
54intro.o: intro.c space.h config.h elite.h planet.h gfx.h vector.h\
55 shipdata.h shipface.h threed.h
56
57planet.o: planet.c config.h elite.h planet.h
58
59shipdata.o: shipdata.c shipdata.h vector.h
60
61shipface.o: shipface.c config.h elite.h planet.h shipface.h gfx.h
62
63threed.o: threed.c space.h config.h elite.h planet.h gfx.h vector.h shipdata.h\
64 shipface.h threed.h
65
66vector.o: vector.c config.h vector.h
67
68sound.o: sound.c sound.h
69
70space.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
73swat.o: swat.c swat.h elite.h config.h main.h gfx.h alg_data.h shipdata.h\
74 random.h pilot.h
75
76random.o: random.c random.h
77
78trade.o: trade.c trade.h elite.h config.h
79
80options.o: options.c options.h elite.h config.h gfx.h file.h
81
82stars.o: stars.c stars.h elite.h config.h gfx.h random.h
83
84missions.o: missions.c missions.h config.h elite.h gfx.h planet.h main.h\
85 vector.h space.h
86
87pilot.o: pilot.c pilot.h config.h elite.h gfx.h vector.h space.h main.h
88
89file.o: file.c file.h config.h elite.h
90
91keyboard.o: keyboard.c keyboard.h
92
93