tbftss/common.mk

50 lines
1.4 KiB
Makefile
Raw Normal View History

VERSION = 1.4
2018-05-06 12:55:55 +02:00
REVISION = 1
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
2016-02-27 17:16:21 +01:00
SEARCHPATH += src/ src/battle src/challenges 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
2018-04-29 17:44:06 +02:00
_OBJS += ai.o
_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 $@ $<
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)