summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2009-06-22 17:08:47 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2009-06-22 17:08:47 -0400
commit71a493de351277cc61a36aee47501f64f76cca87 (patch)
treed19269490fe4d45eb763eacd02ad24f4363e6130 /Makefile
parent131531314f87fbd18d52122356dc8f44884b7bac (diff)
downloadmazeoflife-71a493de351277cc61a36aee47501f64f76cca87.tar.gz
mazeoflife-71a493de351277cc61a36aee47501f64f76cca87.tar.bz2
mazeoflife-71a493de351277cc61a36aee47501f64f76cca87.zip
Added Windows icon resource
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile index e7429a5..4face93 100644 --- a/Makefile +++ b/Makefile
@@ -3,6 +3,7 @@ LTARGET = 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
6FILES = $(addprefix build/,$(wildcard *.cpp)) 7FILES = $(addprefix build/,$(wildcard *.cpp))
7MODULES = $(patsubst %.cpp,%,$(FILES)) 8MODULES = $(patsubst %.cpp,%,$(FILES))
8SOURCES = $(addsuffix .o,$(MODULES)) 9SOURCES = $(addsuffix .o,$(MODULES))
@@ -30,11 +31,14 @@ $(LTARGET): $(SOURCES) $(CIMAGES)
30$(SOURCES): build/%.o: %.cpp 31$(SOURCES): build/%.o: %.cpp
31 $(CC) -c $? -o $@ $(LINCCFL) 32 $(CC) -c $? -o $@ $(LINCCFL)
32 33
33$(WTARGET): $(WINSRC) $(CIMAGES) 34$(WTARGET): $(WINSRC) $(CIMAGES) build/winres.o
34 $(WINCC) $(WINSRC) $(CIMAGES) -o $(WTARGET) $(WINLDFL) 35 $(WINCC) $(WINSRC) $(CIMAGES) build/winres.o -o $(WTARGET) $(WINLDFL)
35 36
36$(WINSRC): build/%.owin: %.cpp 37$(WINSRC): build/%.owin: %.cpp
37 $(WINCC) -c $? -o $@ $(WINCCFL) 38 $(WINCC) -c $? -o $@ $(WINCCFL)
38 39
40build/winres.o: winres.rc
41 $(WINDRES) $? $@
42
39$(CIMAGES): build/%.bmp.o: %.bmp 43$(CIMAGES): build/%.bmp.o: %.bmp
40 objcopy --input binary --output elf32-i386 -B i386 $? $@ 44 objcopy --input binary --output elf32-i386 -B i386 $? $@