diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2009-06-22 17:08:47 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2009-06-22 17:08:47 -0400 |
commit | 71a493de351277cc61a36aee47501f64f76cca87 (patch) | |
tree | d19269490fe4d45eb763eacd02ad24f4363e6130 /Makefile | |
parent | 131531314f87fbd18d52122356dc8f44884b7bac (diff) | |
download | mazeoflife-71a493de351277cc61a36aee47501f64f76cca87.tar.gz mazeoflife-71a493de351277cc61a36aee47501f64f76cca87.tar.bz2 mazeoflife-71a493de351277cc61a36aee47501f64f76cca87.zip |
Added Windows icon resource
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
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) | |||
3 | WTARGET = build/$(PROJECT).exe | 3 | WTARGET = build/$(PROJECT).exe |
4 | CC = g++ | 4 | CC = g++ |
5 | WINCC = i586-mingw32msvc-g++ | 5 | WINCC = i586-mingw32msvc-g++ |
6 | WINDRES = i586-mingw32msvc-windres | ||
6 | FILES = $(addprefix build/,$(wildcard *.cpp)) | 7 | FILES = $(addprefix build/,$(wildcard *.cpp)) |
7 | MODULES = $(patsubst %.cpp,%,$(FILES)) | 8 | MODULES = $(patsubst %.cpp,%,$(FILES)) |
8 | SOURCES = $(addsuffix .o,$(MODULES)) | 9 | SOURCES = $(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 | ||
40 | build/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 $? $@ |