tbftss/common.mk

45 lines
1.3 KiB
Makefile
Raw Normal View History

VERSION = 1.01
REVISION = $(shell git rev-list HEAD | wc -l)
2016-02-28 16:29:21 +01:00
LOCALE_MO = $(patsubst %.po,%.mo,$(wildcard locale/*.po))
2015-10-20 13:51:49 +02:00
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
OBJS += ai.o
OBJS += battle.o bullets.o
2016-05-29 10:38:05 +02:00
OBJS += capitalShips.o challengeHome.o challenges.o cJSON.o controls.o credits.o
2015-12-18 11:12:37 +01:00
OBJS += debris.o dev.o draw.o
OBJS += effects.o entities.o
2015-11-16 18:23:56 +01:00
OBJS += fighters.o
2016-02-21 08:48:22 +01:00
OBJS += galacticMap.o game.o
2015-10-20 13:51:49 +02:00
OBJS += hud.o
2016-02-27 13:14:05 +01:00
OBJS += i18n.o init.o input.o io.o items.o
OBJS += jumpgate.o
OBJS += load.o locations.o lookup.o
2016-03-30 08:22:58 +02:00
OBJS += main.o messageBox.o mine.o mission.o missionInfo.o modalDialog.o
2015-10-20 13:51:49 +02:00
OBJS += objectives.o options.o
OBJS += player.o
2016-02-21 08:48:22 +01:00
OBJS += quadtree.o
OBJS += radar.o resources.o rope.o
2016-03-14 12:12:22 +01:00
OBJS += save.o script.o sound.o spawners.o starfield.o starSystems.o stats.o
2016-03-03 19:03:07 +01:00
OBJS += testMission.o textures.o text.o title.o transition.o trophies.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.
2016-02-28 16:29:21 +01:00
all: $(PROG) $(LOCALE_MO)
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 $<
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)