File: Makefile

package info (click to toggle)
mu-cade 0.11.dfsg1-6
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,992 kB
  • sloc: xml: 403; makefile: 120
file content (66 lines) | stat: -rw-r--r-- 2,473 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
DC=gdmd-v1
#DC=gdc
CC=gcc

ifeq ($(DC), gdmd-v1)
DFLAGS=-O -g -debug -d -release
#DFLAGS=-g -debug
DOUT=-of
else
DFLAGS=-O -frelease
#DFLAGS=-g -fdebug
DOUT=-o
endif

SOURCES=src/abagames/util/actor.d src/abagames/util/rand.d		\
src/abagames/util/ode/world.d src/abagames/util/ode/odeactor.d		\
src/abagames/util/sdl/input.d src/abagames/util/sdl/sound.d		\
src/abagames/util/sdl/twinstickpad.d src/abagames/util/sdl/screen3d.d	\
src/abagames/util/sdl/mainloop.d src/abagames/util/sdl/gamemanager.d	\
src/abagames/util/sdl/recordableinput.d src/abagames/util/sdl/screen.d	\
src/abagames/util/sdl/sdlexception.d					\
src/abagames/util/sdl/displaylist.d src/abagames/util/sdl/texture.d	\
src/abagames/util/sdl/shape.d src/abagames/util/iterator.d		\
src/abagames/util/bulletml/bullet.d					\
src/abagames/util/bulletml/bulletsmanager.d				\
src/abagames/util/tokenizer.d src/abagames/util/prefmanager.d		\
src/abagames/util/vector.d src/abagames/util/math.d			\
src/abagames/util/logger.d src/abagames/mcd/boot.d			\
src/abagames/mcd/barrage.d src/abagames/mcd/bullettarget.d		\
src/abagames/mcd/replay.d src/abagames/mcd/ship.d			\
src/abagames/mcd/particle.d src/abagames/mcd/bullet.d			\
src/abagames/mcd/enemy.d src/abagames/mcd/bulletpool.d			\
src/abagames/mcd/field.d src/abagames/mcd/gamemanager.d			\
src/abagames/mcd/screen.d src/abagames/mcd/title.d			\
src/abagames/mcd/spec.d src/abagames/mcd/stagemanager.d			\
src/abagames/mcd/shot.d src/abagames/mcd/prefmanager.d			\
src/abagames/mcd/bulletimpl.d src/abagames/mcd/letter.d			\
src/abagames/mcd/soundmanager.d src/abagames/mcd/shape.d		\
import/SDL_video.d import/SDL_mixer.d import/ode/collision.d		\
import/ode/collision_space.d import/ode/collision_trimesh.d		\
import/ode/common.d import/ode/compatibility.d import/ode/config.d	\
import/ode/contact.d import/ode/error.d import/ode/export_dif.d		\
import/ode/mass.d import/ode/matrix.d import/ode/memory.d		\
import/ode/misc.d import/ode/objects.d import/ode/ode.d			\
import/ode/odemath.d import/ode/rotation.d import/ode/timer.d

OBJS=$(SOURCES:.d=.o)
EXE=mu-cade

all: $(EXE)

$(EXE): $(OBJS)
	gdc-v1 -o $@ $(OBJS) -lbulletml -lSDL -lGL -lGLU -lSDL_mixer -lode

$(OBJS): %.o: %.d
	$(DC) -c $(DOUT)$@ $(DFLAGS) -Iimport -Isrc $<

clean:
	$(RM) src/*.o
	$(RM) src/abagames/mcd/*.o
	$(RM) src/abagames/util/*.o
	$(RM) src/abagames/util/sdl/*.o
	$(RM) src/abagames/util/ode/*.o
	$(RM) src/abagames/util/bulletml/*.o
	$(RM) import/*.o
	$(RM) import/ode/*.o