2011-12-10 00:15:42 +00:00
|
|
|
ifndef VERSION
|
2016-04-29 22:17:40 +00:00
|
|
|
VERSION=v0.0.0.4
|
2011-12-10 00:15:42 +00:00
|
|
|
endif
|
|
|
|
ifndef RELEASE
|
2011-02-18 14:31:32 +00:00
|
|
|
RELEASE=0
|
2011-12-10 00:15:42 +00:00
|
|
|
endif
|
|
|
|
ifndef ARCH
|
2011-02-18 14:31:32 +00:00
|
|
|
ARCH=x86
|
2011-12-10 00:15:42 +00:00
|
|
|
endif
|
|
|
|
ifndef INSTALLDIR
|
|
|
|
INSTALLDIR=.
|
|
|
|
endif
|
|
|
|
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
|
|
|
|
|
2012-09-15 03:03:44 +00:00
|
|
|
SDLDLL=SDL.dll
|
2011-12-10 00:15:42 +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
|
|
|
|
|
2011-02-18 14:31:32 +00:00
|
|
|
|
|
|
|
all: q3rally-$(VERSION)-$(RELEASE).$(ARCH).exe
|
|
|
|
|
2011-12-10 00:15:42 +00:00
|
|
|
q3rally.$(ARCH).nsi: q3rally.nsi.in
|
|
|
|
sed 's/XXXVERSIONXXX/$(VERSION)/;s/XXXRELEASEXXX/$(RELEASE)/;s/x86/$(ARCH)/g;s/SDL.dll/$(SDLDLL)/' < $< > $@
|
2011-02-18 14:31:32 +00:00
|
|
|
|
2011-12-10 00:15:42 +00:00
|
|
|
q3rally-$(VERSION)-$(RELEASE).$(ARCH).exe: q3rally.$(ARCH).nsi
|
|
|
|
makensis $(DEFINES) q3rally.$(ARCH).nsi
|
2011-02-18 14:31:32 +00:00
|
|
|
|
|
|
|
clean:
|
2011-12-10 00:15:42 +00:00
|
|
|
rm -rf *.exe q3rally.$(ARCH).nsi
|
|
|
|
|
|
|
|
install:
|
|
|
|
mkdir -p $(INSTALLDIR)
|
|
|
|
mv q3rally-$(VERSION)-$(RELEASE).$(ARCH).exe $(INSTALLDIR)
|
2011-02-18 14:31:32 +00:00
|
|
|
|
|
|
|
.PHONY: all clean
|
2011-12-10 00:15:42 +00:00
|
|
|
|