Output object files to bin directory.
This commit is contained in:
parent
442f561f00
commit
a93950056d
46
common.mk
46
common.mk
|
@ -30,33 +30,35 @@ vpath %.h $(SEARCHPATH)
|
|||
|
||||
DEPS += defs.h structs.h
|
||||
|
||||
OBJS += atlas.o atlasTest.o aquaBlob.o
|
||||
OBJS += battery.o blaze.o bob.o boss.o blobBoss.o bullet.o
|
||||
OBJS += camera.o cannon.o cardReader.o cell.o cherry.o combat.o controls.o consumable.o
|
||||
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 laserTrap.o lift.o lookup.o
|
||||
OBJS += machineGunBlob.o main.o map.o maths.o mia.o missile.o
|
||||
OBJS += objectives.o
|
||||
OBJS += particles.o player.o pistolBlob.o pistolDroid.o powerPoint.o powerPool.o pressurePlate.o pushBlock.o
|
||||
OBJS += quadtree.o
|
||||
OBJS += shotgunBlob.o shotgunDroid.o sound.o sprites.o structures.o
|
||||
OBJS += tankCommander.o tankTrack.o teeka.o teleporter.o text.o textures.o title.o triggers.o
|
||||
OBJS += unit.o util.o
|
||||
OBJS += weapons.o weaponPickup.o widgets.o world.o worldLoader.o
|
||||
_OBJS += atlas.o atlasTest.o aquaBlob.o
|
||||
_OBJS += battery.o blaze.o bob.o boss.o blobBoss.o bullet.o
|
||||
_OBJS += camera.o cannon.o cardReader.o cell.o cherry.o combat.o controls.o consumable.o
|
||||
_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 laserTrap.o lift.o lookup.o
|
||||
_OBJS += machineGunBlob.o main.o map.o maths.o mia.o missile.o
|
||||
_OBJS += objectives.o
|
||||
_OBJS += particles.o player.o pistolBlob.o pistolDroid.o powerPoint.o powerPool.o pressurePlate.o pushBlock.o
|
||||
_OBJS += quadtree.o
|
||||
_OBJS += shotgunBlob.o shotgunDroid.o sound.o sprites.o structures.o
|
||||
_OBJS += tankCommander.o tankTrack.o teeka.o teleporter.o text.o textures.o title.o triggers.o
|
||||
_OBJS += unit.o util.o
|
||||
_OBJS += weapons.o weaponPickup.o widgets.o world.o worldLoader.o
|
||||
|
||||
OBJS = $(patsubst %,$(OUT)/%,$(_OBJS))
|
||||
|
||||
# top-level rule to create the program.
|
||||
all: $(PROG) $(LOCALE_MO)
|
||||
|
||||
# compiling other source files.
|
||||
%.o: %.c %.h $(DEPS)
|
||||
$(CC) $(CFLAGS) $(CXXFLAGS) -c $<
|
||||
$(OUT)/%.o: %.c %.h $(DEPS)
|
||||
$(CC) $(CFLAGS) $(CXXFLAGS) -c -o $@ $<
|
||||
|
||||
%.mo: %.po
|
||||
msgfmt -c -o $@ $<
|
||||
|
|
3
makefile
3
makefile
|
@ -1,5 +1,6 @@
|
|||
PROG = blobwarsAttrition
|
||||
CC = gcc
|
||||
OUT = bin
|
||||
PREFIX ?= /usr
|
||||
BIN_DIR ?= $(PREFIX)/bin
|
||||
DATA_DIR ?= /opt/$(PROG)
|
||||
|
@ -15,7 +16,7 @@ INST_ICON_DIR = $(DESTDIR)$(ICON_DIR)
|
|||
INST_DESKTOP_DIR = $(DESTDIR)$(DESKTOP_DIR)
|
||||
|
||||
SEARCHPATH += src/plat/unix
|
||||
OBJS += unixInit.o
|
||||
_OBJS += unixInit.o
|
||||
|
||||
include common.mk
|
||||
|
||||
|
|
Loading…
Reference in New Issue