mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
Makefile: Move duke3d and engine directory definitions to their proper spots, as they no longer need early definition after the great repository rearrangement.
git-svn-id: https://svn.eduke32.com/eduke32@6150 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
3627c7710e
commit
3306b8d5a3
1 changed files with 19 additions and 17 deletions
36
GNUmakefile
36
GNUmakefile
|
@ -4,18 +4,14 @@
|
||||||
|
|
||||||
include Common.mak
|
include Common.mak
|
||||||
|
|
||||||
source=source
|
### File Extensions
|
||||||
DUKE3D=duke3d
|
|
||||||
DUKE3D_ROOT=$(source)/$(DUKE3D)
|
|
||||||
DUKE3D_SRC=$(DUKE3D_ROOT)/src
|
|
||||||
DUKE3D_RSRC=$(DUKE3D_ROOT)/rsrc
|
|
||||||
ENGINE_ROOT=$(source)/$(ENGINE)
|
|
||||||
ENGINE_SRC=$(ENGINE_ROOT)/src
|
|
||||||
ENGINE_INC=$(ENGINE_ROOT)/include
|
|
||||||
o=o
|
o=o
|
||||||
asm=nasm
|
|
||||||
|
### Directories
|
||||||
|
source=source
|
||||||
obj=obj
|
obj=obj
|
||||||
|
|
||||||
|
### Functions
|
||||||
define expandobjs
|
define expandobjs
|
||||||
$$(addprefix $1,$$(addsuffix .$$o,$$(basename $2)))
|
$$(addprefix $1,$$(addsuffix .$$o,$$(basename $2)))
|
||||||
endef
|
endef
|
||||||
|
@ -41,6 +37,9 @@ ENGINE=build
|
||||||
|
|
||||||
ENGINE_CFLAGS=-I$(ENGINE_SRC)
|
ENGINE_CFLAGS=-I$(ENGINE_SRC)
|
||||||
|
|
||||||
|
ENGINE_ROOT=$(source)/$(ENGINE)
|
||||||
|
ENGINE_SRC=$(ENGINE_ROOT)/src
|
||||||
|
ENGINE_INC=$(ENGINE_ROOT)/include
|
||||||
ENGINE_OBJ=$(obj)/$(ENGINE)
|
ENGINE_OBJ=$(obj)/$(ENGINE)
|
||||||
|
|
||||||
ENGINE_OBJS = \
|
ENGINE_OBJS = \
|
||||||
|
@ -81,6 +80,14 @@ ENGINE_EDITOR_OBJS = \
|
||||||
config.cpp \
|
config.cpp \
|
||||||
defs.cpp \
|
defs.cpp \
|
||||||
|
|
||||||
|
ENGINE_TOOLS_OBJS = \
|
||||||
|
compat.cpp \
|
||||||
|
pragmas.cpp \
|
||||||
|
kplib.cpp \
|
||||||
|
cache1d.cpp \
|
||||||
|
crc32.cpp \
|
||||||
|
colmatch.cpp \
|
||||||
|
|
||||||
ifeq (0,$(NOASM))
|
ifeq (0,$(NOASM))
|
||||||
ENGINE_OBJS+= a.nasm
|
ENGINE_OBJS+= a.nasm
|
||||||
else
|
else
|
||||||
|
@ -247,14 +254,6 @@ TOOLS=tools
|
||||||
TOOLS_OBJS = \
|
TOOLS_OBJS = \
|
||||||
compat_tools.cpp \
|
compat_tools.cpp \
|
||||||
|
|
||||||
ENGINE_TOOLS_OBJS = \
|
|
||||||
compat.cpp \
|
|
||||||
pragmas.cpp \
|
|
||||||
kplib.cpp \
|
|
||||||
cache1d.cpp \
|
|
||||||
crc32.cpp \
|
|
||||||
colmatch.cpp \
|
|
||||||
|
|
||||||
TOOLS_ROOT=$(source)/$(TOOLS)
|
TOOLS_ROOT=$(source)/$(TOOLS)
|
||||||
TOOLS_SRC=$(TOOLS_ROOT)/src
|
TOOLS_SRC=$(TOOLS_ROOT)/src
|
||||||
TOOLS_OBJ=$(obj)/$(TOOLS)
|
TOOLS_OBJ=$(obj)/$(TOOLS)
|
||||||
|
@ -370,6 +369,9 @@ DUKE3D_EDITOR_LDFLAGS=
|
||||||
DUKE3D_GAME_STRIPFLAGS=
|
DUKE3D_GAME_STRIPFLAGS=
|
||||||
DUKE3D_EDITOR_STRIPFLAGS=
|
DUKE3D_EDITOR_STRIPFLAGS=
|
||||||
|
|
||||||
|
DUKE3D_ROOT=$(source)/$(DUKE3D)
|
||||||
|
DUKE3D_SRC=$(DUKE3D_ROOT)/src
|
||||||
|
DUKE3D_RSRC=$(DUKE3D_ROOT)/rsrc
|
||||||
DUKE3D_OBJ=$(obj)/$(DUKE3D)
|
DUKE3D_OBJ=$(obj)/$(DUKE3D)
|
||||||
|
|
||||||
DUKE3D_GAME ?= eduke32
|
DUKE3D_GAME ?= eduke32
|
||||||
|
|
Loading…
Reference in a new issue