blobwarsAttrition/common.mk

64 lines
1.9 KiB
Makefile
Raw Normal View History

2018-01-21 10:31:38 +01:00
VERSION = 0.1
REVISION = $(shell git rev-list HEAD 2>/dev/null | wc -l)
LOCALE_MO = $(patsubst %.po,%.mo,$(wildcard locale/*.po))
2018-01-25 08:41:10 +01:00
SEARCHPATH += src
SEARCHPATH += src/combat
2018-01-28 10:40:43 +01:00
SEARCHPATH += src/entities
SEARCHPATH += src/entities/blobs
SEARCHPATH += src/entities/boss
SEARCHPATH += src/entities/cannons
SEARCHPATH += src/entities/decoration
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
2018-01-25 08:41:10 +01:00
SEARCHPATH += src/util
SEARCHPATH += src/widgets
SEARCHPATH += src/world
2018-01-21 10:31:38 +01:00
vpath %.c $(SEARCHPATH)
vpath %.h $(SEARCHPATH)
DEPS += defs.h structs.h
2018-01-28 13:01:39 +01:00
OBJS += atlas.o atlasTest.o
2018-01-26 20:14:18 +01:00
OBJS += battery.o blaze.o bob.o boss.o blobBoss.o
2018-01-27 09:53:08 +01:00
OBJS += camera.o cannon.o cardReader.o cell.o cherry.o combat.o consumable.o
2018-01-27 11:21:45 +01:00
OBJS += debris.o destructable.o door.o draw.o
2018-01-27 11:32:17 +01:00
OBJS += effects.o entities.o exit.o explosions.o eyeDroidCommander.o
2018-01-27 09:08:17 +01:00
OBJS += fleshChunk.o frost.o
2018-01-21 10:31:38 +01:00
OBJS += game.o
2018-01-27 12:55:15 +01:00
OBJS += heart.o horizontalDoor.o horizontalLaserTrap.o hub.o hud.o
2018-01-27 11:47:53 +01:00
OBJS += init.o infoPoint.o input.o io.o item.o items.o itemPad.o
2018-01-28 13:01:39 +01:00
OBJS += cJSON.o
2018-01-26 23:29:08 +01:00
OBJS += key.o keycard.o
2018-01-27 12:55:15 +01:00
OBJS += laserTrap.o lift.o lookup.o
2018-01-25 08:41:10 +01:00
OBJS += main.o map.o maths.o mia.o
2018-01-21 13:57:01 +01:00
OBJS += objectives.o
2018-01-27 12:26:14 +01:00
OBJS += particles.o player.o powerPoint.o powerPool.o pressurePlate.o pushBlock.o
2018-01-21 12:31:53 +01:00
OBJS += quadtree.o
2018-01-22 08:44:15 +01:00
OBJS += sound.o sprites.o
2018-01-27 12:55:15 +01:00
OBJS += tankCommander.o tankTrack.o teeka.o teleporter.o text.o textures.o title.o triggers.o
2018-01-24 23:15:24 +01:00
OBJS += unit.o util.o
2018-01-27 11:58:47 +01:00
OBJS += weapons.o weaponPickup.o widgets.o world.o
2018-01-21 10:31:38 +01:00
# top-level rule to create the program.
all: $(PROG) $(LOCALE_MO)
# compiling other source files.
%.o: %.c %.h $(DEPS)
$(CC) $(CFLAGS) $(CXXFLAGS) -c $<
%.mo: %.po
msgfmt -c -o $@ $<
# cleaning everything that can be automatically recreated with "make".
clean:
$(RM) $(OBJS) $(PROG) $(LOCALE_MO)