2018-12-10 14:44:33 +01:00
|
|
|
VERSION = 1.5
|
|
|
|
REVISION = 0
|
2016-02-28 16:29:21 +01:00
|
|
|
LOCALE_MO = $(patsubst %.po,%.mo,$(wildcard locale/*.po))
|
2015-10-20 13:51:49 +02:00
|
|
|
|
2018-04-29 17:44:06 +02:00
|
|
|
OUT = bin
|
|
|
|
|
2018-12-06 09:37:19 +01:00
|
|
|
SEARCHPATH += src/ src/battle
|
|
|
|
SEARCHPATH += src/challenges
|
|
|
|
SEARCHPATH += src/game
|
|
|
|
SEARCHPATH += src/galaxy
|
|
|
|
SEARCHPATH += src/json
|
|
|
|
SEARCHPATH += src/system
|
|
|
|
SEARCHPATH += src/test
|
|
|
|
|
2015-10-20 13:51:49 +02:00
|
|
|
vpath %.c $(SEARCHPATH)
|
|
|
|
vpath %.h $(SEARCHPATH)
|
|
|
|
|
|
|
|
DEPS += defs.h structs.h
|
|
|
|
|
2018-12-06 09:37:19 +01:00
|
|
|
_OBJS += ai.o atlas.o
|
2018-04-29 17:44:06 +02:00
|
|
|
_OBJS += battle.o bullets.o
|
|
|
|
_OBJS += capitalShips.o challengeHome.o challenges.o cJSON.o controls.o credits.o
|
|
|
|
_OBJS += debris.o dev.o draw.o
|
|
|
|
_OBJS += effects.o entities.o
|
|
|
|
_OBJS += fighters.o fighterDatabase.o
|
|
|
|
_OBJS += galacticMap.o game.o
|
|
|
|
_OBJS += hud.o
|
|
|
|
_OBJS += i18n.o init.o input.o io.o items.o
|
|
|
|
_OBJS += jumpgate.o
|
|
|
|
_OBJS += load.o locations.o lookup.o
|
|
|
|
_OBJS += main.o messageBox.o mine.o mission.o missionInfo.o modalDialog.o
|
|
|
|
_OBJS += objectives.o options.o
|
|
|
|
_OBJS += player.o
|
|
|
|
_OBJS += quadtree.o
|
|
|
|
_OBJS += radar.o resources.o rope.o
|
|
|
|
_OBJS += save.o script.o sound.o spawners.o starfield.o starSystems.o stats.o
|
|
|
|
_OBJS += testMission.o textures.o text.o title.o transition.o trophies.o
|
|
|
|
_OBJS += util.o
|
|
|
|
_OBJS += waypoints.o widgets.o
|
|
|
|
|
|
|
|
OBJS = $(patsubst %,$(OUT)/%,$(_OBJS))
|
2015-10-20 13:51:49 +02:00
|
|
|
|
|
|
|
# top-level rule to create the program.
|
2016-02-28 16:29:21 +01:00
|
|
|
all: $(PROG) $(LOCALE_MO)
|
2015-10-20 13:51:49 +02:00
|
|
|
|
|
|
|
# compiling other source files.
|
2018-04-29 17:44:06 +02:00
|
|
|
$(OUT)/%.o: %.c %.h $(DEPS)
|
|
|
|
@mkdir -p $(OUT)
|
|
|
|
$(CC) $(CFLAGS) $(CXXFLAGS) -c -o $@ $<
|
2015-12-03 00:20:19 +01:00
|
|
|
|
2016-02-28 16:29:21 +01:00
|
|
|
%.mo: %.po
|
|
|
|
msgfmt -c -o $@ $<
|
|
|
|
|
2015-10-20 13:51:49 +02:00
|
|
|
# cleaning everything that can be automatically recreated with "make".
|
|
|
|
clean:
|
2016-02-28 16:29:21 +01:00
|
|
|
$(RM) $(OBJS) $(PROG) $(LOCALE_MO)
|