-##### DP_MAKE_TARGET autodetection and arch specific variables #####
+##### DP_MAKE_TARGET autodetection and arch specific variables #####
ifndef DP_MAKE_TARGET
OBJ_CD=$(OBJ_LINUXCD)
OBJ_CL=$(OBJ_GLX)
+ OBJ_ICON=
+ OBJ_ICON_NEXUIZ=
LDFLAGS_CL=$(LDFLAGS_LINUXCL)
LDFLAGS_SV=$(LDFLAGS_LINUXSV)
EXE_CL=$(EXE_UNIXCL)
EXE_SV=$(EXE_UNIXSV)
EXE_SDL=$(EXE_UNIXSDL)
+ EXE_CLNEXUIZ=$(EXE_UNIXCLNEXUIZ)
+ EXE_SVNEXUIZ=$(EXE_UNIXSVNEXUIZ)
+ EXE_SDLNEXUIZ=$(EXE_UNIXSDLNEXUIZ)
endif
# Mac OS X configuration
OBJ_CD=$(OBJ_MACOSXCD)
OBJ_CL=$(OBJ_AGL)
+ OBJ_ICON=
+ OBJ_ICON_NEXUIZ=
LDFLAGS_CL=$(LDFLAGS_MACOSXCL)
LDFLAGS_SV=$(LDFLAGS_MACOSXSV)
EXE_CL=$(EXE_MACOSXCL)
EXE_SV=$(EXE_UNIXSV)
EXE_SDL=$(EXE_UNIXSDL)
+ EXE_CLNEXUIZ=$(EXE_MACOSXCLNEXUIZ)
+ EXE_SVNEXUIZ=$(EXE_UNIXSVNEXUIZ)
+ EXE_SDLNEXUIZ=$(EXE_UNIXSDLNEXUIZ)
endif
# SunOS configuration (Solaris)
OBJ_CD=$(OBJ_SUNOSCD)
OBJ_CL=$(OBJ_GLX)
+ OBJ_ICON=
+ OBJ_ICON_NEXUIZ=
CFLAGS_EXTRA=$(CFLAGS_SUNOS)
EXE_CL=$(EXE_UNIXCL)
EXE_SV=$(EXE_UNIXSV)
EXE_SDL=$(EXE_UNIXSDL)
+ EXE_CLNEXUIZ=$(EXE_UNIXCLNEXUIZ)
+ EXE_SVNEXUIZ=$(EXE_UNIXSVNEXUIZ)
+ EXE_SDLNEXUIZ=$(EXE_UNIXSDLNEXUIZ)
endif
# BSD configuration
OBJ_CD=$(OBJ_BSDCD)
OBJ_CL=$(OBJ_GLX)
+ OBJ_ICON=
+ OBJ_ICON_NEXUIZ=
LDFLAGS_CL=$(LDFLAGS_BSDCL)
LDFLAGS_SV=$(LDFLAGS_BSDSV)
EXE_CL=$(EXE_UNIXCL)
EXE_SV=$(EXE_UNIXSV)
EXE_SDL=$(EXE_UNIXSDL)
+ EXE_CLNEXUIZ=$(EXE_UNIXCLNEXUIZ)
+ EXE_SVNEXUIZ=$(EXE_UNIXSVNEXUIZ)
+ EXE_SDLNEXUIZ=$(EXE_UNIXSDLNEXUIZ)
endif
# Win32 configuration
OBJ_CD=$(OBJ_WINCD)
OBJ_CL=$(OBJ_WGL)
+ OBJ_ICON=darkplaces.o
+ OBJ_ICON_NEXUIZ=nexuiz.o
LDFLAGS_CL=$(LDFLAGS_WINCL)
LDFLAGS_SV=$(LDFLAGS_WINSV)
EXE_CL=$(EXE_WINCL)
EXE_SV=$(EXE_WINSV)
EXE_SDL=$(EXE_WINSDL)
+ EXE_CLNEXUIZ=$(EXE_WINCLNEXUIZ)
+ EXE_SVNEXUIZ=$(EXE_WINSVNEXUIZ)
+ EXE_SDLNEXUIZ=$(EXE_WINSDLNEXUIZ)
endif
EXE_UNIXCL=darkplaces-glx
EXE_UNIXSV=darkplaces-dedicated
EXE_UNIXSDL=darkplaces-sdl
+EXE_UNIXCLNEXUIZ=nexuiz-glx
+EXE_UNIXSVNEXUIZ=nexuiz-dedicated
+EXE_UNIXSDLNEXUIZ=nexuiz-sdl
CMD_UNIXRM=rm -rf
#if you want no CD audio
#OBJ_WINCD=$(OBJ_NOCD)
-OBJ_WGL= builddate.c darkplaces.o sys_win.o vid_wgl.o conproc.o $(OBJ_SND_WIN) $(OBJ_WINCD) $(OBJ_COMMON)
+OBJ_WGL= builddate.c sys_win.o vid_wgl.o conproc.o $(OBJ_SND_WIN) $(OBJ_WINCD) $(OBJ_COMMON)
# Link
LDFLAGS_WINCOMMON=-lwinmm -lwsock32
EXE_WINCL=darkplaces.exe
EXE_WINSV=darkplaces-dedicated.exe
EXE_WINSDL=darkplaces-sdl.exe
+EXE_WINCLNEXUIZ=nexuiz.exe
+EXE_WINSVNEXUIZ=nexuiz-dedicated.exe
+EXE_WINSDLNEXUIZ=nexuiz-sdl.exe
##### Commands #####
@echo "* $(MAKE) debug : make client and server binaries (debug versions)"
@echo "* $(MAKE) profile : make client and server binaries (profile versions)"
@echo "* $(MAKE) release : make client and server binaries (release versions)"
+ @echo "* $(MAKE) nexuiz : make client and server binaries with nexuiz icon (release versions)"
@echo "* $(MAKE) cl-debug : make client (debug version)"
@echo "* $(MAKE) cl-profile : make client (profile version)"
@echo "* $(MAKE) cl-release : make client (release version)"
+ @echo "* $(MAKE) cl-nexuiz : make client with nexuiz icon (release version)"
@echo "* $(MAKE) sv-debug : make dedicated server (debug version)"
@echo "* $(MAKE) sv-profile : make dedicated server (profile version)"
@echo "* $(MAKE) sv-release : make dedicated server (release version)"
+ @echo "* $(MAKE) sv-nexuiz : make dedicated server with nexuiz icon (release version)"
@echo "* $(MAKE) sdl-debug : make SDL client (debug version)"
@echo "* $(MAKE) sdl-profile : make SDL client (profile version)"
@echo "* $(MAKE) sdl-release : make SDL client (release version)"
+ @echo "* $(MAKE) sdl-nexuiz : make SDL client with nexuiz icon (release version)"
@echo
debug :
release :
$(MAKE) sv-release cl-release sdl-release
+nexuiz :
+ $(MAKE) sv-nexuiz cl-nexuiz sdl-nexuiz
+
cl-debug :
$(MAKE) bin-debug \
DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
EXE="$(EXE_CL)" LDFLAGS_COMMON="$(LDFLAGS_CL)"
+cl-nexuiz :
+ $(MAKE) bin-release \
+ DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
+ EXE="$(EXE_CLNEXUIZ)" LDFLAGS_COMMON="$(LDFLAGS_CL)"
+
sv-debug :
$(MAKE) bin-debug \
DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
EXE="$(EXE_SV)" LDFLAGS_COMMON="$(LDFLAGS_SV)"
+sv-nexuiz :
+ $(MAKE) bin-release \
+ DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
+ EXE="$(EXE_SVNEXUIZ)" LDFLAGS_COMMON="$(LDFLAGS_SV)"
+
sdl-debug :
$(MAKE) bin-debug \
DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
EXE="$(EXE_SDL)" LDFLAGS_COMMON="$(LDFLAGS_SDL)"
+sdl-nexuiz :
+ $(MAKE) bin-release \
+ DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
+ EXE="$(EXE_SDLNEXUIZ)" LDFLAGS_COMMON="$(LDFLAGS_SDL)"
+
bin-debug :
@echo
@echo "========== $(EXE) (debug) =========="
darkplaces.o: %.o : %.rc
windres -o $@ $<
+nexuiz.o: %.o : %.rc
+ windres -o $@ $<
+
.c.o:
$(DO_CC)
-$(EXE_CL): $(OBJ_CL)
+$(EXE_CL): $(OBJ_CL) $(OBJ_ICON)
+ $(DO_LD)
+
+$(EXE_SV): $(OBJ_SV) $(OBJ_ICON)
+ $(DO_LD)
+
+$(EXE_SDL): $(OBJ_SDL) $(OBJ_ICON)
+ $(DO_LD)
+
+$(EXE_CLNEXUIZ): $(OBJ_CL) $(OBJ_ICON_NEXUIZ)
$(DO_LD)
-$(EXE_SV): $(OBJ_SV)
+$(EXE_SVNEXUIZ): $(OBJ_SV) $(OBJ_ICON_NEXUIZ)
$(DO_LD)
-$(EXE_SDL): $(OBJ_SDL)
+$(EXE_SDLNEXUIZ): $(OBJ_SDL) $(OBJ_ICON_NEXUIZ)
$(DO_LD)
clean:
--- /dev/null
+#include <windows.h> // include for version info constants\r
+\r
+A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "nexuiz.ico"\r
+\r
+1 VERSIONINFO\r
+FILEVERSION 1,0,0,0\r
+PRODUCTVERSION 1,0,0,0\r
+FILETYPE VFT_APP\r
+{\r
+ BLOCK "StringFileInfo"\r
+ {\r
+ BLOCK "040904E4"\r
+ {\r
+ VALUE "CompanyName", "Forest Hale Digital Services"\r
+ VALUE "FileVersion", "1.0"\r
+ VALUE "FileDescription", "Nexuiz"\r
+ VALUE "InternalName", "nexuiz.exe"\r
+ VALUE "LegalCopyright", "id Software, Forest Hale, and contributors"\r
+ VALUE "LegalTrademarks", ""\r
+ VALUE "OriginalFilename", "nexuiz.exe"\r
+ VALUE "ProductName", "Nexuiz"\r
+ VALUE "ProductVersion", "1.0"\r
+ }\r
+ }\r
+}\r