2011-08-26 15:21:03 +00:00
|
|
|
ifndef VERSION
|
|
|
|
VERSION=1.36_SVN
|
|
|
|
endif
|
|
|
|
ifndef RELEASE
|
2008-04-15 14:19:03 +00:00
|
|
|
RELEASE=0
|
2011-08-26 15:21:03 +00:00
|
|
|
endif
|
2016-11-01 22:53:23 +00:00
|
|
|
ifndef PLATFORM
|
|
|
|
PLATFORM=mingw32
|
|
|
|
endif
|
2011-08-26 15:21:03 +00:00
|
|
|
ifndef ARCH
|
2010-03-19 08:59:22 +00:00
|
|
|
ARCH=x86
|
2011-08-26 15:21:03 +00:00
|
|
|
endif
|
|
|
|
ifndef INSTALLDIR
|
|
|
|
INSTALLDIR=.
|
|
|
|
endif
|
2011-08-29 15:17:47 +00:00
|
|
|
ifndef USE_RENDERER_DLOPEN
|
|
|
|
USE_RENDERER_DLOPEN=1
|
|
|
|
endif
|
|
|
|
ifndef USE_OPENAL_DLOPEN
|
|
|
|
USE_OPENAL_DLOPEN=1
|
|
|
|
endif
|
|
|
|
ifndef USE_CURL_DLOPEN
|
|
|
|
USE_CURL_DLOPEN=0
|
|
|
|
endif
|
|
|
|
ifndef USE_INTERNAL_SPEEX
|
|
|
|
USE_INTERNAL_SPEEX=1
|
|
|
|
endif
|
|
|
|
ifndef USE_INTERNAL_ZLIB
|
|
|
|
USE_INTERNAL_ZLIB=1
|
|
|
|
endif
|
|
|
|
ifndef USE_INTERNAL_JPEG
|
|
|
|
USE_INTERNAL_JPEG=1
|
|
|
|
endif
|
2016-05-27 05:41:14 +00:00
|
|
|
ifndef SDLDLL
|
|
|
|
ifeq ($(ARCH),x86_64)
|
|
|
|
SDLDLL=SDL264.dll
|
|
|
|
else
|
|
|
|
SDLDLL=SDL2.dll
|
|
|
|
endif
|
|
|
|
endif
|
2017-09-05 01:02:17 +00:00
|
|
|
ifndef OPENALDLL
|
|
|
|
ifeq ($(ARCH),x86_64)
|
|
|
|
OPENALDLL=OpenAL64.dll
|
|
|
|
else
|
|
|
|
OPENALDLL=OpenAL32.dll
|
|
|
|
endif
|
|
|
|
endif
|
2008-04-15 14:19:03 +00:00
|
|
|
|
2011-08-29 15:17:47 +00:00
|
|
|
DEFINES=
|
|
|
|
ifeq ($(USE_RENDERER_DLOPEN),1)
|
|
|
|
DEFINES+= -DUSE_RENDERER_DLOPEN
|
|
|
|
endif
|
|
|
|
ifeq ($(USE_OPENAL_DLOPEN),1)
|
|
|
|
DEFINES+= -DUSE_OPENAL_DLOPEN
|
|
|
|
endif
|
|
|
|
ifeq ($(USE_CURL_DLOPEN),1)
|
|
|
|
DEFINES+= -DUSE_CURL_DLOPEN
|
|
|
|
endif
|
|
|
|
ifeq ($(USE_INTERNAL_SPEEX),1)
|
|
|
|
DEFINES+= -DUSE_INTERNAL_SPEEX
|
|
|
|
endif
|
|
|
|
ifeq ($(USE_INTERNAL_ZLIB),1)
|
|
|
|
DEFINES+= -DUSE_INTERNAL_ZLIB
|
|
|
|
endif
|
|
|
|
ifeq ($(USE_INTERNAL_JPEG),1)
|
|
|
|
DEFINES+= -DUSE_INTERNAL_JPEG
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2010-03-19 08:59:22 +00:00
|
|
|
all: ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe
|
2008-04-15 14:19:03 +00:00
|
|
|
|
2011-08-26 15:21:03 +00:00
|
|
|
ioquake3.$(ARCH).nsi: ioquake3.nsi.in
|
2017-09-05 01:02:17 +00:00
|
|
|
sed 's/XXXVERSIONXXX/$(VERSION)/;s/XXXRELEASEXXX/$(RELEASE)/;s/mingw32/$(PLATFORM)/g;s/x86/$(ARCH)/g;s/SDL2.dll/$(SDLDLL)/g;s/OpenAL32.dll/$(OPENALDLL)/g' < $< > $@
|
2008-04-15 14:19:03 +00:00
|
|
|
|
2011-08-26 15:21:03 +00:00
|
|
|
ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe: ioquake3.$(ARCH).nsi
|
2011-08-29 15:17:47 +00:00
|
|
|
makensis $(DEFINES) ioquake3.$(ARCH).nsi
|
2008-04-15 14:19:03 +00:00
|
|
|
|
|
|
|
clean:
|
2011-08-26 15:21:03 +00:00
|
|
|
rm -rf *.exe ioquake3.$(ARCH).nsi
|
|
|
|
|
|
|
|
install:
|
|
|
|
mkdir -p $(INSTALLDIR)
|
|
|
|
mv ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe $(INSTALLDIR)
|
2008-04-15 14:19:03 +00:00
|
|
|
|
|
|
|
.PHONY: all clean
|
2011-08-26 15:21:03 +00:00
|
|
|
|