2015-12-06 16:03:06 +01:00
|
|
|
VERSION = 0.5
|
2015-11-16 18:18:01 +01:00
|
|
|
REVISION = $(shell date +"%y%m%d")
|
2015-11-02 20:17:55 +01:00
|
|
|
DEBUG = 0
|
2015-10-20 13:51:49 +02:00
|
|
|
|
2015-10-22 08:08:03 +02:00
|
|
|
SEARCHPATH += src/ src/battle src/draw src/game src/galaxy src/json src/system src/test
|
2015-10-20 13:51:49 +02:00
|
|
|
vpath %.c $(SEARCHPATH)
|
|
|
|
vpath %.h $(SEARCHPATH)
|
|
|
|
|
|
|
|
DEPS += defs.h structs.h
|
|
|
|
|
|
|
|
OBJS += ai.o
|
|
|
|
OBJS += battle.o bullets.o
|
2015-12-07 20:19:14 +01:00
|
|
|
OBJS += capitalShips.o challenges.o cJSON.o
|
2015-12-13 15:50:54 +01:00
|
|
|
OBJS += debris.o draw.o
|
2015-11-09 23:46:57 +01:00
|
|
|
OBJS += effects.o entities.o extractionPoint.o
|
2015-11-16 18:23:56 +01:00
|
|
|
OBJS += fighters.o
|
2015-11-01 23:19:39 +01:00
|
|
|
OBJS += galacticMap.o game.o grid.o
|
2015-10-20 13:51:49 +02:00
|
|
|
OBJS += hud.o
|
2015-11-23 15:52:11 +01:00
|
|
|
OBJS += init.o input.o io.o items.o
|
2015-10-20 13:51:49 +02:00
|
|
|
OBJS += load.o lookup.o
|
2015-11-28 11:11:20 +01:00
|
|
|
OBJS += main.o messageBox.o mission.o missionInfo.o
|
2015-10-20 13:51:49 +02:00
|
|
|
OBJS += objectives.o options.o
|
|
|
|
OBJS += player.o
|
2015-11-15 00:19:17 +01:00
|
|
|
OBJS += radar.o rope.o
|
2015-11-28 11:11:20 +01:00
|
|
|
OBJS += save.o script.o sound.o starfield.o starSystems.o stats.o
|
|
|
|
OBJS += testMission.o textures.o text.o title.o transition.o
|
2015-10-20 13:51:49 +02:00
|
|
|
OBJS += util.o
|
2015-10-26 18:27:43 +01:00
|
|
|
OBJS += waypoints.o widgets.o
|
2015-10-20 13:51:49 +02:00
|
|
|
|
|
|
|
# top-level rule to create the program.
|
2015-12-05 09:16:17 +01:00
|
|
|
all: $(PROG)
|
2015-10-20 13:51:49 +02:00
|
|
|
|
|
|
|
# compiling other source files.
|
|
|
|
%.o: %.c %.h $(DEPS)
|
2015-11-23 09:42:39 +01:00
|
|
|
$(CC) $(CFLAGS) $(CXXFLAGS) -c $<
|
2015-12-03 00:20:19 +01:00
|
|
|
|
2015-10-20 13:51:49 +02:00
|
|
|
# cleaning everything that can be automatically recreated with "make".
|
|
|
|
clean:
|
2015-12-05 09:16:17 +01:00
|
|
|
$(RM) $(OBJS) $(PROG)
|