From: divverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Sun, 30 Sep 2007 12:58:34 +0000 (+0000)
Subject: use $(WINDRES) variable for win32, don't hardcode the name
X-Git-Tag: xonotic-v0.1.0preview~2883
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9624871fa497188c8d234673a5633a1ddc0b8f97;p=xonotic%2Fdarkplaces.git

use $(WINDRES) variable for win32, don't hardcode the name


git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7594 d7cf8633-e32d-0410-b094-e92efae38249
---

diff --git a/makefile.inc b/makefile.inc
index 7ca4143c..2d19f823 100644
--- a/makefile.inc
+++ b/makefile.inc
@@ -239,6 +239,7 @@ LDFLAGS_BSDSDL=$(LDFLAGS_UNIXCOMMON) $(LDFLAGS_UNIXSDL)
 
 ##### Win32 specific variables #####
 
+WINDRES ?= windres
 #if you want CD sound in Win32
 OBJ_WINCD=cd_win.o
 #if you want no CD audio
@@ -404,10 +405,10 @@ cd_sdl.o: cd_sdl.c
 	$(DO_CC) $(CFLAGS_SDL)
 
 darkplaces.o: %.o : %.rc
-	windres -o $@ $<
+	$(WINDRES) -o $@ $<
 
 nexuiz.o: %.o : %.rc
-	windres -o $@ $<
+	$(WINDRES) -o $@ $<
 
 .c.o:
 	$(DO_CC)