blobwarsAttrition/common.mk

76 lines
2.5 KiB
Makefile
Raw Normal View History

2018-12-22 22:53:19 +01:00
VERSION = 1.2
REVISION = 2
2018-01-21 10:31:38 +01:00
LOCALE_MO = $(patsubst %.po,%.mo,$(wildcard locale/*.po))
2018-03-23 19:38:12 +01:00
OUT = bin
2019-06-02 17:13:34 +02:00
SEARCHPATH += src
SEARCHPATH += src/combat
SEARCHPATH += src/entities
2018-01-28 10:40:43 +01:00
SEARCHPATH += src/entities/blobs
SEARCHPATH += src/entities/boss
2018-02-04 12:00:14 +01:00
SEARCHPATH += src/entities/bullets
2018-01-28 10:40:43 +01:00
SEARCHPATH += src/entities/cannons
SEARCHPATH += src/entities/decoration
2018-01-29 23:12:18 +01:00
SEARCHPATH += src/entities/evilBlobs
2018-01-30 09:29:09 +01:00
SEARCHPATH += src/entities/eyeDroids
2018-01-28 10:40:43 +01:00
SEARCHPATH += src/entities/items
SEARCHPATH += src/entities/misc
SEARCHPATH += src/entities/structures
SEARCHPATH += src/entities/traps
2018-01-28 13:01:39 +01:00
SEARCHPATH += src/game
SEARCHPATH += src/hub
SEARCHPATH += src/json
SEARCHPATH += src/system
SEARCHPATH += src/test
2019-06-02 17:13:34 +02:00
SEARCHPATH += src/util
SEARCHPATH += src/widgets
2018-01-25 08:41:10 +01:00
SEARCHPATH += src/world
2018-01-21 10:31:38 +01:00
vpath %.c $(SEARCHPATH)
vpath %.h $(SEARCHPATH)
DEPS += defs.h structs.h
_OBJS += atlas.o aquaBlob.o
2018-02-09 20:20:18 +01:00
_OBJS += battery.o blaze.o bob.o boss.o blobBoss.o bullet.o
2018-03-16 09:28:25 +01:00
_OBJS += camera.o cannon.o cardReader.o cell.o cherry.o combat.o controls.o consumable.o credits.o
2018-02-09 20:20:18 +01:00
_OBJS += debris.o destructable.o door.o draw.o
_OBJS += effects.o ending.o entities.o entity.o entityFactory.o exit.o explosions.o eyeDroid.o eyeDroidCommander.o evilBlob.o
_OBJS += fleshChunk.o frost.o
_OBJS += game.o grenade.o grenadeBlob.o grenadeDroid.o
_OBJS += heart.o horizontalDoor.o horizontalLaserTrap.o hub.o hud.o
_OBJS += i18n.o init.o infoPoint.o input.o io.o item.o items.o itemPad.o
_OBJS += cJSON.o
_OBJS += key.o keycard.o
_OBJS += laser.o laserBlob.o laserDroid.o laserTrap.o lift.o lookup.o
2018-02-09 23:41:37 +01:00
_OBJS += machineGunBlob.o machineGunDroid.o main.o map.o maths.o mia.o missile.o
2018-02-20 12:29:50 +01:00
_OBJS += objectives.o options.o
2018-02-18 10:29:26 +01:00
_OBJS += particles.o player.o plasmaBlob.o plasmaDroid.o pistolBlob.o pistolDroid.o postMission.o powerPoint.o powerPool.o pressurePlate.o pushBlock.o
2018-02-09 20:20:18 +01:00
_OBJS += quadtree.o
2018-02-12 09:09:03 +01:00
_OBJS += radar.o
2018-04-01 18:41:45 +02:00
_OBJS += savepng.o shotgunBlob.o shotgunDroid.o sound.o spreadGunBlob.o spreadGunDroid.o sprites.o stats.o strings.o structures.o
2018-02-13 22:36:42 +01:00
_OBJS += tankCommander.o tankTrack.o teeka.o teleporter.o text.o textures.o title.o transition.o triggers.o trophies.o
2018-02-09 20:20:18 +01:00
_OBJS += unit.o util.o
_OBJS += weapons.o weaponPickup.o widgets.o world.o worldLoader.o worldSaver.o worldTest.o
2018-02-09 20:20:18 +01:00
OBJS = $(patsubst %,$(OUT)/%,$(_OBJS))
2018-01-21 10:31:38 +01:00
# top-level rule to create the program.
all: $(PROG) $(LOCALE_MO)
# compiling other source files.
2018-02-09 20:20:18 +01:00
$(OUT)/%.o: %.c %.h $(DEPS)
2018-02-23 08:48:11 +01:00
@mkdir -p $(OUT)
2018-02-09 20:20:18 +01:00
$(CC) $(CFLAGS) $(CXXFLAGS) -c -o $@ $<
2019-06-02 17:13:34 +02:00
2018-01-21 10:31:38 +01:00
%.mo: %.po
ifneq ($(shell uname), AmigaOS)
2018-01-21 10:31:38 +01:00
msgfmt -c -o $@ $<
endif
2019-06-02 17:13:34 +02:00
2018-01-21 10:31:38 +01:00
# cleaning everything that can be automatically recreated with "make".
clean:
$(RM) $(OBJS) $(PROG) $(LOCALE_MO)