use specific target flags with windres (pe-i386/pe-x86-64 for w32/w64),

just in case the compiler toolchain is a multilib one.


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1298 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2016-04-17 19:10:01 +00:00
parent 39a6b46713
commit f22eed7f57
2 changed files with 2 additions and 2 deletions

View file

@ -183,7 +183,7 @@ DEFAULT_TARGET := quakespasm.exe
%.o: %.c
$(CC) $(DFLAGS) -c $(CFLAGS) $(SDL_CFLAGS) -o $@ $^
%.res: ../Windows/%.rc
$(WINDRES) --output-format=coff -I../Windows -o $@ $^
$(WINDRES) -I../Windows --output-format=coff --target=pe-i386 -o $@ $^
# ----------------------------------------------------------------------------
# objects

View file

@ -181,7 +181,7 @@ DEFAULT_TARGET := quakespasm.exe
%.o: %.c
$(CC) $(DFLAGS) -c $(CFLAGS) $(SDL_CFLAGS) -o $@ $^
%.res: ../Windows/%.rc
$(WINDRES) --output-format=coff -I../Windows -o $@ $^
$(WINDRES) -I../Windows --output-format=coff --target=pe-x86-64 -o $@ $^
# ----------------------------------------------------------------------------
# objects