summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2009-06-22 17:52:37 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2009-06-22 17:52:37 -0400
commitf2ab9f3f0d5fe1ad19881b7dba79b31e3673748a (patch)
treeeab6ed709b3dfa5876c3f52c15f3cd8471a4d833 /Makefile
parent71a493de351277cc61a36aee47501f64f76cca87 (diff)
downloadmazeoflife-f2ab9f3f0d5fe1ad19881b7dba79b31e3673748a.tar.gz
mazeoflife-f2ab9f3f0d5fe1ad19881b7dba79b31e3673748a.tar.bz2
mazeoflife-f2ab9f3f0d5fe1ad19881b7dba79b31e3673748a.zip
Added tick delay
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile b/Makefile index 4face93..e44f590 100644 --- a/Makefile +++ b/Makefile
@@ -1,14 +1,15 @@
1PROJECT = mazeoflife 1PROJECT = mazeoflife
2LTARGET = build/$(PROJECT) 2LTARGET = build/$(PROJECT)
3WTARGET = build/$(PROJECT).exe 3WTARGET = build/$(PROJECT).exe
4CC = g++ 4CC = g++
5WINCC = i586-mingw32msvc-g++ 5WINCC = i586-mingw32msvc-g++
6WINDRES = i586-mingw32msvc-windres 6WINDRES = i586-mingw32msvc-windres
7FILES = $(addprefix build/,$(wildcard *.cpp)) 7FILES = $(addprefix build/,$(wildcard *.cpp))
8HEADERS = $(wildcard *.h)
8MODULES = $(patsubst %.cpp,%,$(FILES)) 9MODULES = $(patsubst %.cpp,%,$(FILES))
9SOURCES = $(addsuffix .o,$(MODULES)) 10SOURCES = $(addsuffix .o,$(MODULES))
10WINSRC = $(addsuffix win,$(SOURCES)) 11WINSRC = $(addsuffix win,$(SOURCES))
11IMAGES = $(wildcard *.bmp) 12IMAGES = $(wildcard *.bmp)
12CIMAGES = $(addprefix build/,$(IMAGES:.bmp=.bmp.o)) 13CIMAGES = $(addprefix build/,$(IMAGES:.bmp=.bmp.o))
13LINCCFL = `sdl-config --cflags` 14LINCCFL = `sdl-config --cflags`
14LINLDFL = `sdl-config --libs` 15LINLDFL = `sdl-config --libs`
@@ -28,14 +29,14 @@ clean:
28$(LTARGET): $(SOURCES) $(CIMAGES) 29$(LTARGET): $(SOURCES) $(CIMAGES)
29 $(CC) $(SOURCES) $(CIMAGES) -o $(LTARGET) $(LINLDFL) 30 $(CC) $(SOURCES) $(CIMAGES) -o $(LTARGET) $(LINLDFL)
30 31
31$(SOURCES): build/%.o: %.cpp 32$(SOURCES): build/%.o: %.cpp $(HEADERS)
32 $(CC) -c $? -o $@ $(LINCCFL) 33 $(CC) -c $< -o $@ $(LINCCFL)
33 34
34$(WTARGET): $(WINSRC) $(CIMAGES) build/winres.o 35$(WTARGET): $(WINSRC) $(CIMAGES) build/winres.o
35 $(WINCC) $(WINSRC) $(CIMAGES) build/winres.o -o $(WTARGET) $(WINLDFL) 36 $(WINCC) $(WINSRC) $(CIMAGES) build/winres.o -o $(WTARGET) $(WINLDFL)
36 37
37$(WINSRC): build/%.owin: %.cpp 38$(WINSRC): build/%.owin: %.cpp $(HEADERS)
38 $(WINCC) -c $? -o $@ $(WINCCFL) 39 $(WINCC) -c $< -o $@ $(WINCCFL)
39 40
40build/winres.o: winres.rc 41build/winres.o: winres.rc
41 $(WINDRES) $? $@ 42 $(WINDRES) $? $@