# # 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 = -O3 -mpentium -Wall -fomit-frame-pointer -funroll-loops CFLAGS = -O3 -mpentium -Wall -g -funroll-loops 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 -f *.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