mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-23 20:42:24 +00:00
- Modified FLAC/share/alloc.h to define SIZE_T_MAX if it isn't defined
already. For some reason, a stock install of MinGW doesn't define it, but if you compile your own GCC, it installs headers that do. - Changed the way that the makefiles detect MSYS to a method that should be more foolproof, thanks to changes in MSYS. SVN r737 (trunk)
This commit is contained in:
parent
0f3a1cc8b1
commit
95180e18e6
18 changed files with 97 additions and 72 deletions
|
@ -11,7 +11,7 @@ ifeq (Windows_NT,$(OS))
|
||||||
WIN=1
|
WIN=1
|
||||||
WINCMD=1
|
WINCMD=1
|
||||||
endif
|
endif
|
||||||
ifeq (msys,$(OSTYPE))
|
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
|
||||||
WIN=1
|
WIN=1
|
||||||
WINCMD=0
|
WINCMD=0
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -33,14 +33,16 @@
|
||||||
#endif
|
#endif
|
||||||
#include <stdlib.h> /* for size_t, malloc(), etc */
|
#include <stdlib.h> /* for size_t, malloc(), etc */
|
||||||
|
|
||||||
#ifndef SIZE_MAX
|
#ifndef SIZE_T_MAX
|
||||||
# ifndef SIZE_T_MAX
|
# ifdef _WIN64
|
||||||
# ifdef _MSC_VER
|
# define SIZE_T_MAX ULLONG_MAX
|
||||||
# define SIZE_T_MAX UINT_MAX
|
# elif defined(_WIN32)
|
||||||
# else
|
# define SIZE_T_MAX UINT_MAX /* Why doesn't the standard MinGW distribution define this? */
|
||||||
# error
|
# else
|
||||||
# endif
|
# error
|
||||||
# endif
|
# endif
|
||||||
|
#endif
|
||||||
|
#ifndef SIZE_MAX
|
||||||
# define SIZE_MAX SIZE_T_MAX
|
# define SIZE_MAX SIZE_T_MAX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -1,7 +1,7 @@
|
||||||
ifeq (Windows_NT,$(OS))
|
ifeq (Windows_NT,$(OS))
|
||||||
WIN=1
|
WIN=1
|
||||||
endif
|
endif
|
||||||
ifeq (msys,$(OSTYPE))
|
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
|
||||||
WIN=1
|
WIN=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ clean:
|
||||||
@$(MAKE) -C zlib -f Makefile.mgw clean
|
@$(MAKE) -C zlib -f Makefile.mgw clean
|
||||||
@$(MAKE) -C flac -f Makefile.mgw clean
|
@$(MAKE) -C flac -f Makefile.mgw clean
|
||||||
@$(MAKE) -C jpeg-6b -f Makefile.mgw clean
|
@$(MAKE) -C jpeg-6b -f Makefile.mgw clean
|
||||||
ifeq (msys,$(OSTYPE))
|
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
|
||||||
rm -f ccdv.exe
|
rm -f ccdv.exe
|
||||||
else
|
else
|
||||||
del /q /f ccdv.exe 2>nul
|
del /q /f ccdv.exe 2>nul
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
|
# This makefile makes zdoom(d).exe only.
|
||||||
|
# Makefile.mgw builds this plus everything else.
|
||||||
|
|
||||||
# Sub-makefile autogenerated by premake
|
# Sub-makefile autogenerated by premake
|
||||||
# And then tweaked by hand
|
# And then tweaked by hand
|
||||||
|
|
||||||
# Where did you install the FMOD API to? Change this line so that the build process can find it.
|
# Where did you install the FMOD API to? Change this line so that the build process can find it.
|
||||||
FMODDIR = "c:/program files/fmodapi375win"
|
FMODDIR = "c:/program files/fmodapi375win"
|
||||||
|
|
||||||
ifeq (msys,$(OSTYPE))
|
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
|
||||||
WINCMD=0
|
WINCMD=0
|
||||||
else
|
else
|
||||||
WINCMD=1
|
WINCMD=1
|
||||||
|
|
|
@ -1,12 +1,23 @@
|
||||||
|
February 9, 2008
|
||||||
|
- Modified FLAC/share/alloc.h to define SIZE_T_MAX if it isn't defined
|
||||||
|
already. For some reason, a stock install of MinGW doesn't define it, but
|
||||||
|
if you compile your own GCC, it installs headers that do.
|
||||||
|
- After thoroughly messing up my MinGW/MSYS installation, I deleted the whole
|
||||||
|
thing and reinstalled everything using the latest zips. Much to my surprise,
|
||||||
|
the MSYS-detection in the makefiles no longer worked because OSTYPE wasn't
|
||||||
|
being exported to process launched by the MSYS shell. I've now switched to a
|
||||||
|
different method I found through the power of Google that asks the shell
|
||||||
|
what version it is to see if the version string contains "msys".
|
||||||
|
|
||||||
February 8, 2008
|
February 8, 2008
|
||||||
- Applied Blzut3's sbarinfo update #11:
|
- Applied Blzut3's sbarinfo update #11:
|
||||||
* SBarInfo will also accept a '|' between flags for those who are really
|
* SBarInfo will also accept a '|' between flags for those who are really
|
||||||
bothered by the indefinite "arguments" in the middle of the statement.
|
bothered by the indefinite "arguments" in the middle of the statement.
|
||||||
* Added: completeBorder. When set to true SBarInfo will draw the border where
|
* Added: completeBorder. When set to true SBarInfo will draw the border where
|
||||||
the status bar normally goes.
|
the status bar normally goes.
|
||||||
* Fixed: I forgot to accept TK_None on "base" and "statusbar".
|
* Fixed: I forgot to accept TK_None on "base" and "statusbar".
|
||||||
* Fixed: "base" was apparently broken when the SBarInfo init code was moved to
|
* Fixed: "base" was apparently broken when the SBarInfo init code was moved to
|
||||||
d_main.cpp. Also, if "base Strife" was used then it would not use the
|
d_main.cpp. Also, if "base Strife" was used then it would not use the
|
||||||
default log message of "find help".
|
default log message of "find help".
|
||||||
- Fixed: D_ReadUserInfoString() parsed the final element of a compact string
|
- Fixed: D_ReadUserInfoString() parsed the final element of a compact string
|
||||||
as the empty string. Since that was the player class, this meant that any
|
as the empty string. Since that was the player class, this meant that any
|
||||||
|
|
|
@ -33,7 +33,7 @@ $(STATICLIB): $(OBJS)
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
ifeq (msys,$(OSTYPE))
|
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
|
||||||
rm -f $(STATICLIB)
|
rm -f $(STATICLIB)
|
||||||
rm -f *.o
|
rm -f *.o
|
||||||
else
|
else
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
ifeq (Windows_NT,$(OS))
|
ifeq (Windows_NT,$(OS))
|
||||||
WIN=1
|
WIN=1
|
||||||
WINCMD=1
|
WINCMD=1
|
||||||
endif
|
endif
|
||||||
ifeq (msys,$(OSTYPE))
|
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
|
||||||
WIN=1
|
WIN=1
|
||||||
WINCMD=0
|
WINCMD=0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (1,$(WIN))
|
ifeq (1,$(WIN))
|
||||||
EXE = dehsupp.exe
|
EXE = dehsupp.exe
|
||||||
|
|
|
@ -2,7 +2,7 @@ ifeq (Windows_NT,$(OS))
|
||||||
WIN=1
|
WIN=1
|
||||||
WINCMD=1
|
WINCMD=1
|
||||||
endif
|
endif
|
||||||
ifeq (msys,$(OSTYPE))
|
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
|
||||||
WIN=1
|
WIN=1
|
||||||
WINCMD=0
|
WINCMD=0
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
ifeq (Windows_NT,$(OS))
|
ifeq (Windows_NT,$(OS))
|
||||||
WIN=1
|
WIN=1
|
||||||
WINCMD=1
|
WINCMD=1
|
||||||
endif
|
endif
|
||||||
ifeq (msys,$(OSTYPE))
|
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
|
||||||
WIN=1
|
WIN=1
|
||||||
WINCMD=0
|
WINCMD=0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (1,$(WIN))
|
ifeq (1,$(WIN))
|
||||||
EXE = lemon.exe
|
EXE = lemon.exe
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
ifeq (Windows_NT,$(OS))
|
ifeq (Windows_NT,$(OS))
|
||||||
WIN=1
|
WIN=1
|
||||||
WINCMD=1
|
WINCMD=1
|
||||||
endif
|
endif
|
||||||
ifeq (msys,$(OSTYPE))
|
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
|
||||||
WIN=1
|
WIN=1
|
||||||
WINCMD=0
|
WINCMD=0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (1,$(WIN))
|
ifeq (1,$(WIN))
|
||||||
EXE = makewad.exe
|
EXE = makewad.exe
|
||||||
|
|
|
@ -323,7 +323,7 @@ int buildwad (FILE *listfile, char *listfilename, const char *makecmd, char *mak
|
||||||
{
|
{
|
||||||
fprintf (wadfile, " \\\n\t\"%s\"", filename);
|
fprintf (wadfile, " \\\n\t\"%s\"", filename);
|
||||||
}
|
}
|
||||||
// ARGH! Stupid make. Too bad but then these files can't be checked.
|
// ARGH! Stupid make. Too bad, but then these files can't be checked.
|
||||||
// Still better than something that doesn't work at all though!
|
// Still better than something that doesn't work at all though!
|
||||||
else if (!strpbrk(filename, "[]^"))
|
else if (!strpbrk(filename, "[]^"))
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@ ifeq (Windows_NT,$(OS))
|
||||||
WIN=1
|
WIN=1
|
||||||
WINCMD=1
|
WINCMD=1
|
||||||
endif
|
endif
|
||||||
ifeq (msys,$(OSTYPE))
|
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
|
||||||
WIN=1
|
WIN=1
|
||||||
WINCMD=0
|
WINCMD=0
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -2,7 +2,7 @@ ifeq (Windows_NT,$(OS))
|
||||||
WIN=1
|
WIN=1
|
||||||
WINCMD=1
|
WINCMD=1
|
||||||
endif
|
endif
|
||||||
ifeq (msys,$(OSTYPE))
|
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
|
||||||
WIN=1
|
WIN=1
|
||||||
WINCMD=0
|
WINCMD=0
|
||||||
endif
|
endif
|
||||||
|
@ -27,8 +27,8 @@ all: $(EXE)
|
||||||
$(EXE): $(OBJS)
|
$(EXE): $(OBJS)
|
||||||
$(CCDV) $(CC) -o $(EXE) $(OBJS) $(CFLAGS) $(LDFLAGS)
|
$(CCDV) $(CC) -o $(EXE) $(OBJS) $(CFLAGS) $(LDFLAGS)
|
||||||
|
|
||||||
%.o : %.rc
|
%.o : %.rc
|
||||||
$(CCDV) windres -o $@ -i $<
|
$(CCDV) windres -o $@ -i $<
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
|
|
6
tools/updaterevision/trustinfo.rc
Normal file
6
tools/updaterevision/trustinfo.rc
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
// This resource script is for compiling with MinGW only. Visual C++
|
||||||
|
// compilations use the manifest tool to insert the manifest instead.
|
||||||
|
|
||||||
|
#include <WinUser.h>
|
||||||
|
|
||||||
|
1 RT_MANIFEST "trustinfo.txt"
|
|
@ -2,7 +2,7 @@ ifeq (Windows_NT,$(OS))
|
||||||
WIN=1
|
WIN=1
|
||||||
WINCMD=1
|
WINCMD=1
|
||||||
endif
|
endif
|
||||||
ifeq (msys,$(OSTYPE))
|
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
|
||||||
WIN=1
|
WIN=1
|
||||||
WINCMD=0
|
WINCMD=0
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1,26 +1,29 @@
|
||||||
MAKEWAD=../tools/makewad/makewad
|
MAKEWAD=../tools/makewad/makewad
|
||||||
XLATCC=../tools/xlatcc/xlatcc
|
XLATCC=../tools/xlatcc/xlatcc
|
||||||
DEHSUPP=../tools/dehsupp/dehsupp
|
DEHSUPP=../tools/dehsupp/dehsupp
|
||||||
|
|
||||||
ifneq ($(MAKECMDGOALS),clean)
|
ifneq ($(MAKECMDGOALS),clean)
|
||||||
include Makefile2
|
include Makefile2
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
|
||||||
wadmake: zdoom.lst $(MAKEWAD).exe $(XLATCC).exe $(DEHSUPP).exe
|
export OSTYPE=msys
|
||||||
$(MAKEWAD) -make wadmake zdoom.lst
|
endif
|
||||||
|
|
||||||
clean:
|
wadmake: zdoom.lst $(MAKEWAD).exe $(XLATCC).exe $(DEHSUPP).exe
|
||||||
ifeq (msys,$(OSTYPE))
|
$(MAKEWAD) -make wadmake zdoom.lst
|
||||||
rm -f wadmake zdoom.pk3 xlat/*.x dehsupp.lmp
|
|
||||||
else
|
clean:
|
||||||
del /q /f wadmake zdoom.pk3 xlat\*.x dehsupp.lmp 2>nul
|
ifeq ($(OSTYPE),msys)
|
||||||
endif
|
rm -f wadmake zdoom.pk3 xlat/*.x dehsupp.lmp
|
||||||
|
else
|
||||||
../tools/makewad/makewad.exe:
|
del /q /f wadmake zdoom.pk3 xlat\*.x dehsupp.lmp 2>nul
|
||||||
$(MAKE) -C ../tools/makewad -f Makefile
|
endif
|
||||||
|
|
||||||
../tools/xlatcc/xlatcc.exe:
|
../tools/makewad/makewad.exe:
|
||||||
$(MAKE) -C ../tools/xlatcc -f Makefile
|
$(MAKE) -C ../tools/makewad -f Makefile
|
||||||
|
|
||||||
../tools/dehsupp/dehsupp.exe:
|
../tools/xlatcc/xlatcc.exe:
|
||||||
$(MAKE) -C ../tools/dehsupp -f Makefile
|
$(MAKE) -C ../tools/xlatcc -f Makefile
|
||||||
|
|
||||||
|
../tools/dehsupp/dehsupp.exe:
|
||||||
|
$(MAKE) -C ../tools/dehsupp -f Makefile
|
||||||
|
|
|
@ -63,7 +63,7 @@ minigzip: minigzip.o $(STATICLIB)
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
ifeq (msys,$(OSTYPE))
|
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
|
||||||
rm -f $(STATICLIB)
|
rm -f $(STATICLIB)
|
||||||
rm -f *.o
|
rm -f *.o
|
||||||
rm -f *.exe
|
rm -f *.exe
|
||||||
|
|
Loading…
Reference in a new issue