diff options
Diffstat (limited to 'crawl-ref/source/makefile_tiles.mgw')
-rw-r--r-- | crawl-ref/source/makefile_tiles.mgw | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/crawl-ref/source/makefile_tiles.mgw b/crawl-ref/source/makefile_tiles.mgw index d016543627..2141ff66cb 100644 --- a/crawl-ref/source/makefile_tiles.mgw +++ b/crawl-ref/source/makefile_tiles.mgw @@ -42,7 +42,6 @@ INCLUDES := -Iutil -I. -I$(LUASRC) -I$(SQLSRC) CFWARN := -Wall -Wwrite-strings \ -Werror \ -pedantic -# -Wshadow CFOTHERS := -fsigned-char \ -fstrict-aliasing \ @@ -88,9 +87,13 @@ ifeq ($(YACC),) DOYACC := endif +RESOURCE := $(UTIL)crawl.rc +RESOURCEOBJ := crawlres.o +WINDRES := windres.exe + # Do the levcomp stuff first because that's the most likely to fail. OBJECTS := levcomp.tab.o levcomp.lex.o \ - $(OBJECTS) + $(OBJECTS) $(RESOURCEOBJ) OBJECTS := $(foreach file,$(OBJECTS),$(OPATH)/$(file)) @@ -241,3 +244,10 @@ $(LUASRC)\$(LUALIBA): $(FSQLLIBA): @echo Building SQLite cd $(SQLSRC) && $(MAKE) + +########################################################################## +# Resources +# + +$(OPATH)/$(RESOURCEOBJ): $(RESOURCE) + $(WINDRES) $< $@ |