2008-08-20 22:58:09 +00:00
|
|
|
#
|
2006-04-13 20:47:06 +00:00
|
|
|
# EDuke32 Makefile for GNU Make
|
2008-08-20 22:58:09 +00:00
|
|
|
#
|
|
|
|
|
2010-12-19 22:29:01 +00:00
|
|
|
include Makefile.common
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
DUKE3D_SRC=source
|
|
|
|
DUKE3D_INC=$(DUKE3D_SRC)
|
|
|
|
DUKE3D_RSRC=rsrc
|
|
|
|
ENGINE_ROOT=build
|
|
|
|
ENGINE_SRC=$(ENGINE_ROOT)/src
|
|
|
|
ENGINE_INC=$(ENGINE_ROOT)/include
|
2006-04-13 20:47:06 +00:00
|
|
|
o=o
|
2014-07-22 07:25:54 +00:00
|
|
|
asm=nasm
|
2014-07-23 07:21:29 +00:00
|
|
|
obj=obj
|
2014-07-22 07:25:54 +00:00
|
|
|
|
2015-05-19 21:56:03 +00:00
|
|
|
COMPILERFLAGS += -I$(ENGINE_INC) -I$(MACT_INC) -I$(AUDIOLIB_INC) -I$(ENET_INC)
|
2014-07-24 14:01:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# EBacktrace
|
|
|
|
|
|
|
|
ifndef EBACKTRACEDLL
|
|
|
|
EBACKTRACEDLL = ebacktrace1.dll
|
|
|
|
ifeq ($(findstring x86_64,$(COMPILERTARGET)),x86_64)
|
|
|
|
EBACKTRACEDLL = ebacktrace1-64.dll
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
EBACKTRACEDLL_TARGET:=$(EBACKTRACEDLL)
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
|
|
|
|
# BUILD Engine
|
|
|
|
|
|
|
|
ENGINE_CFLAGS=-I$(ENGINE_SRC)
|
|
|
|
UTIL_LIBS= -lm # -lpthread
|
|
|
|
|
2014-07-23 07:21:29 +00:00
|
|
|
ENGINE_OBJ=$(ENGINE_ROOT)/$(obj)
|
|
|
|
|
2015-01-08 15:13:28 +00:00
|
|
|
ENGINE_OBJS=baselayer cache1d common compat crc32 defs engine polymost texcache dxtfilter hightile textfont smalltextfont kplib lz4 osd pragmas scriptfile mmulti_null mutex xxhash md4
|
2014-07-22 07:25:54 +00:00
|
|
|
ENGINE_EDITOR_OBJS=build config defs
|
|
|
|
ifeq (0,$(NOASM))
|
|
|
|
ENGINE_OBJS+= a
|
|
|
|
else
|
|
|
|
ENGINE_OBJS+= a-c
|
|
|
|
ifneq (0,$(USE_ASM64))
|
|
|
|
ENGINE_OBJS+= a64
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq (1,$(USE_OPENGL))
|
2014-09-30 04:18:43 +00:00
|
|
|
ENGINE_OBJS+= glbuild voxmodel mdsprite
|
2014-07-22 07:25:54 +00:00
|
|
|
ifeq (1,$(POLYMER))
|
|
|
|
ENGINE_OBJS+= polymer
|
|
|
|
endif
|
|
|
|
endif
|
2014-09-07 18:10:17 +00:00
|
|
|
ifneq (0,$(LUNATIC))
|
2014-07-22 07:25:54 +00:00
|
|
|
ENGINE_OBJS+= lunatic
|
|
|
|
endif
|
|
|
|
ifeq ($(PLATFORM),DARWIN)
|
|
|
|
ENGINE_OBJS += osxbits
|
|
|
|
ifneq (0,$(OSX_STARTUPWINDOW))
|
|
|
|
ENGINE_EDITOR_OBJS += startosx.editor
|
|
|
|
endif
|
|
|
|
ifeq (1,$(SDL_FRAMEWORK))
|
|
|
|
ENGINE_OBJS+=SDLMain
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq ($(PLATFORM),WINDOWS)
|
|
|
|
ENGINE_OBJS+= winbits
|
|
|
|
ENGINE_EDITOR_OBJS+= startwin.editor
|
|
|
|
endif
|
2014-12-17 13:01:58 +00:00
|
|
|
ifeq ($(PLATFORM),WII)
|
|
|
|
ENGINE_OBJS+= wiibits
|
2014-12-17 13:02:21 +00:00
|
|
|
LINKERFLAGS+= -Wl,-wrap,c_default_exceptionhandler
|
2014-12-17 13:01:58 +00:00
|
|
|
endif
|
2014-07-22 07:25:54 +00:00
|
|
|
ifeq ($(RENDERTYPE),SDL)
|
|
|
|
ENGINE_OBJS+= sdlayer
|
|
|
|
|
|
|
|
ifeq (1,$(HAVE_GTK2))
|
|
|
|
ENGINE_OBJS+= gtkbits
|
|
|
|
ifeq ($(LINKED_GTK),0)
|
|
|
|
ENGINE_OBJS+= dynamicgtk
|
|
|
|
endif
|
|
|
|
ENGINE_EDITOR_OBJS+= startgtk.editor
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq ($(RENDERTYPE),WIN)
|
|
|
|
ENGINE_OBJS+= winlayer rawinput
|
|
|
|
endif
|
|
|
|
|
|
|
|
ENGINE_OBJS_EXP:=$(addprefix $(ENGINE_OBJ)/,$(addsuffix .$o,$(ENGINE_OBJS)))
|
|
|
|
ENGINE_EDITOR_OBJS_EXP:=$(addprefix $(ENGINE_OBJ)/,$(addsuffix .$o,$(ENGINE_EDITOR_OBJS)))
|
|
|
|
|
|
|
|
|
2014-07-24 14:01:44 +00:00
|
|
|
# MACT
|
|
|
|
|
2015-05-19 21:56:03 +00:00
|
|
|
MACT_ROOT=$(DUKE3D_SRC)/jmact
|
|
|
|
MACT_SRC=$(MACT_ROOT)
|
|
|
|
MACT_INC=$(MACT_ROOT)
|
|
|
|
MACT_OBJ=$(MACT_ROOT)/$(obj)
|
|
|
|
|
|
|
|
MACT_OBJS=file_lib control keyboard mouse joystick scriplib animlib
|
|
|
|
|
|
|
|
MACT_OBJS_EXP:=$(addprefix $(MACT_OBJ)/,$(addsuffix .$o,$(MACT_OBJS)))
|
2014-07-24 14:01:44 +00:00
|
|
|
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
# AudioLib
|
|
|
|
|
|
|
|
AUDIOLIB_OBJS=drivers fx_man multivoc mix mixst pitch formats vorbis flac xa driver_nosound
|
|
|
|
|
|
|
|
AUDIOLIB_ROOT=$(DUKE3D_SRC)/jaudiolib
|
|
|
|
AUDIOLIB_SRC=$(AUDIOLIB_ROOT)/src
|
|
|
|
AUDIOLIB_INC=$(AUDIOLIB_ROOT)/include
|
2014-07-23 07:21:29 +00:00
|
|
|
AUDIOLIB_OBJ=$(AUDIOLIB_ROOT)/$(obj)
|
2014-07-22 07:25:54 +00:00
|
|
|
|
2014-11-02 05:34:49 +00:00
|
|
|
AUDIOLIB_CFLAGS=-I$(AUDIOLIB_ROOT)/third-party/common/include
|
2014-07-22 07:25:54 +00:00
|
|
|
|
|
|
|
ifeq ($(PLATFORM),WINDOWS)
|
|
|
|
ifeq ($(MIXERTYPE),WIN)
|
|
|
|
AUDIOLIB_CFLAGS+= -DHAVE_DS
|
|
|
|
AUDIOLIB_OBJS+= driver_directsound
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MIXERTYPE),SDL)
|
|
|
|
AUDIOLIB_CFLAGS+= -DHAVE_SDL
|
|
|
|
ifneq ($(PLATFORM),DARWIN)
|
|
|
|
ifneq ($(PLATFORM),WINDOWS)
|
|
|
|
ifneq ($(PLATFORM),WII)
|
|
|
|
AUDIOLIB_CFLAGS+=`pkg-config --cflags vorbis`
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
AUDIOLIB_OBJS+= driver_sdl
|
|
|
|
endif
|
|
|
|
|
|
|
|
AUDIOLIB_OBJS_EXP:=$(addprefix $(AUDIOLIB_OBJ)/,$(addsuffix .$o,$(AUDIOLIB_OBJS)))
|
|
|
|
|
|
|
|
|
|
|
|
# ENet
|
|
|
|
|
|
|
|
ENET_OBJS=callbacks host list packet peer protocol compress
|
|
|
|
|
|
|
|
ENET_ROOT=$(DUKE3D_SRC)/enet
|
|
|
|
ENET_SRC=$(ENET_ROOT)/src
|
|
|
|
ENET_INC=$(ENET_ROOT)/include
|
2014-07-23 07:21:29 +00:00
|
|
|
ENET_OBJ=$(ENET_ROOT)/$(obj)
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
ENET_CFLAGS=
|
|
|
|
|
|
|
|
ifeq ($(PLATFORM),WINDOWS)
|
|
|
|
ENET_OBJS += win32
|
|
|
|
else
|
|
|
|
ENET_OBJS += unix
|
|
|
|
ENET_CFLAGS += -DHAS_SOCKLEN_T
|
|
|
|
endif
|
|
|
|
|
|
|
|
ENET_OBJS_EXP:=$(addprefix $(ENET_OBJ)/,$(addsuffix .$o,$(ENET_OBJS)))
|
|
|
|
|
2014-07-24 14:01:44 +00:00
|
|
|
ifeq ($(NETCODE),0)
|
|
|
|
ENET_TARGET=
|
|
|
|
else
|
|
|
|
ENET_TARGET=$(ENET_OBJS_EXP)
|
|
|
|
endif
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
|
|
|
|
# Tools
|
|
|
|
|
2015-04-08 22:45:14 +00:00
|
|
|
UTIL_OBJS=compat pragmas kplib cache1d crc32 compat_tools
|
2014-07-22 07:25:54 +00:00
|
|
|
UTILS=kextract kgroup transpal wad2art wad2map kmd2tool md2tool generateicon cacheinfo arttool givedepth mkpalette unpackssi bsuite
|
|
|
|
GAMEUTILS=ivfrate
|
|
|
|
DXUTILS=enumdisplay getdxdidf
|
|
|
|
SDLUTILS=makesdlkeytrans
|
|
|
|
|
|
|
|
UTIL_OBJS_EXP:=$(addprefix $(ENGINE_OBJ)/,$(addsuffix .$o,$(UTIL_OBJS)))
|
|
|
|
|
|
|
|
|
2014-07-24 14:01:44 +00:00
|
|
|
# KenBuild (Test Game)
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2014-07-24 14:01:44 +00:00
|
|
|
TESTGAME_ROOT=$(DUKE3D_SRC)/testgame
|
|
|
|
TESTGAME_SRC=$(TESTGAME_ROOT)/src
|
|
|
|
TESTGAME_RSRC=$(TESTGAME_ROOT)/rsrc
|
|
|
|
TESTGAME_OBJ=$(TESTGAME_ROOT)/$(obj)
|
|
|
|
|
|
|
|
TEST_CFLAGS=-I$(TESTGAME_SRC)
|
|
|
|
|
2014-12-18 18:15:05 +00:00
|
|
|
TESTGAME ?= testgame
|
|
|
|
TESTEDITOR ?= testeditor
|
2014-07-24 14:01:44 +00:00
|
|
|
|
2014-12-18 18:15:05 +00:00
|
|
|
TESTGAME_TARGET:=$(TESTGAME)$(EXESUFFIX)
|
|
|
|
TESTEDITOR_TARGET:=$(TESTEDITOR)$(EXESUFFIX)
|
2014-07-24 14:01:44 +00:00
|
|
|
|
|
|
|
TESTGAME_OBJS=game sound_stub common config
|
|
|
|
TESTEDITOR_OBJS=bstub common
|
|
|
|
|
|
|
|
ifeq ($(RENDERTYPE),SDL)
|
|
|
|
ifeq (1,$(HAVE_GTK2))
|
|
|
|
TESTGAME_OBJS+= game_banner startgtk.game
|
2014-11-28 23:47:46 +00:00
|
|
|
TESTEDITOR_OBJS+= build_banner
|
2014-07-24 14:01:44 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
TESTGAME_OBJS+= game_icon
|
|
|
|
TESTEDITOR_OBJS+= build_icon
|
|
|
|
endif
|
|
|
|
ifeq ($(PLATFORM),WINDOWS)
|
|
|
|
TESTGAME_OBJS+= gameres startwin.game
|
|
|
|
TESTEDITOR_OBJS+= buildres
|
2006-04-13 20:47:06 +00:00
|
|
|
endif
|
|
|
|
|
2014-07-24 14:01:44 +00:00
|
|
|
TESTGAME_OBJS_EXP:=$(addprefix $(TESTGAME_OBJ)/,$(addsuffix .$o,$(TESTGAME_OBJS)))
|
|
|
|
TESTEDITOR_OBJS_EXP:=$(addprefix $(TESTGAME_OBJ)/,$(addsuffix .$o,$(TESTEDITOR_OBJS)))
|
|
|
|
|
|
|
|
|
|
|
|
# Duke Nukem 3D
|
|
|
|
|
|
|
|
DUKE3D_CFLAGS=-I$(DUKE3D_INC)
|
2011-09-20 19:12:24 +00:00
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
DUKE3D_LINKERFLAGS=
|
|
|
|
DUKE3D_EDITOR_LINKERFLAGS=
|
2012-11-24 09:13:29 +00:00
|
|
|
|
2014-07-23 07:21:29 +00:00
|
|
|
DUKE3D_OBJ=$(DUKE3D_SRC)/$(obj)
|
2009-12-05 09:22:43 +00:00
|
|
|
|
2014-12-18 18:15:05 +00:00
|
|
|
EDUKE32 ?= eduke32
|
|
|
|
MAPSTER32 ?= mapster32
|
2012-10-29 04:26:25 +00:00
|
|
|
|
2014-12-18 18:15:05 +00:00
|
|
|
EDUKE32_TARGET:=$(EDUKE32)$(EXESUFFIX)
|
|
|
|
MAPSTER32_TARGET:=$(MAPSTER32)$(EXESUFFIX)
|
2012-10-29 04:26:25 +00:00
|
|
|
|
2014-07-28 06:43:46 +00:00
|
|
|
COMMON_OBJS=rev
|
2015-05-19 21:56:03 +00:00
|
|
|
COMMON_EDITOR_OBJS=m32common m32def m32exec m32vars rev
|
2014-07-22 07:25:54 +00:00
|
|
|
|
2015-05-19 21:56:03 +00:00
|
|
|
DUKE3D_OBJS=game global actors gamedef gameexec gamevars player premap sector anim animsounds common config demo input menus namesdyn net savegame rts osdfuncs osdcmds grpscan sounds soundsdyn
|
2014-07-28 06:43:46 +00:00
|
|
|
DUKE3D_EDITOR_OBJS=astub common grpscan sounds_mapster32
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2011-07-18 19:06:29 +00:00
|
|
|
ifneq ($(USE_LIBVPX),0)
|
2014-07-22 07:25:54 +00:00
|
|
|
DUKE3D_OBJS+= animvpx
|
2011-07-18 19:06:29 +00:00
|
|
|
endif
|
2011-09-20 19:12:24 +00:00
|
|
|
|
2012-11-05 02:49:08 +00:00
|
|
|
ifneq (0,$(DISABLEINLINING))
|
2014-07-22 07:25:54 +00:00
|
|
|
DUKE3D_OBJS+= game_inline actors_inline sector_inline
|
2012-11-05 02:49:08 +00:00
|
|
|
endif
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
DUKE3D_MISCDEPS=
|
|
|
|
DUKE3D_EDITOR_MISCDEPS=
|
2011-12-04 18:09:50 +00:00
|
|
|
|
2014-09-07 18:10:17 +00:00
|
|
|
# Lunatic object base names. These are not used in targets directly.
|
|
|
|
LUNATIC_COMMON_OBJS = luaJIT_BC_defs_common luaJIT_BC_engine_maptext luaJIT_BC_engine luaJIT_BC_bcarray luaJIT_BC_bcheck luaJIT_BC_bitar luaJIT_BC_xmath luaJIT_BC_v luaJIT_BC_dump luaJIT_BC_dis_x86 luaJIT_BC_dis_x64
|
|
|
|
LUNATIC_GAME_OBJS = luaJIT_BC_con_lang luaJIT_BC_lunacon luaJIT_BC_randgen luaJIT_BC_stat luaJIT_BC_control luaJIT_BC_defs luaJIT_BC_savegame luaJIT_BC_fs
|
2011-12-03 13:12:51 +00:00
|
|
|
|
|
|
|
## Lunatic devel
|
2011-09-20 19:12:24 +00:00
|
|
|
ifneq (0,$(LUNATIC))
|
2013-12-31 11:52:01 +00:00
|
|
|
# TODO: remove debugging modules from release build
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
DUKE3D_EDITOR_OBJS+= lunatic_m32 $(LUNATIC_COMMON_OBJS)
|
|
|
|
DUKE3D_OBJS+= lunatic_game $(LUNATIC_COMMON_OBJS)
|
2011-12-03 13:12:51 +00:00
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
DUKE3D_EDITOR_OBJS+= luaJIT_BC_defs_m32
|
2013-12-31 11:52:01 +00:00
|
|
|
|
2013-07-07 20:59:14 +00:00
|
|
|
ifneq ($(PLATFORM),WINDOWS)
|
|
|
|
# On non-Windows, we expect to have liblpeg.a (or a symlink to it) in source/.
|
2014-02-10 10:58:38 +00:00
|
|
|
# On Windows, it will reside in platform/Windows/lib/32/ or lib/64/.
|
2014-07-23 07:21:29 +00:00
|
|
|
LIBDIRS+= -L$(DUKE3D_SRC)
|
2014-07-22 07:25:54 +00:00
|
|
|
ifeq ($(realpath $(DUKE3D_SRC)/liblpeg.a),)
|
2013-07-07 20:59:14 +00:00
|
|
|
# XXX: This cripples "make clean" etc. too, but IMO it's better than warning.
|
2014-07-22 07:25:54 +00:00
|
|
|
$(error "liblpeg.a not found in $(realpath $(DUKE3D_OBJ)/..)")
|
2013-07-07 20:59:14 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
LIBS+= -llpeg
|
2014-09-07 18:10:17 +00:00
|
|
|
DUKE3D_OBJS+= $(LUNATIC_GAME_OBJS)
|
2012-05-13 16:05:16 +00:00
|
|
|
|
2011-12-03 13:12:51 +00:00
|
|
|
# now, take care of having the necessary symbols (sector, wall, etc.) in the
|
|
|
|
# executable no matter what the debugging level
|
|
|
|
|
2011-10-11 16:53:15 +00:00
|
|
|
ifeq ($(PLATFORM),DARWIN)
|
2011-12-03 13:12:51 +00:00
|
|
|
# strip on OSX says: removing global symbols from a final linked no longer supported.
|
|
|
|
# Use -exported_symbols_list at link time when building
|
|
|
|
# But, following _their_ directions does not give us the symbols! wtf?
|
2013-01-20 21:17:36 +00:00
|
|
|
ifneq ($(STRIP),0)
|
2014-07-22 07:25:54 +00:00
|
|
|
STRIP+= -s $(DUKE3D_SRC)/lunatic/dynsymlist_osx
|
2013-01-20 21:17:36 +00:00
|
|
|
endif
|
2011-12-03 13:12:51 +00:00
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
DUKE3D_MISCDEPS+= $(DUKE3D_SRC)/lunatic/dynsymlist_osx
|
|
|
|
LINKERFLAGS+= -pagezero_size 10000 -image_base 100000000 #-Wl,-alias_list -Wl,$(DUKE3D_SRC)/lunatic/aliases_list #-exported_symbols_list $(DUKE3D_SRC)/lunatic/dynsymlist_osx
|
2011-12-03 13:12:51 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(PLATFORM),WINDOWS)
|
2013-01-21 21:18:10 +00:00
|
|
|
override STRIP=
|
2014-07-22 07:25:54 +00:00
|
|
|
DUKE3D_MISCDEPS+= $(DUKE3D_SRC)/lunatic/eduke32.def
|
|
|
|
DUKE3D_LINKERFLAGS+= $(DUKE3D_SRC)/lunatic/eduke32.def
|
|
|
|
DUKE3D_EDITOR_MISCDEPS+= $(DUKE3D_SRC)/lunatic/mapster32.def
|
|
|
|
DUKE3D_EDITOR_LINKERFLAGS+= $(DUKE3D_SRC)/lunatic/mapster32.def
|
2011-12-03 13:12:51 +00:00
|
|
|
endif
|
2012-12-13 02:32:59 +00:00
|
|
|
ifeq ($(SUBPLATFORM),LINUX)
|
2013-01-21 21:18:10 +00:00
|
|
|
override STRIP=
|
2014-07-22 07:25:54 +00:00
|
|
|
DUKE3D_LINKERFLAGS+= -Wl,--dynamic-list=$(DUKE3D_SRC)/lunatic/dynsymlist
|
|
|
|
DUKE3D_EDITOR_LINKERFLAGS+= -Wl,--dynamic-list=$(DUKE3D_SRC)/lunatic/dynsymlist_m32
|
2011-10-11 16:53:15 +00:00
|
|
|
endif
|
2011-09-20 19:12:24 +00:00
|
|
|
endif
|
|
|
|
|
2012-12-13 02:32:59 +00:00
|
|
|
ifeq ($(SUBPLATFORM),LINUX)
|
2015-03-02 07:54:24 +00:00
|
|
|
LIBS += -lFLAC -lvorbisfile -lvorbis -logg
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(PLATFORM),BSD)
|
|
|
|
LIBS += -lFLAC -lvorbisfile -lvorbis -logg -lexecinfo
|
2008-08-20 22:58:09 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(PLATFORM),DARWIN)
|
2014-10-18 04:50:47 +00:00
|
|
|
# LIBDIRS += -L$(AUDIOLIB_ROOT)/third-party/Apple/lib
|
2012-03-26 05:04:21 +00:00
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
LIBS += -lFLAC -lvorbisfile -lvorbis -logg -lm \
|
|
|
|
-Wl,-framework,Cocoa -Wl,-framework,Carbon -Wl,-framework,OpenGL \
|
2015-03-24 00:40:43 +00:00
|
|
|
-Wl,-framework,CoreMIDI -Wl,-framework,AudioUnit \
|
2014-07-22 11:19:45 +00:00
|
|
|
-Wl,-framework,AudioToolbox -Wl,-framework,IOKit -Wl,-framework,AGL
|
|
|
|
ifneq (00,$(DARWIN9)$(DARWIN10))
|
|
|
|
LIBS += -Wl,-framework,QuickTime -lm
|
|
|
|
endif
|
2012-03-26 05:04:21 +00:00
|
|
|
|
2012-03-08 06:07:10 +00:00
|
|
|
ifneq (0,$(OSX_STARTUPWINDOW))
|
2014-07-22 07:25:54 +00:00
|
|
|
DUKE3D_OBJS += GrpFile.game GameListSource.game startosx.game
|
2012-03-08 06:07:10 +00:00
|
|
|
endif
|
2008-08-20 22:58:09 +00:00
|
|
|
endif
|
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
ifeq ($(PLATFORM),WINDOWS)
|
2014-07-22 07:25:54 +00:00
|
|
|
LIBS += -lFLAC -lvorbisfile -lvorbis -logg -lcompat-from-mingw-w64
|
2014-07-23 07:21:29 +00:00
|
|
|
LIBDIRS += -L$(AUDIOLIB_ROOT)/third-party/Windows/lib$(WINLIB)
|
2014-07-22 07:25:54 +00:00
|
|
|
DUKE3D_OBJS+= gameres winbits startwin.game
|
|
|
|
DUKE3D_EDITOR_OBJS+= buildres
|
2013-10-07 10:05:03 +00:00
|
|
|
ifeq ($(MIXERTYPE),WIN)
|
2012-11-24 09:13:29 +00:00
|
|
|
LIBS+= -ldsound
|
2015-05-19 22:06:04 +00:00
|
|
|
MIDI_OBJS=music midi mpu401
|
2012-11-24 09:13:29 +00:00
|
|
|
endif
|
|
|
|
endif
|
2014-07-22 07:25:54 +00:00
|
|
|
|
|
|
|
ifeq ($(PLATFORM),WII)
|
|
|
|
LIBS += -lvorbisidec
|
|
|
|
endif
|
|
|
|
|
2012-11-24 09:13:29 +00:00
|
|
|
ifeq ($(RENDERTYPE),SDL)
|
2013-10-07 10:05:03 +00:00
|
|
|
ifeq (1,$(HAVE_GTK2))
|
2014-07-22 07:25:54 +00:00
|
|
|
DUKE3D_OBJS+= game_banner startgtk.game
|
2014-11-28 23:47:46 +00:00
|
|
|
DUKE3D_EDITOR_OBJS+= build_banner
|
2013-10-07 10:05:03 +00:00
|
|
|
endif
|
|
|
|
|
2015-05-27 08:46:44 +00:00
|
|
|
DUKE3D_OBJS+= game_icon
|
|
|
|
DUKE3D_EDITOR_OBJS+= build_icon
|
2013-10-07 10:05:03 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(MIXERTYPE),SDL)
|
2015-05-19 22:06:04 +00:00
|
|
|
MIDI_OBJS=sdlmusic
|
2006-04-13 20:47:06 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-07 18:10:17 +00:00
|
|
|
## Construct file names of object files
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2014-07-24 14:01:44 +00:00
|
|
|
COMMON_OBJS_EXP:=$(addprefix $(DUKE3D_OBJ)/,$(addsuffix .$o,$(COMMON_OBJS)))
|
|
|
|
COMMON_EDITOR_OBJS_EXP:=$(addprefix $(DUKE3D_OBJ)/,$(addsuffix .$o,$(COMMON_EDITOR_OBJS)))
|
|
|
|
|
2015-05-19 22:06:04 +00:00
|
|
|
MIDI_OBJS_EXP:=$(addprefix $(DUKE3D_OBJ)/,$(addsuffix .$o,$(MIDI_OBJS)))
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
DUKE3D_OBJS_EXP:=$(addprefix $(DUKE3D_OBJ)/,$(addsuffix .$o,$(DUKE3D_OBJS)))
|
|
|
|
DUKE3D_EDITOR_OBJS_EXP:=$(addprefix $(DUKE3D_OBJ)/,$(addsuffix .$o,$(DUKE3D_EDITOR_OBJS)))
|
|
|
|
|
2012-11-05 02:49:08 +00:00
|
|
|
|
2015-05-19 21:56:03 +00:00
|
|
|
# Shadow Warrior
|
|
|
|
|
|
|
|
SW_ROOT=$(DUKE3D_SRC)/sw
|
|
|
|
SW_SRC=$(SW_ROOT)/src
|
|
|
|
SW_INC=$(SW_SRC)
|
|
|
|
SW_RSRC=$(SW_ROOT)/rsrc
|
|
|
|
SW_OBJ=$(SW_ROOT)/$(obj)
|
|
|
|
|
|
|
|
SW_CFLAGS=-I$(SW_INC)
|
|
|
|
|
|
|
|
SW ?= voidsw
|
|
|
|
SW_EDITOR ?= voidsw-editor
|
|
|
|
|
|
|
|
SW_TARGET:=$(SW)$(EXESUFFIX)
|
|
|
|
SW_EDITOR_TARGET:=$(SW_EDITOR)$(EXESUFFIX)
|
|
|
|
|
2015-05-19 22:05:20 +00:00
|
|
|
SW_OBJS=actor ai anim border break bunny cache cheats colormap common config console coolg coolie copysect demo draw eel game girlninj goro grpscan hornet interp interpsh inv jplayer jsector jweapon lava light mclip mdastr menus miscactr morph net ninja panel player predict quake ripper ripper2 rooms rotator rts save scrip2 sector serp setup skel skull slidor sounds spike sprite sumo swconfig sync text track vator vis wallmove warp weapon zilla zombie saveable
|
|
|
|
SW_EDITOR_OBJS=jnstub brooms bldscript jbhlp colormap grpscan common
|
2015-05-19 21:56:03 +00:00
|
|
|
|
|
|
|
ifeq ($(RENDERTYPE),SDL)
|
|
|
|
ifeq (1,$(HAVE_GTK2))
|
|
|
|
SW_OBJS+= game_banner startgtk.game
|
|
|
|
SW_EDITOR_OBJS+= build_banner
|
|
|
|
endif
|
|
|
|
|
|
|
|
SW_OBJS+= game_icon
|
|
|
|
SW_EDITOR_OBJS+= game_icon
|
|
|
|
endif
|
|
|
|
ifeq ($(PLATFORM),WINDOWS)
|
|
|
|
SW_OBJS+= gameres startwin.game
|
|
|
|
SW_EDITOR_OBJS+= buildres
|
|
|
|
endif
|
|
|
|
|
|
|
|
SW_OBJS_EXP:=$(addprefix $(SW_OBJ)/,$(addsuffix .$o,$(SW_OBJS)))
|
|
|
|
SW_EDITOR_OBJS_EXP:=$(addprefix $(SW_OBJ)/,$(addsuffix .$o,$(SW_EDITOR_OBJS)))
|
|
|
|
|
|
|
|
|
2008-10-19 12:14:04 +00:00
|
|
|
ifeq ($(PRETTY_OUTPUT),1)
|
2008-10-18 12:37:26 +00:00
|
|
|
.SILENT:
|
2008-10-19 12:14:04 +00:00
|
|
|
endif
|
2015-05-19 21:56:03 +00:00
|
|
|
.PHONY: all duke3d test sw veryclean clean cleanduke3d cleantest cleansw cleanutils utils dxutils sdlutils printutils printsdlutils printdxutils rev $(DUKE3D_OBJ)/rev.$o
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
# TARGETS
|
|
|
|
|
2015-05-19 21:56:03 +00:00
|
|
|
all: duke3d
|
|
|
|
|
2015-07-08 03:34:34 +00:00
|
|
|
duke3d: start $(EDUKE32_TARGET) $(MAPSTER32_TARGET)
|
2012-05-20 07:25:25 +00:00
|
|
|
ifneq (,$(EDUKE32_TARGET))
|
2014-12-18 18:15:05 +00:00
|
|
|
@ls -l $(EDUKE32)$(EXESUFFIX)
|
2012-05-20 07:25:25 +00:00
|
|
|
endif
|
|
|
|
ifneq (,$(MAPSTER32_TARGET))
|
2014-12-18 18:15:05 +00:00
|
|
|
@ls -l $(MAPSTER32)$(EXESUFFIX)
|
2012-05-20 07:25:25 +00:00
|
|
|
endif
|
2012-11-26 08:24:54 +00:00
|
|
|
|
2015-07-08 03:34:34 +00:00
|
|
|
test: start $(TESTGAME_TARGET) $(TESTEDITOR_TARGET)
|
2014-07-24 14:01:44 +00:00
|
|
|
ifneq (,$(TESTGAME_TARGET))
|
2014-12-18 18:15:05 +00:00
|
|
|
@ls -l $(TESTGAME)$(EXESUFFIX)
|
2014-07-24 14:01:44 +00:00
|
|
|
endif
|
|
|
|
ifneq (,$(TESTEDITOR_TARGET))
|
2014-12-18 18:15:05 +00:00
|
|
|
@ls -l $(TESTEDITOR)$(EXESUFFIX)
|
2014-07-24 14:01:44 +00:00
|
|
|
endif
|
|
|
|
|
2015-07-08 03:34:34 +00:00
|
|
|
sw: start $(SW_TARGET) $(SW_EDITOR_TARGET)
|
2015-05-19 21:56:03 +00:00
|
|
|
ifneq (,$(SW_TARGET))
|
|
|
|
@ls -l $(SW)$(EXESUFFIX)
|
|
|
|
endif
|
|
|
|
ifneq (,$(SW_EDITOR_TARGET))
|
|
|
|
@ls -l $(SW_EDITOR)$(EXESUFFIX)
|
|
|
|
endif
|
|
|
|
|
2015-07-08 03:34:34 +00:00
|
|
|
ebacktrace: start $(EBACKTRACEDLL_TARGET)
|
2012-11-15 06:42:37 +00:00
|
|
|
ifneq (,$(EBACKTRACEDLL_TARGET))
|
|
|
|
@ls -l $(EBACKTRACEDLL)
|
|
|
|
endif
|
2008-10-18 12:37:26 +00:00
|
|
|
|
2012-11-15 06:42:37 +00:00
|
|
|
start:
|
2008-10-18 13:25:23 +00:00
|
|
|
$(BUILD_STARTED)
|
2010-01-24 23:33:17 +00:00
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
utils: $(addsuffix $(EXESUFFIX),$(UTILS) $(GAMEUTILS))
|
|
|
|
@ls -l $^
|
|
|
|
|
|
|
|
dxutils: $(addsuffix $(EXESUFFIX),$(DXUTILS))
|
|
|
|
@ls -l $^
|
2012-10-29 04:26:25 +00:00
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
sdlutils: $(addsuffix $(EXESUFFIX),$(SDLUTILS))
|
|
|
|
@ls -l $^
|
|
|
|
|
2014-12-18 18:15:05 +00:00
|
|
|
ifeq ($(PLATFORM),WII)
|
|
|
|
ifneq ($(ELF2DOL),)
|
|
|
|
$(TESTGAME)$(DOLSUFFIX): $(TESTGAME)$(EXESUFFIX)
|
|
|
|
$(TESTEDITOR)$(DOLSUFFIX): $(TESTEDITOR)$(EXESUFFIX)
|
|
|
|
$(EDUKE32)$(DOLSUFFIX): $(EDUKE32)$(EXESUFFIX)
|
|
|
|
$(MAPSTER32)$(DOLSUFFIX): $(MAPSTER32)$(EXESUFFIX)
|
2015-05-19 21:56:03 +00:00
|
|
|
$(SW)$(DOLSUFFIX): $(SW)$(EXESUFFIX)
|
|
|
|
$(SW_EDITOR)$(DOLSUFFIX): $(SW_EDITOR)$(EXESUFFIX)
|
2014-12-18 18:15:05 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(TESTGAME)$(EXESUFFIX): $(TESTGAME_OBJS_EXP) $(COMMON_OBJS_EXP) $(ENGINE_OBJS_EXP)
|
2014-07-24 14:01:44 +00:00
|
|
|
$(LINK_STATUS)
|
|
|
|
$(RECIPE_IF) $(LINKER) -o $@ $^ $(COMMONFLAGS) $(LINKERFLAGS) $(LIBDIRS) $(LIBS) $(STATICSTDCPP) $(RECIPE_RESULT_LINK)
|
2014-12-18 18:15:05 +00:00
|
|
|
ifeq ($(PLATFORM),WII)
|
|
|
|
ifneq ($(ELF2DOL),)
|
|
|
|
$(ELF2DOL) $(TESTGAME)$(EXESUFFIX) $(TESTGAME)$(DOLSUFFIX)
|
|
|
|
endif
|
|
|
|
endif
|
2014-07-24 14:01:44 +00:00
|
|
|
ifneq ($(STRIP),)
|
2015-05-19 21:56:03 +00:00
|
|
|
$(STRIP) $@
|
2014-07-24 14:01:44 +00:00
|
|
|
endif
|
|
|
|
|
2014-12-18 18:15:05 +00:00
|
|
|
$(TESTEDITOR)$(EXESUFFIX): $(TESTEDITOR_OBJS_EXP) $(COMMON_EDITOR_OBJS_EXP) $(ENGINE_EDITOR_OBJS_EXP) $(ENGINE_OBJS_EXP)
|
2014-07-24 14:01:44 +00:00
|
|
|
$(LINK_STATUS)
|
|
|
|
$(RECIPE_IF) $(LINKER) -o $@ $^ $(COMMONFLAGS) $(LINKERFLAGS) $(LIBDIRS) $(LIBS) $(STATICSTDCPP) $(RECIPE_RESULT_LINK)
|
2014-12-18 18:15:05 +00:00
|
|
|
ifeq ($(PLATFORM),WII)
|
|
|
|
ifneq ($(ELF2DOL),)
|
|
|
|
$(ELF2DOL) $(TESTEDITOR)$(EXESUFFIX) $(TESTEDITOR)$(DOLSUFFIX)
|
|
|
|
endif
|
|
|
|
endif
|
2014-07-24 14:01:44 +00:00
|
|
|
ifneq ($(STRIP),)
|
2015-05-19 21:56:03 +00:00
|
|
|
$(STRIP) $@
|
2014-07-24 14:01:44 +00:00
|
|
|
endif
|
|
|
|
|
2015-05-19 22:06:04 +00:00
|
|
|
$(EDUKE32)$(EXESUFFIX): $(DUKE3D_OBJS_EXP) $(COMMON_OBJS_EXP) $(MIDI_OBJS_EXP) $(ENGINE_OBJS_EXP) $(MACT_OBJS_EXP) $(AUDIOLIB_OBJS_EXP) $(ENET_TARGET) $(DUKE3D_MISCDEPS)
|
2008-10-18 13:25:23 +00:00
|
|
|
$(LINK_STATUS)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(RECIPE_IF) $(LINKER) -o $@ $^ $(COMMONFLAGS) $(LINKERFLAGS) $(DUKE3D_LINKERFLAGS) $(LIBDIRS) $(LIBS) $(STATICSTDCPP) $(RECIPE_RESULT_LINK)
|
2014-12-18 18:15:05 +00:00
|
|
|
ifeq ($(PLATFORM),WII)
|
|
|
|
ifneq ($(ELF2DOL),)
|
|
|
|
$(ELF2DOL) $(EDUKE32)$(EXESUFFIX) $(EDUKE32)$(DOLSUFFIX)
|
|
|
|
endif
|
|
|
|
endif
|
2013-01-20 21:17:36 +00:00
|
|
|
ifneq ($(STRIP),)
|
2015-05-19 21:56:03 +00:00
|
|
|
$(STRIP) $@
|
2008-10-18 12:37:26 +00:00
|
|
|
endif
|
2012-02-25 02:59:51 +00:00
|
|
|
ifeq ($(PLATFORM),DARWIN)
|
2013-03-04 04:14:19 +00:00
|
|
|
cp -RPf "platform/Apple/bundles/EDuke32.app" "./"
|
2012-02-26 17:32:53 +00:00
|
|
|
mkdir -p "EDuke32.app/Contents/MacOS"
|
2014-12-18 18:15:05 +00:00
|
|
|
cp -f "$(EDUKE32)$(EXESUFFIX)" "EDuke32.app/Contents/MacOS/"
|
2012-02-25 02:59:51 +00:00
|
|
|
endif
|
2010-01-24 23:33:17 +00:00
|
|
|
|
2014-12-18 18:15:05 +00:00
|
|
|
$(MAPSTER32)$(EXESUFFIX): $(DUKE3D_EDITOR_OBJS_EXP) $(COMMON_EDITOR_OBJS_EXP) $(ENGINE_EDITOR_OBJS_EXP) $(ENGINE_OBJS_EXP) $(AUDIOLIB_OBJS_EXP) $(DUKE3D_EDITOR_MISCDEPS)
|
2008-10-18 13:25:23 +00:00
|
|
|
$(LINK_STATUS)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(RECIPE_IF) $(LINKER) -o $@ $^ $(COMMONFLAGS) $(LINKERFLAGS) $(DUKE3D_EDITOR_LINKERFLAGS) $(LIBDIRS) $(LIBS) $(STATICSTDCPP) $(RECIPE_RESULT_LINK)
|
2014-12-18 18:15:05 +00:00
|
|
|
ifeq ($(PLATFORM),WII)
|
|
|
|
ifneq ($(ELF2DOL),)
|
|
|
|
$(ELF2DOL) $(MAPSTER32)$(EXESUFFIX) $(MAPSTER32)$(DOLSUFFIX)
|
|
|
|
endif
|
|
|
|
endif
|
2013-01-20 21:17:36 +00:00
|
|
|
ifneq ($(STRIP),)
|
2015-05-19 21:56:03 +00:00
|
|
|
$(STRIP) $@
|
2010-08-12 21:06:51 +00:00
|
|
|
endif
|
2012-02-25 02:59:51 +00:00
|
|
|
ifeq ($(PLATFORM),DARWIN)
|
2013-03-04 04:14:19 +00:00
|
|
|
cp -RPf "platform/Apple/bundles/Mapster32.app" "./"
|
2012-02-26 17:32:53 +00:00
|
|
|
mkdir -p "Mapster32.app/Contents/MacOS"
|
2014-12-18 18:15:05 +00:00
|
|
|
cp -f "$(MAPSTER32)$(EXESUFFIX)" "Mapster32.app/Contents/MacOS/"
|
2012-02-25 02:59:51 +00:00
|
|
|
endif
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2015-05-19 22:06:04 +00:00
|
|
|
$(SW)$(EXESUFFIX): $(SW_OBJS_EXP) $(COMMON_OBJS_EXP) $(MIDI_OBJS_EXP) $(ENGINE_OBJS_EXP) $(MACT_OBJS_EXP) $(AUDIOLIB_OBJS_EXP)
|
2015-05-19 21:56:03 +00:00
|
|
|
$(LINK_STATUS)
|
|
|
|
$(RECIPE_IF) $(LINKER) -o $@ $^ $(COMMONFLAGS) $(LINKERFLAGS) $(DUKE3D_LINKERFLAGS) $(LIBDIRS) $(LIBS) $(STATICSTDCPP) $(RECIPE_RESULT_LINK)
|
|
|
|
ifeq ($(PLATFORM),WII)
|
|
|
|
ifneq ($(ELF2DOL),)
|
|
|
|
$(ELF2DOL) $(SW)$(EXESUFFIX) $(SW)$(DOLSUFFIX)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifneq ($(STRIP),)
|
|
|
|
$(STRIP) $@
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(SW_EDITOR)$(EXESUFFIX): $(SW_EDITOR_OBJS_EXP) $(COMMON_EDITOR_OBJS_EXP) $(ENGINE_EDITOR_OBJS_EXP) $(ENGINE_OBJS_EXP)
|
|
|
|
$(LINK_STATUS)
|
|
|
|
$(RECIPE_IF) $(LINKER) -o $@ $^ $(COMMONFLAGS) $(LINKERFLAGS) $(DUKE3D_EDITOR_LINKERFLAGS) $(LIBDIRS) $(LIBS) $(STATICSTDCPP) $(RECIPE_RESULT_LINK)
|
|
|
|
ifeq ($(PLATFORM),WII)
|
|
|
|
ifneq ($(ELF2DOL),)
|
|
|
|
$(ELF2DOL) $(SW_EDITOR)$(EXESUFFIX) $(SW_EDITOR)$(DOLSUFFIX)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifneq ($(STRIP),)
|
|
|
|
$(STRIP) $@
|
|
|
|
endif
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
include $(ENGINE_ROOT)/Makefile.deps
|
2015-05-19 21:56:03 +00:00
|
|
|
include Makefile.deps
|
|
|
|
include $(SW_ROOT)/Makefile.deps
|
2009-12-05 09:22:43 +00:00
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
# RULES
|
2012-10-07 15:25:58 +00:00
|
|
|
|
2013-03-04 04:14:19 +00:00
|
|
|
$(EBACKTRACEDLL): platform/Windows/src/backtrace.c
|
2012-11-15 06:42:37 +00:00
|
|
|
$(COMPILE_STATUS)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(RECIPE_IF) $(CC) $(CONLYFLAGS) -O2 -ggdb -shared -Wall -Wextra -static-libgcc -I$(ENGINE_INC) -o $@ $^ -lbfd -liberty -limagehlp $(RECIPE_RESULT_COMPILE)
|
2010-08-12 21:06:51 +00:00
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
libcache1d$(DLLSUFFIX): $(ENGINE_SRC)/cache1d.c
|
2008-10-18 13:25:23 +00:00
|
|
|
$(COMPILE_STATUS)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER) -Wall -Wextra -DCACHE1D_COMPRESS_ONLY -shared -fPIC $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2008-10-18 12:37:26 +00:00
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
%$(EXESUFFIX): $(ENGINE_OBJ)/%.$o $(UTIL_OBJS_EXP)
|
|
|
|
$(ONESTEP_STATUS)
|
|
|
|
$(RECIPE_IF) $(LINKER) -o $@ $^ $(COMMONFLAGS) $(LINKERFLAGS) $(LIBDIRS) $(LIBS) $(UTIL_LIBS) $(RECIPE_RESULT_ONESTEP)
|
2013-12-06 18:56:46 +00:00
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
%$(EXESUFFIX): $(DUKE3D_OBJ)/%.$o
|
|
|
|
$(ONESTEP_STATUS)
|
|
|
|
$(RECIPE_IF) $(LINKER) -o $@ $^ $(COMMONFLAGS) $(LINKERFLAGS) $(LIBDIRS) $(LIBS) $(UTIL_LIBS) $(RECIPE_RESULT_ONESTEP)
|
2013-12-06 18:56:46 +00:00
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
enumdisplay$(EXESUFFIX): $(ENGINE_OBJ)/enumdisplay.$o
|
|
|
|
$(ONESTEP_STATUS)
|
|
|
|
$(RECIPE_IF) $(LINKER) -o $@ $^ $(COMMONFLAGS) $(LINKERFLAGS) $(LIBDIRS) $(LIBS) $(UTIL_LIBS) -lgdi32 $(RECIPE_RESULT_ONESTEP)
|
|
|
|
getdxdidf$(EXESUFFIX): $(ENGINE_OBJ)/getdxdidf.$o
|
|
|
|
$(ONESTEP_STATUS)
|
|
|
|
$(RECIPE_IF) $(LINKER) -o $@ $^ $(COMMONFLAGS) $(LINKERFLAGS) $(LIBDIRS) $(LIBS) $(UTIL_LIBS) -ldinput $(RECIPE_RESULT_ONESTEP)
|
|
|
|
makesdlkeytrans$(EXESUFFIX): $(ENGINE_OBJ)/makesdlkeytrans.$o
|
|
|
|
$(ONESTEP_STATUS)
|
|
|
|
$(RECIPE_IF) $(LINKER) -o $@ $^ $(COMMONFLAGS) $(LINKERFLAGS) $(LIBDIRS) $(LIBS) $(UTIL_LIBS) $(SDL_INCLUDES) $(RECIPE_RESULT_ONESTEP)
|
|
|
|
arttool$(EXESUFFIX): $(ENGINE_OBJ)/arttool.$o
|
|
|
|
$(ONESTEP_STATUS)
|
2014-07-22 11:19:25 +00:00
|
|
|
$(RECIPE_IF) $(L_CXX) $(CPPONLYFLAGS) -o $@ $^ $(COMMONFLAGS) $(LINKERFLAGS) $(LIBDIRS) $(LIBS) $(STATICSTDCPP) $(STDCPPLIB) $(UTIL_LIBS) $(RECIPE_RESULT_ONESTEP)
|
2012-11-08 20:17:23 +00:00
|
|
|
|
2012-10-07 15:25:58 +00:00
|
|
|
#### Lunatic
|
|
|
|
|
2012-05-13 16:05:16 +00:00
|
|
|
# Create object files directly with luajit
|
2014-07-22 07:25:54 +00:00
|
|
|
$(DUKE3D_OBJ)/luaJIT_BC_%.$o: source/lunatic/%.lua
|
2012-05-13 16:05:16 +00:00
|
|
|
$(COMPILE_STATUS)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(RECIPE_IF) $(LUAJIT) -bg $(LUAJIT_BCOPTS) $< $@ $(RECIPE_RESULT_COMPILE)
|
2012-05-13 16:05:16 +00:00
|
|
|
|
2014-01-02 00:08:36 +00:00
|
|
|
# Same thing for defs*.ilua which I'm too reluctant to rename now:
|
2013-08-11 15:28:42 +00:00
|
|
|
# NOTE: The target path must match EXACTLY with that of the DEFS_BC_SIZE
|
|
|
|
# determination in Makefile.common, because it is embedded into the bytecode as
|
|
|
|
# debugging information.
|
2014-07-22 07:25:54 +00:00
|
|
|
$(DUKE3D_OBJ)/luaJIT_BC_%.$o: source/lunatic/%.ilua
|
|
|
|
$(RECIPE_IF) $(LUAJIT) -bg $(LUAJIT_BCOPTS) $< $@ $(RECIPE_RESULT_COMPILE)
|
2013-02-24 16:05:31 +00:00
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
$(DUKE3D_OBJ)/%.$o: $(DUKE3D_SRC)/lunatic/%.c
|
2011-09-20 19:12:24 +00:00
|
|
|
$(COMPILE_STATUS)
|
2014-07-24 14:01:44 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER) $(COMMONFLAGS) $(COMPILERFLAGS) $(DUKE3D_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2011-09-20 19:12:24 +00:00
|
|
|
|
2012-10-07 15:25:58 +00:00
|
|
|
# TODO: _m32
|
|
|
|
# List of exported symbols, OS X
|
2014-07-22 07:25:54 +00:00
|
|
|
$(DUKE3D_SRC)/lunatic/dynsymlist_osx: $(DUKE3D_SRC)/lunatic/dynsymlist
|
2011-10-11 16:53:15 +00:00
|
|
|
sed 's/[{};]//g;s/[A-Za-z_][A-Za-z_0-9]*/_&/g' $< > $@
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
#$(DUKE3D_SRC)/lunatic/aliases_list: $(DUKE3D_SRC)/lunatic/dynsymlist_osx
|
2012-10-07 15:25:58 +00:00
|
|
|
# sed 's/_\([A-Za-z_][A-Za-z_0-9]*\)/_\1 \1/g' $< > $@
|
2011-10-11 16:53:15 +00:00
|
|
|
|
2012-10-07 15:25:58 +00:00
|
|
|
# List of exported symbols, Windows
|
2014-07-22 07:25:54 +00:00
|
|
|
$(DUKE3D_SRC)/lunatic/eduke32.def: $(DUKE3D_SRC)/lunatic/dynsymlist
|
2011-12-03 13:12:51 +00:00
|
|
|
echo EXPORTS > $@
|
|
|
|
sed 's/[{};]//g' $< >> $@
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
$(DUKE3D_SRC)/lunatic/mapster32.def: $(DUKE3D_SRC)/lunatic/dynsymlist_m32
|
2012-11-30 18:57:50 +00:00
|
|
|
echo EXPORTS > $@
|
|
|
|
sed 's/[{};]//g' $< >> $@
|
|
|
|
|
2012-10-07 15:25:58 +00:00
|
|
|
####
|
|
|
|
|
2014-07-23 07:21:29 +00:00
|
|
|
$(ENGINE_OBJ)/%.$o: $(ENGINE_SRC)/%.nasm | $(ENGINE_OBJ)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(COMPILE_STATUS)
|
|
|
|
$(RECIPE_IF) $(AS) $(ASFLAGS) $< -o $@ $(RECIPE_RESULT_COMPILE)
|
|
|
|
|
2014-07-23 07:21:29 +00:00
|
|
|
$(ENGINE_OBJ)/%.$o: $(ENGINE_SRC)/%.yasm | $(ENGINE_OBJ)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(COMPILE_STATUS)
|
|
|
|
$(RECIPE_IF) $(AS) $(ASFLAGS) $< -o $@ $(RECIPE_RESULT_COMPILE)
|
|
|
|
|
|
|
|
# Comment out the following rule to debug a-c.o
|
2014-07-23 07:21:29 +00:00
|
|
|
$(ENGINE_OBJ)/a-c.$o: $(ENGINE_SRC)/a-c.c | $(ENGINE_OBJ)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(COMPILE_STATUS)
|
|
|
|
$(RECIPE_IF) $(COMPILER) $(subst -O$(OPTLEVEL),-O2,$(subst $(CLANG_DEBUG_FLAGS),,$(COMMONFLAGS) $(COMPILERFLAGS))) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
|
|
|
|
2014-07-23 07:21:29 +00:00
|
|
|
$(ENGINE_OBJ)/%.$o: $(ENGINE_SRC)/%.c | $(ENGINE_OBJ)
|
2011-06-17 11:53:41 +00:00
|
|
|
$(COMPILE_STATUS)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER) $(COMMONFLAGS) $(COMPILERFLAGS) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2012-03-12 04:48:42 +00:00
|
|
|
|
2014-07-23 07:21:29 +00:00
|
|
|
$(ENGINE_OBJ)/%.$o: $(ENGINE_SRC)/%.m | $(ENGINE_OBJ)
|
2012-03-12 04:48:42 +00:00
|
|
|
$(COMPILE_STATUS)
|
2014-10-16 21:03:24 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_OBJC) $(COMMONFLAGS) $(COMPILERFLAGS) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2011-06-17 11:53:41 +00:00
|
|
|
|
2014-07-23 07:21:29 +00:00
|
|
|
$(ENGINE_OBJ)/%.$o: $(ENGINE_SRC)/%.cpp | $(ENGINE_OBJ)
|
2008-10-18 13:25:23 +00:00
|
|
|
$(COMPILE_STATUS)
|
2014-07-22 11:19:25 +00:00
|
|
|
$(RECIPE_IF) $(CXX) $(CPPONLYFLAGS) $(COMMONFLAGS) $(COMPILERFLAGS) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2008-10-18 12:37:26 +00:00
|
|
|
|
2014-07-23 07:21:29 +00:00
|
|
|
$(ENGINE_OBJ)/%.$o: $(ENGINE_SRC)/misc/%.c | $(ENGINE_OBJ)
|
2012-03-12 04:48:42 +00:00
|
|
|
$(COMPILE_STATUS)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER) $(COMMONFLAGS) $(COMPILERFLAGS) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2012-03-12 04:48:42 +00:00
|
|
|
|
2014-07-23 07:21:29 +00:00
|
|
|
$(ENGINE_OBJ)/%.$o: $(ENGINE_SRC)/util/%.c | $(ENGINE_OBJ)
|
2008-10-18 13:25:23 +00:00
|
|
|
$(COMPILE_STATUS)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER) $(COMMONFLAGS) $(COMPILERFLAGS) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2006-07-14 07:28:32 +00:00
|
|
|
|
2014-07-23 07:21:29 +00:00
|
|
|
$(ENGINE_OBJ)/%.$o: $(ENGINE_SRC)/util/%.cpp | $(ENGINE_OBJ)
|
2008-10-18 13:25:23 +00:00
|
|
|
$(COMPILE_STATUS)
|
2014-07-22 11:19:25 +00:00
|
|
|
$(RECIPE_IF) $(CXX) $(CPPONLYFLAGS) $(COMMONFLAGS) $(COMPILERFLAGS) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2010-01-24 23:33:17 +00:00
|
|
|
|
2014-07-23 07:21:29 +00:00
|
|
|
$(ENGINE_OBJ)/%.$o: $(ENGINE_SRC)/util/%.cc | $(ENGINE_OBJ)
|
2011-01-16 03:43:48 +00:00
|
|
|
$(COMPILE_STATUS)
|
2014-07-22 11:19:25 +00:00
|
|
|
$(RECIPE_IF) $(CXX) $(CPPONLYFLAGS) $(COMMONFLAGS) $(COMPILERFLAGS) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2011-02-12 13:25:24 +00:00
|
|
|
|
2014-07-23 07:21:29 +00:00
|
|
|
$(ENGINE_OBJ)/%.$o: $(DUKE3D_RSRC)/%.c | $(ENGINE_OBJ)
|
2011-01-16 03:43:48 +00:00
|
|
|
$(COMPILE_STATUS)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER) $(COMMONFLAGS) $(COMPILERFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2011-01-16 03:43:48 +00:00
|
|
|
|
2015-05-19 21:56:03 +00:00
|
|
|
$(MACT_OBJ)/%.$o: $(MACT_SRC)/%.c | $(MACT_OBJ)
|
|
|
|
$(COMPILE_STATUS)
|
|
|
|
$(RECIPE_IF) $(COMPILER) $(COMMONFLAGS) $(COMPILERFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
$(AUDIOLIB_OBJ)/%.o: $(AUDIOLIB_SRC)/%.c | $(AUDIOLIB_OBJ)
|
|
|
|
$(COMPILE_STATUS)
|
|
|
|
$(RECIPE_IF) $(COMPILER) $(COMMONFLAGS) $(COMPILERFLAGS) $(AUDIOLIB_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
|
|
|
|
|
|
|
$(ENET_OBJ)/%.o: $(ENET_SRC)/%.c $(ENET_INC)/enet/*.h | $(ENET_OBJ)
|
|
|
|
$(COMPILE_STATUS)
|
|
|
|
$(RECIPE_IF) $(COMPILER) $(COMMONFLAGS) $(COMPILERFLAGS) $(ENET_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
|
|
|
|
2014-07-24 14:01:44 +00:00
|
|
|
$(TESTGAME_OBJ)/%.$o: $(TESTGAME_SRC)/%.c | $(TESTGAME_OBJ)
|
|
|
|
$(COMPILE_STATUS)
|
|
|
|
$(RECIPE_IF) $(COMPILER) $(COMMONFLAGS) $(COMPILERFLAGS) $(TESTGAME_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
|
|
|
|
2015-05-19 21:56:03 +00:00
|
|
|
$(TESTGAME_OBJ)/%.$o: $(TESTGAME_SRC)/%.m | $(TESTGAME_OBJ)
|
|
|
|
$(COMPILE_STATUS)
|
|
|
|
$(RECIPE_IF) $(COMPILER) $(COMMONFLAGS) $(COMPILERFLAGS) $(TESTGAME_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
|
|
|
|
2014-07-24 14:01:44 +00:00
|
|
|
$(TESTGAME_OBJ)/%.$o: $(TESTGAME_RSRC)/%.rc | $(TESTGAME_OBJ)
|
|
|
|
$(COMPILE_STATUS)
|
|
|
|
$(RECIPE_IF) $(RC) -i $< -o $@ --include-dir=$(ENGINE_INC) --include-dir=$(TESTGAME_SRC) --include-dir=$(TESTGAME_RSRC) $(RECIPE_RESULT_COMPILE)
|
|
|
|
|
|
|
|
$(TESTGAME_OBJ)/%.$o: $(TESTGAME_RSRC)/%.c | $(TESTGAME_OBJ)
|
|
|
|
$(COMPILE_STATUS)
|
2014-07-28 06:43:16 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER) $(COMMONFLAGS) $(COMPILERFLAGS) $(TESTGAME_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2014-07-24 14:01:44 +00:00
|
|
|
|
2015-05-19 21:56:03 +00:00
|
|
|
$(TESTGAME_RSRC)/%_banner.c: $(TESTGAME_RSRC)/%.bmp
|
|
|
|
echo "#include \"gtkpixdata_shim.h\"" > $@
|
|
|
|
gdk-pixbuf-csource --extern --struct --raw --name=startbanner_pixdata $^ | sed 's/load_inc//' >> $@
|
|
|
|
|
2014-07-24 14:01:44 +00:00
|
|
|
$(DUKE3D_OBJ)/%.$o: $(DUKE3D_SRC)/%.c | $(DUKE3D_OBJ)
|
|
|
|
$(COMPILE_STATUS)
|
|
|
|
$(RECIPE_IF) $(COMPILER) $(COMMONFLAGS) $(COMPILERFLAGS) $(DUKE3D_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
|
|
|
|
2014-07-28 08:59:58 +00:00
|
|
|
$(DUKE3D_OBJ)/rev.$o: $(DUKE3D_SRC)/rev.c | $(DUKE3D_OBJ)
|
|
|
|
$(COMPILE_STATUS)
|
|
|
|
$(RECIPE_IF) $(COMPILER) $(COMMONFLAGS) $(COMPILERFLAGS) $(DUKE3D_CFLAGS) $(REVFLAG) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
|
|
|
|
2014-07-24 14:01:44 +00:00
|
|
|
$(DUKE3D_OBJ)/%.$o: $(DUKE3D_SRC)/util/%.c | $(DUKE3D_OBJ)
|
|
|
|
$(COMPILE_STATUS)
|
|
|
|
$(RECIPE_IF) $(COMPILER) $(COMMONFLAGS) $(COMPILERFLAGS) $(DUKE3D_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
|
|
|
|
2014-07-23 07:21:29 +00:00
|
|
|
$(DUKE3D_OBJ)/%.$o: $(DUKE3D_SRC)/%.m | $(DUKE3D_OBJ)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(COMPILE_STATUS)
|
2014-10-16 21:03:24 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_OBJC) $(COMMONFLAGS) $(COMPILERFLAGS) $(DUKE3D_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2014-07-22 07:25:54 +00:00
|
|
|
|
2014-07-23 07:21:29 +00:00
|
|
|
$(DUKE3D_OBJ)/%.$o: $(DUKE3D_SRC)/%.cpp | $(DUKE3D_OBJ)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(COMPILE_STATUS)
|
2014-07-24 14:01:44 +00:00
|
|
|
$(RECIPE_IF) $(CXX) $(CPPONLYFLAGS) $(COMMONFLAGS) $(COMPILERFLAGS) $(DUKE3D_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2014-07-22 07:25:54 +00:00
|
|
|
|
2014-07-23 07:21:29 +00:00
|
|
|
$(DUKE3D_OBJ)/%.$o: $(DUKE3D_SRC)/misc/%.rc | $(DUKE3D_OBJ)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(COMPILE_STATUS)
|
2014-07-24 14:01:44 +00:00
|
|
|
$(RECIPE_IF) $(RC) -i $< -o $@ --include-dir=$(ENGINE_INC) --include-dir=$(DUKE3D_SRC) --include-dir=$(DUKE3D_RSRC) -DPOLYMER=$(POLYMER) $(RECIPE_RESULT_COMPILE)
|
2014-07-22 07:25:54 +00:00
|
|
|
|
2014-07-23 07:21:29 +00:00
|
|
|
$(DUKE3D_OBJ)/%.$o: $(DUKE3D_RSRC)/%.c | $(DUKE3D_OBJ)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(COMPILE_STATUS)
|
2014-07-28 06:43:16 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER) $(COMMONFLAGS) $(COMPILERFLAGS) $(DUKE3D_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2014-07-22 07:25:54 +00:00
|
|
|
|
2014-11-28 23:47:46 +00:00
|
|
|
$(DUKE3D_RSRC)/%_banner.c: $(DUKE3D_RSRC)/%.bmp
|
|
|
|
echo "#include \"gtkpixdata_shim.h\"" > $@
|
|
|
|
|
2015-05-19 21:56:03 +00:00
|
|
|
$(SW_OBJ)/%.$o: $(SW_SRC)/%.c | $(SW_OBJ)
|
|
|
|
$(COMPILE_STATUS)
|
|
|
|
$(RECIPE_IF) $(COMPILER) $(COMMONFLAGS) $(COMPILERFLAGS) $(SW_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
|
|
|
|
|
|
|
$(SW_OBJ)/%.$o: $(SW_SRC)/%.m | $(SW_OBJ)
|
|
|
|
$(COMPILE_STATUS)
|
|
|
|
$(RECIPE_IF) $(COMPILER) $(COMMONFLAGS) $(COMPILERFLAGS) $(SW_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
|
|
|
|
|
|
|
$(SW_OBJ)/%.$o: $(SW_RSRC)/%.rc | $(SW_OBJ)
|
|
|
|
$(COMPILE_STATUS)
|
|
|
|
$(RECIPE_IF) $(RC) -i $< -o $@ --include-dir=$(ENGINE_INC) --include-dir=$(SW_SRC) --include-dir=$(SW_RSRC) $(RECIPE_RESULT_COMPILE)
|
|
|
|
|
|
|
|
$(SW_OBJ)/%.$o: $(SW_RSRC)/%.c | $(SW_OBJ)
|
|
|
|
$(COMPILE_STATUS)
|
|
|
|
$(RECIPE_IF) $(COMPILER) $(COMMONFLAGS) $(COMPILERFLAGS) $(SW_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
|
|
|
|
|
|
|
$(SW_RSRC)/%_banner.c: $(SW_RSRC)/%.bmp
|
2014-11-28 23:47:46 +00:00
|
|
|
echo "#include \"gtkpixdata_shim.h\"" > $@
|
2006-04-13 20:47:06 +00:00
|
|
|
gdk-pixbuf-csource --extern --struct --raw --name=startbanner_pixdata $^ | sed 's/load_inc//' >> $@
|
|
|
|
|
2015-05-19 21:56:03 +00:00
|
|
|
$(ENGINE_OBJ) $(MACT_OBJ) $(AUDIOLIB_OBJ) $(ENET_OBJ) $(TESTGAME_OBJ) $(DUKE3D_OBJ) $(SW_OBJ):
|
2014-12-09 23:56:31 +00:00
|
|
|
-mkdir $@ $(DONT_PRINT) $(DONT_FAIL)
|
2014-07-23 07:21:29 +00:00
|
|
|
|
2014-11-22 18:37:19 +00:00
|
|
|
## PHONIES
|
2008-08-20 22:58:09 +00:00
|
|
|
|
2015-05-19 21:56:03 +00:00
|
|
|
clean: cleanduke3d
|
|
|
|
|
2014-11-22 18:37:19 +00:00
|
|
|
# Delete executables, object files created from sources in source/, and
|
|
|
|
# miscellaneous generated files related to Lunatic on non-Linux.
|
2015-05-19 21:56:03 +00:00
|
|
|
cleanduke3d:
|
|
|
|
ifeq ($(PRETTY_OUTPUT),1)
|
|
|
|
echo "rm -f $(EDUKE32)$(EXESUFFIX) $(MAPSTER32)$(EXESUFFIX) $(DUKE3D_OBJ)/*.$o $(DUKE3D_MISCDEPS) $(DUKE3D_EDITOR_MISCDEPS)"
|
|
|
|
endif
|
|
|
|
-rm -f $(EDUKE32)$(EXESUFFIX) $(MAPSTER32)$(EXESUFFIX) $(DUKE3D_OBJ)/*.$o $(DUKE3D_MISCDEPS) $(DUKE3D_EDITOR_MISCDEPS)
|
2012-02-26 17:32:53 +00:00
|
|
|
ifeq ($(PLATFORM),DARWIN)
|
|
|
|
-rm -rf EDuke32.app Mapster32.app
|
|
|
|
endif
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2014-07-24 14:01:44 +00:00
|
|
|
cleantest:
|
2015-05-19 21:56:03 +00:00
|
|
|
-rm -f $(TESTGAME)$(EXESUFFIX) $(TESTEDITOR)$(EXESUFFIX) $(TESTGAME_OBJ)/*.$o
|
|
|
|
|
|
|
|
cleansw:
|
|
|
|
-rm -f $(SW)$(EXESUFFIX) $(SW_EDITOR)$(EXESUFFIX) $(SW_OBJ)/*.$o
|
2014-07-24 14:01:44 +00:00
|
|
|
|
2012-11-15 06:42:37 +00:00
|
|
|
cleanutils:
|
2014-07-22 07:25:54 +00:00
|
|
|
-rm -f $(addsuffix $(EXESUFFIX),$(UTILS) $(GAMEUTILS)) $(addprefix $(ENGINE_OBJ)/,$(addsuffix .$o,$(UTILS))) $(addprefix $(DUKE3D_OBJ)/,$(addsuffix .$o,$(GAMEUTILS))) $(addsuffix $(EXESUFFIX),$(DXUTILS)) $(addprefix $(ENGINE_OBJ)/,$(addsuffix .$o,$(DXUTILS))) $(addsuffix $(EXESUFFIX),$(SDLUTILS)) $(addprefix $(ENGINE_OBJ)/,$(addsuffix .$o,$(SDLUTILS))) $(UTIL_OBJS_EXP)
|
2012-11-15 06:42:37 +00:00
|
|
|
|
|
|
|
veryclean: clean cleanutils
|
2015-05-19 21:56:03 +00:00
|
|
|
ifeq ($(PRETTY_OUTPUT),1)
|
2014-11-22 18:37:19 +00:00
|
|
|
echo "Removed test game and utils objects."
|
2015-05-19 21:56:03 +00:00
|
|
|
echo "rm -f $(ENGINE_OBJ)/*.$o $(MACT_OBJ)/*.$o $(AUDIOLIB_OBJ)/*.$o $(ENET_OBJ)/*.$o $(DUKE3D_RSRC)/*banner* $(EBACKTRACEDLL)"
|
|
|
|
endif
|
|
|
|
-rm -f $(ENGINE_OBJ)/*.$o $(MACT_OBJ)/*.$o $(AUDIOLIB_OBJ)/*.$o $(ENET_OBJ)/*.$o $(DUKE3D_RSRC)/*banner* $(EBACKTRACEDLL)
|
2012-11-15 06:42:37 +00:00
|
|
|
|
|
|
|
printutils:
|
2014-07-22 07:25:54 +00:00
|
|
|
echo "$(addsuffix $(EXESUFFIX),$(UTILS) $(GAMEUTILS))"
|
|
|
|
|
|
|
|
printdxutils:
|
|
|
|
echo "$(addsuffix $(EXESUFFIX),$(DXUTILS))"
|
|
|
|
|
|
|
|
printsdlutils:
|
|
|
|
echo "$(addsuffix $(EXESUFFIX),$(SDLUTILS))"
|
2014-02-22 08:02:41 +00:00
|
|
|
|
2014-07-28 08:59:58 +00:00
|
|
|
rev: $(DUKE3D_OBJ)/rev.$o
|