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
|
|
|
#
|
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
include Common.mak
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
source=source
|
|
|
|
DUKE3D=duke3d
|
|
|
|
DUKE3D_ROOT=$(source)/$(DUKE3D)
|
|
|
|
DUKE3D_SRC=$(DUKE3D_ROOT)/src
|
|
|
|
DUKE3D_RSRC=$(DUKE3D_ROOT)/rsrc
|
|
|
|
ENGINE_ROOT=$(source)/$(ENGINE)
|
2014-07-22 07:25:54 +00:00
|
|
|
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
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
|
|
|
|
# BUILD Engine
|
|
|
|
|
2016-05-23 04:46:57 +00:00
|
|
|
ENGINE=build
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
ENGINE_CFLAGS=-I$(ENGINE_SRC)
|
|
|
|
|
2016-05-23 04:47:00 +00:00
|
|
|
ENGINE_OBJ=$(obj)/$(ENGINE)
|
2014-07-23 07:21:29 +00:00
|
|
|
|
2016-05-23 04:47:18 +00:00
|
|
|
ENGINE_OBJS = \
|
2017-02-01 10:20:54 +00:00
|
|
|
rev \
|
2016-05-23 04:47:18 +00:00
|
|
|
baselayer \
|
|
|
|
cache1d \
|
|
|
|
common \
|
|
|
|
compat \
|
|
|
|
crc32 \
|
|
|
|
defs \
|
|
|
|
engine \
|
2016-06-21 00:34:25 +00:00
|
|
|
tiles \
|
2016-06-21 00:33:30 +00:00
|
|
|
clip \
|
2016-06-21 00:33:14 +00:00
|
|
|
2d \
|
2016-06-21 00:32:53 +00:00
|
|
|
hash \
|
2016-06-21 00:33:06 +00:00
|
|
|
palette \
|
2016-05-23 04:47:18 +00:00
|
|
|
polymost \
|
|
|
|
texcache \
|
|
|
|
dxtfilter \
|
|
|
|
hightile \
|
|
|
|
textfont \
|
|
|
|
smalltextfont \
|
|
|
|
kplib \
|
|
|
|
lz4 \
|
|
|
|
osd \
|
|
|
|
pragmas \
|
|
|
|
scriptfile \
|
|
|
|
mmulti_null \
|
|
|
|
mutex \
|
|
|
|
xxhash \
|
|
|
|
md4 \
|
|
|
|
colmatch \
|
2016-06-21 00:33:30 +00:00
|
|
|
screenshot \
|
2017-02-01 10:20:54 +00:00
|
|
|
mhk \
|
2016-05-23 04:47:18 +00:00
|
|
|
|
|
|
|
ENGINE_EDITOR_OBJS = \
|
|
|
|
build \
|
|
|
|
config \
|
|
|
|
defs \
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
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
|
2016-11-28 04:35:27 +00:00
|
|
|
ifeq ($(STARTUP_WINDOW),1)
|
2014-07-22 07:25:54 +00:00
|
|
|
ENGINE_EDITOR_OBJS += startosx.editor
|
|
|
|
endif
|
2016-03-28 05:16:18 +00:00
|
|
|
ifeq ($(SDL_TARGET),1)
|
2016-06-15 07:08:35 +00:00
|
|
|
ifneq ($(SDL_FRAMEWORK),0)
|
2016-03-28 05:16:18 +00:00
|
|
|
ENGINE_OBJS+=SDLMain
|
|
|
|
endif
|
2014-07-22 07:25:54 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq ($(PLATFORM),WINDOWS)
|
|
|
|
ENGINE_OBJS+= winbits
|
2016-11-28 04:35:34 +00:00
|
|
|
ifeq ($(STARTUP_WINDOW),1)
|
|
|
|
ENGINE_EDITOR_OBJS+= startwin.editor
|
|
|
|
endif
|
2014-07-22 07:25:54 +00:00
|
|
|
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
|
2016-11-28 04:35:31 +00:00
|
|
|
ifeq ($(STARTUP_WINDOW),1)
|
|
|
|
ENGINE_EDITOR_OBJS+= startgtk.editor
|
|
|
|
endif
|
2014-07-22 07:25:54 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq ($(RENDERTYPE),WIN)
|
|
|
|
ENGINE_OBJS+= winlayer rawinput
|
|
|
|
endif
|
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
ifneq ($(USE_LIBVPX),0)
|
|
|
|
ENGINE_OBJS+= animvpx
|
|
|
|
endif
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
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
|
|
|
|
|
2016-05-23 04:46:57 +00:00
|
|
|
MACT=mact
|
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
MACT_ROOT=$(source)/$(MACT)
|
|
|
|
MACT_SRC=$(MACT_ROOT)/src
|
|
|
|
MACT_INC=$(MACT_ROOT)/include
|
2016-05-23 04:47:00 +00:00
|
|
|
MACT_OBJ=$(obj)/$(MACT)
|
2015-05-19 21:56:03 +00:00
|
|
|
|
2016-05-23 04:47:18 +00:00
|
|
|
MACT_OBJS = \
|
|
|
|
file_lib \
|
|
|
|
control \
|
|
|
|
keyboard \
|
|
|
|
joystick \
|
|
|
|
scriplib \
|
|
|
|
animlib \
|
2015-05-19 21:56:03 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2016-05-23 04:46:57 +00:00
|
|
|
AUDIOLIB=audiolib
|
|
|
|
|
2016-05-23 04:47:18 +00:00
|
|
|
AUDIOLIB_OBJS = \
|
|
|
|
drivers \
|
|
|
|
fx_man \
|
|
|
|
multivoc \
|
|
|
|
mix \
|
|
|
|
mixst \
|
|
|
|
pitch \
|
|
|
|
formats \
|
|
|
|
vorbis \
|
|
|
|
flac \
|
|
|
|
xa \
|
2016-11-08 02:59:05 +00:00
|
|
|
xmp \
|
2016-05-23 04:47:18 +00:00
|
|
|
driver_nosound \
|
2014-07-22 07:25:54 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
AUDIOLIB_ROOT=$(source)/$(AUDIOLIB)
|
2014-07-22 07:25:54 +00:00
|
|
|
AUDIOLIB_SRC=$(AUDIOLIB_ROOT)/src
|
|
|
|
AUDIOLIB_INC=$(AUDIOLIB_ROOT)/include
|
2016-05-23 04:47:00 +00:00
|
|
|
AUDIOLIB_OBJ=$(obj)/$(AUDIOLIB)
|
2014-07-22 07:25:54 +00:00
|
|
|
|
|
|
|
ifeq ($(PLATFORM),WINDOWS)
|
|
|
|
ifeq ($(MIXERTYPE),WIN)
|
|
|
|
AUDIOLIB_OBJS+= driver_directsound
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MIXERTYPE),SDL)
|
|
|
|
ifneq ($(PLATFORM),DARWIN)
|
|
|
|
ifneq ($(PLATFORM),WINDOWS)
|
|
|
|
ifneq ($(PLATFORM),WII)
|
2016-06-15 07:08:45 +00:00
|
|
|
AUDIOLIB_CFLAGS+=`$(PKG_CONFIG) --cflags vorbis`
|
2014-07-22 07:25:54 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
AUDIOLIB_OBJS+= driver_sdl
|
|
|
|
endif
|
|
|
|
|
|
|
|
AUDIOLIB_OBJS_EXP:=$(addprefix $(AUDIOLIB_OBJ)/,$(addsuffix .$o,$(AUDIOLIB_OBJS)))
|
|
|
|
|
|
|
|
|
|
|
|
# ENet
|
|
|
|
|
2016-05-23 04:46:57 +00:00
|
|
|
ENET=enet
|
|
|
|
|
2016-05-23 04:47:18 +00:00
|
|
|
ENET_OBJS = \
|
|
|
|
callbacks \
|
|
|
|
host \
|
|
|
|
list \
|
|
|
|
packet \
|
|
|
|
peer \
|
|
|
|
protocol \
|
|
|
|
compress \
|
2014-07-22 07:25:54 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
ENET_ROOT=$(source)/$(ENET)
|
2014-07-22 07:25:54 +00:00
|
|
|
ENET_SRC=$(ENET_ROOT)/src
|
|
|
|
ENET_INC=$(ENET_ROOT)/include
|
2016-05-23 04:47:00 +00:00
|
|
|
ENET_OBJ=$(obj)/$(ENET)
|
2014-07-23 07:21:29 +00:00
|
|
|
|
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
|
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
TOOLS=tools
|
|
|
|
|
|
|
|
TOOLS_OBJS = \
|
|
|
|
compat_tools \
|
|
|
|
|
|
|
|
ENGINE_TOOLS_OBJS = \
|
2016-05-23 04:47:18 +00:00
|
|
|
compat \
|
|
|
|
pragmas \
|
|
|
|
kplib \
|
|
|
|
cache1d \
|
|
|
|
crc32 \
|
|
|
|
colmatch \
|
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
TOOLS_ROOT=$(source)/$(TOOLS)
|
|
|
|
TOOLS_SRC=$(TOOLS_ROOT)/src
|
|
|
|
TOOLS_OBJ=$(obj)/$(TOOLS)
|
|
|
|
|
|
|
|
TOOLS_TARGETS= \
|
2016-05-23 04:47:18 +00:00
|
|
|
kextract \
|
|
|
|
kgroup \
|
|
|
|
transpal \
|
|
|
|
wad2art \
|
|
|
|
wad2map \
|
|
|
|
kmd2tool \
|
|
|
|
md2tool \
|
|
|
|
generateicon \
|
|
|
|
cacheinfo \
|
|
|
|
arttool \
|
|
|
|
givedepth \
|
|
|
|
mkpalette \
|
|
|
|
unpackssi \
|
|
|
|
bsuite \
|
|
|
|
ivfrate \
|
2017-02-01 10:20:54 +00:00
|
|
|
map2stl \
|
2016-05-23 04:47:18 +00:00
|
|
|
|
2017-03-23 03:03:29 +00:00
|
|
|
ifeq ($(PLATFORM),WINDOWS)
|
|
|
|
TOOLS_TARGETS+= enumdisplay getdxdidf
|
|
|
|
endif
|
|
|
|
ifeq ($(RENDERTYPE),SDL)
|
|
|
|
TOOLS_TARGETS+= makesdlkeytrans
|
|
|
|
endif
|
2014-07-22 07:25:54 +00:00
|
|
|
|
2015-09-27 21:18:09 +00:00
|
|
|
ifeq ($(PLATFORM),DARWIN)
|
2017-02-01 10:20:54 +00:00
|
|
|
TOOLS_OBJS += osxbits
|
2015-09-27 21:18:09 +00:00
|
|
|
endif
|
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
TOOLS_OBJS_EXP:=$(addprefix $(TOOLS_OBJ)/,$(addsuffix .$o,$(TOOLS_OBJS))) $(addprefix $(ENGINE_OBJ)/,$(addsuffix .$o,$(ENGINE_TOOLS_OBJS)))
|
2014-07-22 07:25:54 +00:00
|
|
|
|
|
|
|
|
2014-07-24 14:01:44 +00:00
|
|
|
# KenBuild (Test Game)
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2016-05-23 04:46:57 +00:00
|
|
|
KENBUILD=kenbuild
|
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
KENBUILD_ROOT=$(source)/$(KENBUILD)
|
2016-05-23 04:46:52 +00:00
|
|
|
KENBUILD_SRC=$(KENBUILD_ROOT)/src
|
|
|
|
KENBUILD_RSRC=$(KENBUILD_ROOT)/rsrc
|
2016-05-23 04:47:00 +00:00
|
|
|
KENBUILD_OBJ=$(obj)/$(KENBUILD)
|
2014-07-24 14:01:44 +00:00
|
|
|
|
2016-05-23 04:46:52 +00:00
|
|
|
KENBUILD_CFLAGS=-I$(KENBUILD_SRC)
|
2014-07-24 14:01:44 +00:00
|
|
|
|
2017-02-03 21:59:45 +00:00
|
|
|
KENBUILD_GAME ?= ekenbuild
|
|
|
|
KENBUILD_EDITOR ?= ekenbuild-editor
|
2014-07-24 14:01:44 +00:00
|
|
|
|
2017-02-03 21:59:45 +00:00
|
|
|
KENBUILD_GAME_PROPER ?= EKenBuild
|
|
|
|
KENBUILD_EDITOR_PROPER ?= EKenBuild Editor
|
2016-05-23 04:46:54 +00:00
|
|
|
|
2016-05-23 04:47:18 +00:00
|
|
|
KENBUILD_GAME_OBJS = \
|
|
|
|
game \
|
|
|
|
sound_stub \
|
|
|
|
common \
|
|
|
|
config \
|
|
|
|
|
|
|
|
KENBUILD_EDITOR_OBJS = \
|
|
|
|
bstub \
|
|
|
|
common \
|
2014-07-24 14:01:44 +00:00
|
|
|
|
|
|
|
ifeq ($(RENDERTYPE),SDL)
|
2016-05-23 04:46:49 +00:00
|
|
|
ifeq (1,$(HAVE_GTK2))
|
2016-05-23 04:46:52 +00:00
|
|
|
KENBUILD_GAME_OBJS+= game_banner startgtk.game
|
|
|
|
KENBUILD_EDITOR_OBJS+= build_banner
|
2016-05-23 04:46:49 +00:00
|
|
|
endif
|
2014-07-24 14:01:44 +00:00
|
|
|
|
2016-05-23 04:46:52 +00:00
|
|
|
KENBUILD_GAME_OBJS+= game_icon
|
|
|
|
KENBUILD_EDITOR_OBJS+= build_icon
|
2014-07-24 14:01:44 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(PLATFORM),WINDOWS)
|
2016-05-23 04:46:52 +00:00
|
|
|
KENBUILD_GAME_OBJS+= gameres startwin.game
|
|
|
|
KENBUILD_EDITOR_OBJS+= buildres
|
2006-04-13 20:47:06 +00:00
|
|
|
endif
|
|
|
|
|
2016-05-23 04:46:37 +00:00
|
|
|
ifeq ($(PLATFORM),DARWIN)
|
2016-11-28 04:35:27 +00:00
|
|
|
ifeq ($(STARTUP_WINDOW),1)
|
2016-05-23 04:46:52 +00:00
|
|
|
KENBUILD_GAME_OBJS += StartupWinController.game
|
2016-05-23 04:46:37 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2016-05-23 04:46:52 +00:00
|
|
|
KENBUILD_GAME_OBJS_EXP:=$(addprefix $(KENBUILD_OBJ)/,$(addsuffix .$o,$(KENBUILD_GAME_OBJS)))
|
|
|
|
KENBUILD_EDITOR_OBJS_EXP:=$(addprefix $(KENBUILD_OBJ)/,$(addsuffix .$o,$(KENBUILD_EDITOR_OBJS)))
|
2014-07-24 14:01:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Duke Nukem 3D
|
|
|
|
|
2016-05-23 04:46:57 +00:00
|
|
|
DUKE3D=duke3d
|
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
DUKE3D_CFLAGS=-I$(DUKE3D_SRC)
|
2011-09-20 19:12:24 +00:00
|
|
|
|
2016-05-23 04:46:52 +00:00
|
|
|
DUKE3D_GAME_LDFLAGS=
|
|
|
|
DUKE3D_EDITOR_LDFLAGS=
|
2012-11-24 09:13:29 +00:00
|
|
|
|
2016-05-23 04:47:03 +00:00
|
|
|
DUKE3D_GAME_STRIPFLAGS=
|
|
|
|
DUKE3D_EDITOR_STRIPFLAGS=
|
|
|
|
|
2016-05-23 04:47:00 +00:00
|
|
|
DUKE3D_OBJ=$(obj)/$(DUKE3D)
|
2009-12-05 09:22:43 +00:00
|
|
|
|
2016-05-23 04:46:52 +00:00
|
|
|
DUKE3D_GAME ?= eduke32
|
|
|
|
DUKE3D_EDITOR ?= mapster32
|
2012-10-29 04:26:25 +00:00
|
|
|
|
2016-05-23 04:46:54 +00:00
|
|
|
DUKE3D_GAME_PROPER ?= EDuke32
|
|
|
|
DUKE3D_EDITOR_PROPER ?= Mapster32
|
|
|
|
|
2016-05-23 04:47:18 +00:00
|
|
|
COMMON_EDITOR_OBJS = \
|
|
|
|
m32common \
|
|
|
|
m32def \
|
|
|
|
m32exec \
|
|
|
|
m32vars \
|
|
|
|
|
|
|
|
DUKE3D_GAME_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 \
|
|
|
|
cheats \
|
|
|
|
sbar \
|
|
|
|
screentext \
|
|
|
|
screens \
|
|
|
|
cmdline \
|
|
|
|
|
|
|
|
DUKE3D_EDITOR_OBJS = \
|
|
|
|
astub \
|
|
|
|
common \
|
|
|
|
grpscan \
|
|
|
|
sounds_mapster32 \
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2016-05-23 04:46:52 +00:00
|
|
|
DUKE3D_GAME_MISCDEPS=
|
2014-07-22 07:25:54 +00:00
|
|
|
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.
|
2016-05-23 04:47:18 +00:00
|
|
|
LUNATIC_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 = \
|
2017-02-01 10:20:54 +00:00
|
|
|
luaJIT_BC__defs_game \
|
2016-05-23 04:47:18 +00:00
|
|
|
luaJIT_BC_con_lang \
|
|
|
|
luaJIT_BC_lunacon \
|
|
|
|
luaJIT_BC_randgen \
|
|
|
|
luaJIT_BC_stat \
|
|
|
|
luaJIT_BC_control \
|
|
|
|
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
|
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
DUKE3D_EDITOR_OBJS+= lunatic_editor $(LUNATIC_OBJS)
|
2016-05-23 04:46:52 +00:00
|
|
|
DUKE3D_GAME_OBJS+= lunatic_game $(LUNATIC_OBJS)
|
2011-12-03 13:12:51 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
DUKE3D_EDITOR_OBJS+= luaJIT_BC__defs_editor
|
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/.
|
2017-02-01 10:20:54 +00:00
|
|
|
LIBDIRS+= -L$(source)
|
|
|
|
ifeq ($(realpath $(source)/liblpeg.a),)
|
2013-07-07 20:59:14 +00:00
|
|
|
# XXX: This cripples "make clean" etc. too, but IMO it's better than warning.
|
2017-02-01 10:20:54 +00:00
|
|
|
$(error "liblpeg.a not found in $(realpath $(source))")
|
2013-07-07 20:59:14 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
LIBS+= -llpeg
|
2016-05-23 04:46:52 +00:00
|
|
|
DUKE3D_GAME_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?
|
2017-02-01 10:20:54 +00:00
|
|
|
# Instead of using -alias_list and -exported_symbols_list, prevent stripping them.
|
|
|
|
DUKE3D_GAME_STRIPFLAGS+= -s $(DUKE3D_OBJ)/lunatic_dynsymlist_game_osx
|
|
|
|
DUKE3D_EDITOR_STRIPFLAGS+= -s $(DUKE3D_OBJ)/lunatic_dynsymlist_editor_osx
|
2011-12-03 13:12:51 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
DUKE3D_GAME_MISCDEPS+= $(DUKE3D_OBJ)/lunatic_dynsymlist_game_osx
|
|
|
|
DUKE3D_EDITOR_MISCDEPS+= $(DUKE3D_OBJ)/lunatic_dynsymlist_editor_osx
|
2016-05-23 04:47:03 +00:00
|
|
|
LINKERFLAGS+= -pagezero_size 10000 -image_base 100000000
|
2011-12-03 13:12:51 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(PLATFORM),WINDOWS)
|
2013-01-21 21:18:10 +00:00
|
|
|
override STRIP=
|
2017-02-01 10:20:54 +00:00
|
|
|
DUKE3D_GAME_MISCDEPS+= $(DUKE3D_OBJ)/lunatic_dynsymlist_game.def
|
|
|
|
DUKE3D_EDITOR_MISCDEPS+= $(DUKE3D_OBJ)/lunatic_dynsymlist_editor.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=
|
2017-02-01 10:20:54 +00:00
|
|
|
DUKE3D_GAME_LDFLAGS+= -Wl,--dynamic-list=$(DUKE3D_SRC)/lunatic/dynsymlist_game.lds
|
|
|
|
DUKE3D_EDITOR_LDFLAGS+= -Wl,--dynamic-list=$(DUKE3D_SRC)/lunatic/dynsymlist_editor.lds
|
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)
|
2016-11-08 02:59:05 +00:00
|
|
|
ifneq (0,$(HAVE_XMP))
|
|
|
|
LIBS += -lxmp-lite
|
|
|
|
endif
|
2015-03-02 07:54:24 +00:00
|
|
|
LIBS += -lFLAC -lvorbisfile -lvorbis -logg
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(PLATFORM),BSD)
|
2016-11-08 02:59:05 +00:00
|
|
|
ifneq (0,$(HAVE_XMP))
|
|
|
|
LIBS += -lxmp-lite
|
|
|
|
endif
|
2015-03-02 07:54:24 +00:00
|
|
|
LIBS += -lFLAC -lvorbisfile -lvorbis -logg -lexecinfo
|
2008-08-20 22:58:09 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(PLATFORM),DARWIN)
|
2016-11-08 02:59:05 +00:00
|
|
|
ifneq (0,$(HAVE_XMP))
|
|
|
|
LIBS += -lxmp-lite
|
|
|
|
endif
|
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
|
|
|
|
2016-11-28 04:35:27 +00:00
|
|
|
ifeq ($(STARTUP_WINDOW),1)
|
2016-05-23 04:46:52 +00:00
|
|
|
DUKE3D_GAME_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)
|
2016-11-08 02:59:05 +00:00
|
|
|
ifneq (0,$(HAVE_XMP))
|
|
|
|
LIBS += -lxmp-lite
|
|
|
|
endif
|
2015-09-08 02:58:03 +00:00
|
|
|
LIBS += -lFLAC -lvorbisfile -lvorbis -logg
|
2016-11-28 04:35:34 +00:00
|
|
|
DUKE3D_GAME_OBJS+= gameres winbits
|
|
|
|
DUKE3D_EDITOR_OBJS+= buildres
|
2016-11-09 22:51:33 +00:00
|
|
|
ifeq ($(STARTUP_WINDOW),1)
|
2016-11-28 04:35:34 +00:00
|
|
|
DUKE3D_GAME_OBJS+= startwin.game
|
2016-11-09 22:51:33 +00:00
|
|
|
endif
|
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)
|
2016-11-28 04:35:31 +00:00
|
|
|
ifeq (11,$(HAVE_GTK2)$(STARTUP_WINDOW))
|
2016-05-23 04:46:52 +00:00
|
|
|
DUKE3D_GAME_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
|
|
|
|
|
2016-05-23 04:46:52 +00:00
|
|
|
DUKE3D_GAME_OBJS+= game_icon
|
2015-05-27 08:46:44 +00:00
|
|
|
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
|
|
|
|
2017-03-23 03:03:32 +00:00
|
|
|
COMMON_EDITOR_OBJS_EXP:=$(addprefix $(DUKE3D_OBJ)/,$(addsuffix .$o,$(COMMON_EDITOR_OBJS))) $(ENGINE_EDITOR_OBJS_EXP)
|
2014-07-24 14:01:44 +00:00
|
|
|
|
2015-05-19 22:06:04 +00:00
|
|
|
MIDI_OBJS_EXP:=$(addprefix $(DUKE3D_OBJ)/,$(addsuffix .$o,$(MIDI_OBJS)))
|
|
|
|
|
2017-03-23 03:03:32 +00:00
|
|
|
DUKE3D_GAME_OBJS_EXP:=$(addprefix $(DUKE3D_OBJ)/,$(addsuffix .$o,$(DUKE3D_GAME_OBJS))) $(MIDI_OBJS_EXP) $(AUDIOLIB_OBJS_EXP) $(MACT_OBJS_EXP) $(ENET_TARGET)
|
|
|
|
DUKE3D_EDITOR_OBJS_EXP:=$(addprefix $(DUKE3D_OBJ)/,$(addsuffix .$o,$(DUKE3D_EDITOR_OBJS))) $(AUDIOLIB_OBJS_EXP)
|
2014-07-22 07:25:54 +00:00
|
|
|
|
2012-11-05 02:49:08 +00:00
|
|
|
|
2015-05-19 21:56:03 +00:00
|
|
|
# Shadow Warrior
|
|
|
|
|
2016-05-23 04:46:57 +00:00
|
|
|
SW=sw
|
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
SW_ROOT=$(source)/$(SW)
|
2015-05-19 21:56:03 +00:00
|
|
|
SW_SRC=$(SW_ROOT)/src
|
|
|
|
SW_RSRC=$(SW_ROOT)/rsrc
|
2016-05-23 04:47:00 +00:00
|
|
|
SW_OBJ=$(obj)/$(SW)
|
2015-05-19 21:56:03 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
SW_CFLAGS=-I$(SW_SRC)
|
2015-05-19 21:56:03 +00:00
|
|
|
|
2016-05-23 04:46:52 +00:00
|
|
|
SW_GAME ?= voidsw
|
2015-05-19 21:56:03 +00:00
|
|
|
SW_EDITOR ?= voidsw-editor
|
|
|
|
|
2016-05-23 04:46:54 +00:00
|
|
|
SW_GAME_PROPER ?= VoidSW
|
|
|
|
SW_EDITOR_PROPER ?= VoidSW Editor
|
|
|
|
|
2016-05-23 04:47:18 +00:00
|
|
|
SW_GAME_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))
|
2016-05-23 04:46:52 +00:00
|
|
|
SW_GAME_OBJS+= game_banner startgtk.game
|
2015-05-19 21:56:03 +00:00
|
|
|
SW_EDITOR_OBJS+= build_banner
|
|
|
|
endif
|
|
|
|
|
2016-05-23 04:46:52 +00:00
|
|
|
SW_GAME_OBJS+= game_icon
|
2015-05-19 21:56:03 +00:00
|
|
|
SW_EDITOR_OBJS+= game_icon
|
|
|
|
endif
|
|
|
|
ifeq ($(PLATFORM),WINDOWS)
|
2016-05-23 04:46:52 +00:00
|
|
|
SW_GAME_OBJS+= gameres startwin.game
|
2016-05-23 04:46:49 +00:00
|
|
|
SW_EDITOR_OBJS+= buildres
|
2015-05-19 21:56:03 +00:00
|
|
|
endif
|
|
|
|
|
2017-03-23 03:03:32 +00:00
|
|
|
SW_GAME_OBJS_EXP:=$(addprefix $(SW_OBJ)/,$(addsuffix .$o,$(SW_GAME_OBJS))) $(MIDI_OBJS_EXP) $(AUDIOLIB_OBJS_EXP) $(MACT_OBJS_EXP)
|
|
|
|
SW_EDITOR_OBJS_EXP:=$(addprefix $(SW_OBJ)/,$(addsuffix .$o,$(SW_EDITOR_OBJS))) $(AUDIOLIB_OBJS_EXP)
|
|
|
|
|
|
|
|
|
|
|
|
### component definitions end
|
|
|
|
### targets begin
|
|
|
|
|
|
|
|
GAMES := \
|
|
|
|
KENBUILD \
|
|
|
|
DUKE3D \
|
|
|
|
SW \
|
|
|
|
|
|
|
|
LIBRARIES := \
|
|
|
|
ENGINE \
|
|
|
|
AUDIOLIB \
|
|
|
|
MACT \
|
|
|
|
ENET \
|
|
|
|
|
|
|
|
COMPONENTS = \
|
|
|
|
$(GAMES) \
|
|
|
|
$(LIBRARIES) \
|
|
|
|
TOOLS \
|
|
|
|
|
|
|
|
ROLES = \
|
|
|
|
GAME \
|
|
|
|
EDITOR \
|
2015-05-19 21:56:03 +00:00
|
|
|
|
|
|
|
|
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
|
2017-03-23 03:03:29 +00:00
|
|
|
.PHONY: all duke3d test kenbuild sw veryclean clean cleanduke3d cleantest cleansw cleanutils utils printutils cleantools tools printtools rev $(ENGINE_OBJ)/rev.$o
|
2017-01-23 11:24:21 +00:00
|
|
|
.SUFFIXES:
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
# TARGETS
|
|
|
|
|
2015-05-19 21:56:03 +00:00
|
|
|
all: duke3d
|
|
|
|
|
2016-05-23 04:46:52 +00:00
|
|
|
duke3d: start $(DUKE3D_GAME)$(EXESUFFIX) $(DUKE3D_EDITOR)$(EXESUFFIX)
|
|
|
|
@ls -l $(DUKE3D_GAME)$(EXESUFFIX)
|
|
|
|
@ls -l $(DUKE3D_EDITOR)$(EXESUFFIX)
|
2012-11-26 08:24:54 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
kenbuild: start $(KENBUILD_GAME)$(EXESUFFIX) $(KENBUILD_EDITOR)$(EXESUFFIX)
|
2016-05-23 04:46:52 +00:00
|
|
|
@ls -l $(KENBUILD_GAME)$(EXESUFFIX)
|
|
|
|
@ls -l $(KENBUILD_EDITOR)$(EXESUFFIX)
|
2014-07-24 14:01:44 +00:00
|
|
|
|
2016-05-23 04:46:52 +00:00
|
|
|
sw: start $(SW_GAME)$(EXESUFFIX) $(SW_EDITOR)$(EXESUFFIX)
|
|
|
|
@ls -l $(SW_GAME)$(EXESUFFIX)
|
2015-05-19 21:56:03 +00:00
|
|
|
@ls -l $(SW_EDITOR)$(EXESUFFIX)
|
|
|
|
|
2016-05-23 04:46:43 +00:00
|
|
|
ebacktrace: start $(EBACKTRACEDLL)
|
2012-11-15 06:42:37 +00:00
|
|
|
@ls -l $(EBACKTRACEDLL)
|
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
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
tools: $(addsuffix $(EXESUFFIX),$(TOOLS_TARGETS))
|
2014-07-22 07:25:54 +00:00
|
|
|
@ls -l $^
|
|
|
|
|
2014-12-18 18:15:05 +00:00
|
|
|
|
2014-07-24 14:01:44 +00:00
|
|
|
|
2014-12-18 18:15:05 +00:00
|
|
|
ifeq ($(PLATFORM),WII)
|
|
|
|
ifneq ($(ELF2DOL),)
|
2017-03-23 03:03:32 +00:00
|
|
|
%$(DOLSUFFIX): %$(EXESUFFIX)
|
2014-12-18 18:15:05 +00:00
|
|
|
endif
|
|
|
|
endif
|
2014-07-24 14:01:44 +00:00
|
|
|
|
2017-03-23 03:03:32 +00:00
|
|
|
define BUILDRULE
|
2010-01-24 23:33:17 +00:00
|
|
|
|
2017-03-23 03:03:32 +00:00
|
|
|
$$($1_$2)$$(EXESUFFIX): $$($1_$2_OBJS_EXP) $$(COMMON_$2_OBJS_EXP) $$(ENGINE_OBJS_EXP) $$($1_$2_MISCDEPS)
|
|
|
|
$$(LINK_STATUS)
|
|
|
|
$$(RECIPE_IF) $$(LINKER) -o $$@ $$^ $$(GUI_LIBS) $$($1_$2_LDFLAGS) $$(LIBDIRS) $$(LIBS) $$(RECIPE_RESULT_LINK)
|
|
|
|
ifeq ($$(PLATFORM),WII)
|
|
|
|
ifneq ($$(ELF2DOL),)
|
|
|
|
$$(ELF2DOL) $$@ $$($1_$2)$$(DOLSUFFIX)
|
2014-12-18 18:15:05 +00:00
|
|
|
endif
|
|
|
|
endif
|
2017-03-23 03:03:32 +00:00
|
|
|
ifneq ($$(STRIP),)
|
|
|
|
$$(STRIP) $$@ $$($1_$2_STRIPFLAGS)
|
2010-08-12 21:06:51 +00:00
|
|
|
endif
|
2017-03-23 03:03:32 +00:00
|
|
|
ifeq ($$(PLATFORM),DARWIN)
|
|
|
|
cp -RPf "platform/Apple/bundles/$$($1_$2_PROPER).app" "./"
|
|
|
|
mkdir -p "$$($1_$2_PROPER).app/Contents/MacOS"
|
|
|
|
cp -f "$$($1_$2)$$(EXESUFFIX)" "$$($1_$2_PROPER).app/Contents/MacOS/"
|
2012-02-25 02:59:51 +00:00
|
|
|
endif
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2017-03-23 03:03:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach i,$(GAMES),$(foreach j,$(ROLES),$(eval $(call BUILDRULE,$i,$j))))
|
2015-05-19 21:56:03 +00:00
|
|
|
|
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
include $(ENGINE_ROOT)/Dependencies.mak
|
|
|
|
include $(DUKE3D_ROOT)/Dependencies.mak
|
|
|
|
include $(SW_ROOT)/Dependencies.mak
|
2009-12-05 09:22:43 +00:00
|
|
|
|
2017-03-23 03:03:32 +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
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
libcache1d$(DLLSUFFIX): $(ENGINE_SRC)/cache1d.cpp
|
2008-10-18 13:25:23 +00:00
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_C) -DCACHE1D_COMPRESS_ONLY -shared -fPIC $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2008-10-18 12:37:26 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
%$(EXESUFFIX): $(TOOLS_OBJ)/%.$o $(TOOLS_OBJS_EXP)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(LINK_STATUS)
|
|
|
|
$(RECIPE_IF) $(LINKER) -o $@ $^ $(LIBDIRS) $(LIBS) $(RECIPE_RESULT_LINK)
|
2013-12-06 18:56:46 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
enumdisplay$(EXESUFFIX): $(TOOLS_OBJ)/enumdisplay.$o
|
2017-03-22 15:45:49 +00:00
|
|
|
$(LINK_STATUS)
|
|
|
|
$(RECIPE_IF) $(LINKER) -o $@ $^ $(LIBDIRS) $(LIBS) -lgdi32 $(RECIPE_RESULT_LINK)
|
2017-02-01 10:20:54 +00:00
|
|
|
getdxdidf$(EXESUFFIX): $(TOOLS_OBJ)/getdxdidf.$o
|
2017-03-22 15:45:49 +00:00
|
|
|
$(LINK_STATUS)
|
|
|
|
$(RECIPE_IF) $(LINKER) -o $@ $^ $(LIBDIRS) $(LIBS) -ldinput $(RECIPE_RESULT_LINK)
|
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
|
2017-02-01 10:20:54 +00:00
|
|
|
$(DUKE3D_OBJ)/luaJIT_BC_%.$o: $(DUKE3D_SRC)/lunatic/%.lua | $(DUKE3D_OBJ)
|
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
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
$(DUKE3D_OBJ)/%.$o: $(DUKE3D_SRC)/lunatic/%.cpp | $(DUKE3D_OBJ)
|
2011-09-20 19:12:24 +00:00
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_CXX) $(DUKE3D_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2011-09-20 19:12:24 +00:00
|
|
|
|
2012-10-07 15:25:58 +00:00
|
|
|
# List of exported symbols, OS X
|
2017-02-01 10:20:54 +00:00
|
|
|
$(DUKE3D_OBJ)/lunatic_%_osx: $(DUKE3D_SRC)/lunatic/%.lds | $(DUKE3D_OBJ)
|
2011-10-11 16:53:15 +00:00
|
|
|
sed 's/[{};]//g;s/[A-Za-z_][A-Za-z_0-9]*/_&/g' $< > $@
|
|
|
|
|
2012-10-07 15:25:58 +00:00
|
|
|
# List of exported symbols, Windows
|
2017-02-01 10:20:54 +00:00
|
|
|
$(DUKE3D_OBJ)/lunatic_%.def: $(DUKE3D_SRC)/lunatic/%.lds | $(DUKE3D_OBJ)
|
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
|
2017-02-01 10:20:54 +00:00
|
|
|
$(ENGINE_OBJ)/a-c.$o: $(ENGINE_SRC)/a-c.cpp | $(ENGINE_OBJ)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(subst -O$(OPTLEVEL),-O2,$(subst $(CLANG_DEBUG_FLAGS),,$(COMPILER_CXX))) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2014-07-22 07:25:54 +00:00
|
|
|
|
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)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_C) $(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)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_CXX) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2008-10-18 12:37:26 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
$(ENGINE_OBJ)/rev.$o: $(ENGINE_SRC)/rev.cpp | $(ENGINE_OBJ)
|
2012-03-12 04:48:42 +00:00
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_CXX) $(ENGINE_CFLAGS) $(REVFLAG) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2012-03-12 04:48:42 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
$(ENGINE_OBJ)/%.$o: $(ENGINE_SRC)/%.mm | $(ENGINE_OBJ)
|
2008-10-18 13:25:23 +00:00
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_OBJCXX) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2006-07-14 07:28:32 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
$(ENGINE_OBJ)/%.$o: $(ENGINE_SRC)/%.cpp | $(ENGINE_OBJ)
|
2011-01-16 03:43:48 +00:00
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_CXX) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2011-02-12 13:25:24 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
$(TOOLS_OBJ)/%.$o: $(TOOLS_SRC)/%.cpp | $(TOOLS_OBJ)
|
2011-01-16 03:43:48 +00:00
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_CXX) $(ENGINE_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2011-01-16 03:43:48 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
$(MACT_OBJ)/%.$o: $(MACT_SRC)/%.cpp | $(MACT_OBJ)
|
2015-05-19 21:56:03 +00:00
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_CXX) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2015-05-19 21:56:03 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
$(AUDIOLIB_OBJ)/%.o: $(AUDIOLIB_SRC)/%.cpp | $(AUDIOLIB_OBJ)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_CXX) $(AUDIOLIB_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2014-07-22 07:25:54 +00:00
|
|
|
|
|
|
|
$(ENET_OBJ)/%.o: $(ENET_SRC)/%.c $(ENET_INC)/enet/*.h | $(ENET_OBJ)
|
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_C) $(ENET_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2014-07-22 07:25:54 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
$(KENBUILD_OBJ)/%.$o: $(KENBUILD_SRC)/%.cpp | $(KENBUILD_OBJ)
|
2014-07-24 14:01:44 +00:00
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_CXX) $(KENBUILD_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2014-07-24 14:01:44 +00:00
|
|
|
|
2016-06-03 04:50:57 +00:00
|
|
|
$(KENBUILD_OBJ)/%.$o: $(KENBUILD_OBJ)/%.c
|
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_C) $(KENBUILD_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2016-06-03 04:50:57 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
$(KENBUILD_OBJ)/%.$o: $(KENBUILD_SRC)/%.mm | $(KENBUILD_OBJ)
|
2015-05-19 21:56:03 +00:00
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_OBJCXX) $(KENBUILD_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2015-05-19 21:56:03 +00:00
|
|
|
|
2016-05-23 04:46:52 +00:00
|
|
|
$(KENBUILD_OBJ)/%.$o: $(KENBUILD_RSRC)/%.rc | $(KENBUILD_OBJ)
|
2014-07-24 14:01:44 +00:00
|
|
|
$(COMPILE_STATUS)
|
2016-05-23 04:46:52 +00:00
|
|
|
$(RECIPE_IF) $(RC) -i $< -o $@ --include-dir=$(ENGINE_INC) --include-dir=$(KENBUILD_SRC) --include-dir=$(KENBUILD_RSRC) $(RECIPE_RESULT_COMPILE)
|
2014-07-24 14:01:44 +00:00
|
|
|
|
2016-05-23 04:46:52 +00:00
|
|
|
$(KENBUILD_OBJ)/%.$o: $(KENBUILD_RSRC)/%.c | $(KENBUILD_OBJ)
|
2014-07-24 14:01:44 +00:00
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_C) $(KENBUILD_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2014-07-24 14:01:44 +00:00
|
|
|
|
2016-06-03 04:50:57 +00:00
|
|
|
$(KENBUILD_OBJ)/%_banner.c: $(KENBUILD_RSRC)/%.bmp | $(KENBUILD_OBJ)
|
2015-05-19 21:56:03 +00:00
|
|
|
echo "#include \"gtkpixdata_shim.h\"" > $@
|
|
|
|
gdk-pixbuf-csource --extern --struct --raw --name=startbanner_pixdata $^ | sed 's/load_inc//' >> $@
|
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
$(DUKE3D_OBJ)/%.$o: $(DUKE3D_SRC)/%.cpp | $(DUKE3D_OBJ)
|
2014-07-24 14:01:44 +00:00
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_CXX) $(DUKE3D_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2014-07-24 14:01:44 +00:00
|
|
|
|
2016-06-03 04:50:57 +00:00
|
|
|
$(DUKE3D_OBJ)/%.$o: $(DUKE3D_OBJ)/%.c
|
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_C) $(DUKE3D_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2014-07-22 07:25:54 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
$(DUKE3D_OBJ)/%.$o: $(DUKE3D_SRC)/%.mm | $(DUKE3D_OBJ)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_OBJCXX) $(DUKE3D_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2014-07-22 07:25:54 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
$(DUKE3D_OBJ)/%.$o: $(DUKE3D_RSRC)/%.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)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_C) $(DUKE3D_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2014-07-22 07:25:54 +00:00
|
|
|
|
2016-06-03 04:50:57 +00:00
|
|
|
$(DUKE3D_OBJ)/%_banner.c: $(DUKE3D_RSRC)/%.bmp | $(DUKE3D_OBJ)
|
2014-11-28 23:47:46 +00:00
|
|
|
echo "#include \"gtkpixdata_shim.h\"" > $@
|
2015-08-18 07:08:50 +00:00
|
|
|
gdk-pixbuf-csource --extern --struct --raw --name=startbanner_pixdata $^ | sed 's/load_inc//' >> $@
|
2014-11-28 23:47:46 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
$(SW_OBJ)/%.$o: $(SW_SRC)/%.cpp | $(SW_OBJ)
|
2015-05-19 21:56:03 +00:00
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_CXX) $(SW_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2015-05-19 21:56:03 +00:00
|
|
|
|
2016-06-03 04:50:57 +00:00
|
|
|
$(SW_OBJ)/%.$o: $(SW_OBJ)/%.c
|
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_C) $(SW_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2016-06-03 04:50:57 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
$(SW_OBJ)/%.$o: $(SW_SRC)/%.mm | $(SW_OBJ)
|
2015-05-19 21:56:03 +00:00
|
|
|
$(COMPILE_STATUS)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_OBJCXX) $(SW_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2015-05-19 21:56:03 +00:00
|
|
|
|
|
|
|
$(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)
|
2017-03-22 15:45:49 +00:00
|
|
|
$(RECIPE_IF) $(COMPILER_C) $(SW_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
2015-05-19 21:56:03 +00:00
|
|
|
|
2016-06-03 04:50:57 +00:00
|
|
|
$(SW_OBJ)/%_banner.c: $(SW_RSRC)/%.bmp | $(SW_OBJ)
|
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//' >> $@
|
|
|
|
|
2016-05-23 04:47:00 +00:00
|
|
|
$(obj):
|
|
|
|
-mkdir $@ $(DONT_PRINT) $(DONT_FAIL)
|
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
$(ENGINE_OBJ) $(TOOLS_OBJ) $(KENBUILD_OBJ) $(AUDIOLIB_OBJ) $(MACT_OBJ) $(DUKE3D_OBJ) $(SW_OBJ) $(ENET_OBJ): | $(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
|
|
|
cleanduke3d:
|
2016-05-23 04:47:03 +00:00
|
|
|
-rm -f $(DUKE3D_GAME)$(EXESUFFIX) $(DUKE3D_EDITOR)$(EXESUFFIX)
|
2012-02-26 17:32:53 +00:00
|
|
|
ifeq ($(PLATFORM),DARWIN)
|
2016-05-23 04:46:54 +00:00
|
|
|
-rm -rf "$(DUKE3D_GAME_PROPER).app" "$(DUKE3D_EDITOR_PROPER).app"
|
2012-02-26 17:32:53 +00:00
|
|
|
endif
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2014-07-24 14:01:44 +00:00
|
|
|
cleantest:
|
2016-05-23 04:47:00 +00:00
|
|
|
-rm -f $(KENBUILD_GAME)$(EXESUFFIX) $(KENBUILD_EDITOR)$(EXESUFFIX)
|
2015-05-19 21:56:03 +00:00
|
|
|
|
|
|
|
cleansw:
|
2016-05-23 04:47:00 +00:00
|
|
|
-rm -f $(SW_GAME)$(EXESUFFIX) $(SW_EDITOR)$(EXESUFFIX)
|
2014-07-24 14:01:44 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
cleantools:
|
2017-03-23 03:03:29 +00:00
|
|
|
-rm -f $(addsuffix $(EXESUFFIX),$(TOOLS_TARGETS))
|
2012-11-15 06:42:37 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
clean: cleanduke3d cleantools
|
2016-05-23 04:47:00 +00:00
|
|
|
-rm -rf $(obj)/
|
|
|
|
-rm -f $(EBACKTRACEDLL)
|
2012-11-15 06:42:37 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
printtools:
|
|
|
|
echo "$(addsuffix $(EXESUFFIX),$(TOOLS_TARGETS))"
|
|
|
|
|
|
|
|
rev: $(ENGINE_OBJ)/rev.$o
|
2014-02-22 08:02:41 +00:00
|
|
|
|
2017-02-01 10:20:54 +00:00
|
|
|
|
|
|
|
# Compatibility
|
|
|
|
|
|
|
|
test: kenbuild
|
|
|
|
utils: tools
|
|
|
|
printutils: printtools
|
|
|
|
veryclean: clean
|
|
|
|
cleanutils: cleantools
|