mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
Makefile: Update heading comments.
git-svn-id: https://svn.eduke32.com/eduke32@6149 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
91c8ca11bd
commit
3627c7710e
1 changed files with 22 additions and 22 deletions
44
GNUmakefile
44
GNUmakefile
|
@ -23,7 +23,9 @@ endef
|
||||||
COMPILERFLAGS += -I$(ENGINE_INC) -I$(MACT_INC) -I$(AUDIOLIB_INC) -I$(ENET_INC)
|
COMPILERFLAGS += -I$(ENGINE_INC) -I$(MACT_INC) -I$(AUDIOLIB_INC) -I$(ENET_INC)
|
||||||
|
|
||||||
|
|
||||||
# EBacktrace
|
##### Component Definitions
|
||||||
|
|
||||||
|
#### EBacktrace
|
||||||
|
|
||||||
ifndef EBACKTRACEDLL
|
ifndef EBACKTRACEDLL
|
||||||
EBACKTRACEDLL = ebacktrace1.dll
|
EBACKTRACEDLL = ebacktrace1.dll
|
||||||
|
@ -33,7 +35,7 @@ ifndef EBACKTRACEDLL
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
# BUILD Engine
|
#### BUILD Engine
|
||||||
|
|
||||||
ENGINE=build
|
ENGINE=build
|
||||||
|
|
||||||
|
@ -141,7 +143,7 @@ ENGINE_OBJS_EXP:=$(call expandobjs,$(ENGINE_OBJ)/,$(ENGINE_OBJS))
|
||||||
ENGINE_EDITOR_OBJS_EXP:=$(call expandobjs,$(ENGINE_OBJ)/,$(ENGINE_EDITOR_OBJS))
|
ENGINE_EDITOR_OBJS_EXP:=$(call expandobjs,$(ENGINE_OBJ)/,$(ENGINE_EDITOR_OBJS))
|
||||||
|
|
||||||
|
|
||||||
# MACT
|
#### MACT
|
||||||
|
|
||||||
MACT=mact
|
MACT=mact
|
||||||
|
|
||||||
|
@ -162,7 +164,7 @@ MACT_SRCS:=$(addprefix $(MACT_SRC)/,$(MACT_OBJS))
|
||||||
MACT_OBJS_EXP:=$(call expandobjs,$(MACT_OBJ)/,$(MACT_OBJS))
|
MACT_OBJS_EXP:=$(call expandobjs,$(MACT_OBJ)/,$(MACT_OBJS))
|
||||||
|
|
||||||
|
|
||||||
# AudioLib
|
#### AudioLib
|
||||||
|
|
||||||
AUDIOLIB=audiolib
|
AUDIOLIB=audiolib
|
||||||
|
|
||||||
|
@ -202,7 +204,7 @@ AUDIOLIB_SRCS:=$(addprefix $(AUDIOLIB_SRC)/,$(AUDIOLIB_OBJS))
|
||||||
AUDIOLIB_OBJS_EXP:=$(call expandobjs,$(AUDIOLIB_OBJ)/,$(AUDIOLIB_OBJS))
|
AUDIOLIB_OBJS_EXP:=$(call expandobjs,$(AUDIOLIB_OBJ)/,$(AUDIOLIB_OBJS))
|
||||||
|
|
||||||
|
|
||||||
# ENet
|
#### ENet
|
||||||
|
|
||||||
ENET=enet
|
ENET=enet
|
||||||
|
|
||||||
|
@ -238,7 +240,7 @@ ifeq ($(NETCODE),0)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
# Tools
|
#### Tools
|
||||||
|
|
||||||
TOOLS=tools
|
TOOLS=tools
|
||||||
|
|
||||||
|
@ -292,7 +294,7 @@ TOOLS_SRCS:=$(addprefix $(TOOLS_SRC)/,$(TOOLS_OBJS)) $(addprefix $(ENGINE_SRC)/,
|
||||||
TOOLS_OBJS_EXP:=$(call expandobjs,$(TOOLS_OBJ)/,$(TOOLS_OBJS)) $(call expandobjs,$(ENGINE_OBJ)/,$(ENGINE_TOOLS_OBJS))
|
TOOLS_OBJS_EXP:=$(call expandobjs,$(TOOLS_OBJ)/,$(TOOLS_OBJS)) $(call expandobjs,$(ENGINE_OBJ)/,$(ENGINE_TOOLS_OBJS))
|
||||||
|
|
||||||
|
|
||||||
# KenBuild (Test Game)
|
#### KenBuild (Test Game)
|
||||||
|
|
||||||
KENBUILD=kenbuild
|
KENBUILD=kenbuild
|
||||||
kenbuild=KENBUILD
|
kenbuild=KENBUILD
|
||||||
|
@ -355,7 +357,7 @@ KENBUILD_GAME_OBJS_TARGET=$(KENBUILD_GAME_OBJS_EXP)
|
||||||
KENBUILD_EDITOR_OBJS_TARGET=$(KENBUILD_EDITOR_OBJS_EXP)
|
KENBUILD_EDITOR_OBJS_TARGET=$(KENBUILD_EDITOR_OBJS_EXP)
|
||||||
|
|
||||||
|
|
||||||
# Duke Nukem 3D
|
#### Duke Nukem 3D
|
||||||
|
|
||||||
DUKE3D=duke3d
|
DUKE3D=duke3d
|
||||||
duke3d=DUKE3D
|
duke3d=DUKE3D
|
||||||
|
@ -587,8 +589,6 @@ ifeq ($(MIXERTYPE),SDL)
|
||||||
MIDI_OBJS=sdlmusic.cpp
|
MIDI_OBJS=sdlmusic.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
## Construct file names of object files
|
|
||||||
|
|
||||||
COMMON_EDITOR_SRCS:=$(addprefix $(DUKE3D_SRC)/,$(COMMON_EDITOR_OBJS))
|
COMMON_EDITOR_SRCS:=$(addprefix $(DUKE3D_SRC)/,$(COMMON_EDITOR_OBJS))
|
||||||
COMMON_EDITOR_OBJS_EXP:=$(call expandobjs,$(DUKE3D_OBJ)/,$(COMMON_EDITOR_OBJS))
|
COMMON_EDITOR_OBJS_EXP:=$(call expandobjs,$(DUKE3D_OBJ)/,$(COMMON_EDITOR_OBJS))
|
||||||
|
|
||||||
|
@ -615,7 +615,8 @@ DUKE3D_EDITOR_SRCS_TARGET=$(DUKE3D_EDITOR_SRCS) $(AUDIOLIB_SRCS)
|
||||||
DUKE3D_GAME_OBJS_TARGET=$(DUKE3D_GAME_OBJS_EXP) $(MIDI_OBJS_EXP) $(AUDIOLIB_OBJS_EXP) $(MACT_OBJS_EXP) $(ENET_OBJS_EXP)
|
DUKE3D_GAME_OBJS_TARGET=$(DUKE3D_GAME_OBJS_EXP) $(MIDI_OBJS_EXP) $(AUDIOLIB_OBJS_EXP) $(MACT_OBJS_EXP) $(ENET_OBJS_EXP)
|
||||||
DUKE3D_EDITOR_OBJS_TARGET=$(DUKE3D_EDITOR_OBJS_EXP) $(AUDIOLIB_OBJS_EXP)
|
DUKE3D_EDITOR_OBJS_TARGET=$(DUKE3D_EDITOR_OBJS_EXP) $(AUDIOLIB_OBJS_EXP)
|
||||||
|
|
||||||
# Shadow Warrior
|
|
||||||
|
#### Shadow Warrior
|
||||||
|
|
||||||
SW=sw
|
SW=sw
|
||||||
sw=SW
|
sw=SW
|
||||||
|
@ -744,8 +745,7 @@ SW_GAME_OBJS_TARGET=$(SW_GAME_OBJS_EXP) $(MIDI_OBJS_EXP) $(AUDIOLIB_OBJS_EXP) $(
|
||||||
SW_EDITOR_OBJS_TARGET=$(SW_EDITOR_OBJS_EXP) $(AUDIOLIB_OBJS_EXP)
|
SW_EDITOR_OBJS_TARGET=$(SW_EDITOR_OBJS_EXP) $(AUDIOLIB_OBJS_EXP)
|
||||||
|
|
||||||
|
|
||||||
### component definitions end
|
##### Recipes
|
||||||
### targets begin
|
|
||||||
|
|
||||||
GAMES := \
|
GAMES := \
|
||||||
KENBUILD \
|
KENBUILD \
|
||||||
|
@ -787,7 +787,7 @@ endif
|
||||||
.SECONDEXPANSION:
|
.SECONDEXPANSION:
|
||||||
|
|
||||||
|
|
||||||
# TARGETS
|
#### Targets
|
||||||
|
|
||||||
all: duke3d
|
all: duke3d
|
||||||
|
|
||||||
|
@ -838,7 +838,7 @@ include $(DUKE3D_ROOT)/Dependencies.mak
|
||||||
include $(SW_ROOT)/Dependencies.mak
|
include $(SW_ROOT)/Dependencies.mak
|
||||||
|
|
||||||
|
|
||||||
# RULES
|
#### Rules
|
||||||
|
|
||||||
$(EBACKTRACEDLL): platform/Windows/src/backtrace.c
|
$(EBACKTRACEDLL): platform/Windows/src/backtrace.c
|
||||||
$(COMPILE_STATUS)
|
$(COMPILE_STATUS)
|
||||||
|
@ -860,7 +860,7 @@ getdxdidf$(EXESUFFIX): $(TOOLS_OBJ)/getdxdidf.$o
|
||||||
$(RECIPE_IF) $(LINKER) -o $@ $^ $(LIBDIRS) $(LIBS) -ldinput $(RECIPE_RESULT_LINK)
|
$(RECIPE_IF) $(LINKER) -o $@ $^ $(LIBDIRS) $(LIBS) -ldinput $(RECIPE_RESULT_LINK)
|
||||||
|
|
||||||
|
|
||||||
#### Lunatic
|
### Lunatic
|
||||||
|
|
||||||
# Create object files directly with luajit
|
# Create object files directly with luajit
|
||||||
$(DUKE3D_OBJ)/$(LUNATIC_LUA_PREFIX)%.$o: $(LUNATIC_SRC)/%.lua | $(DUKE3D_OBJ)
|
$(DUKE3D_OBJ)/$(LUNATIC_LUA_PREFIX)%.$o: $(LUNATIC_SRC)/%.lua | $(DUKE3D_OBJ)
|
||||||
|
@ -881,7 +881,7 @@ $(DUKE3D_OBJ)/lunatic_%.def: $(LUNATIC_SRC)/%.lds | $(DUKE3D_OBJ)
|
||||||
sed 's/[{};]//g' $< >> $@
|
sed 's/[{};]//g' $< >> $@
|
||||||
|
|
||||||
|
|
||||||
#### Main Rules
|
### Main Rules
|
||||||
|
|
||||||
define OBJECTRULES
|
define OBJECTRULES
|
||||||
|
|
||||||
|
@ -909,7 +909,7 @@ $$($1_OBJ)/%.$$o: $$($1_SRC)/%.mm | $$($1_OBJ)
|
||||||
$$(COMPILE_STATUS)
|
$$(COMPILE_STATUS)
|
||||||
$$(RECIPE_IF) $$(COMPILER_OBJCXX) $$($1_CFLAGS) -c $$< -o $$@ $$(RECIPE_RESULT_COMPILE)
|
$$(RECIPE_IF) $$(COMPILER_OBJCXX) $$($1_CFLAGS) -c $$< -o $$@ $$(RECIPE_RESULT_COMPILE)
|
||||||
|
|
||||||
# cosmetic stuff
|
## Cosmetic stuff
|
||||||
|
|
||||||
$$($1_OBJ)/%.$$o: $$($1_RSRC)/%.rc | $$($1_OBJ)
|
$$($1_OBJ)/%.$$o: $$($1_RSRC)/%.rc | $$($1_OBJ)
|
||||||
$$(COMPILE_STATUS)
|
$$(COMPILE_STATUS)
|
||||||
|
@ -932,7 +932,7 @@ endef
|
||||||
$(foreach i,$(COMPONENTS),$(eval $(call OBJECTRULES,$i)))
|
$(foreach i,$(COMPONENTS),$(eval $(call OBJECTRULES,$i)))
|
||||||
|
|
||||||
|
|
||||||
#### Other special cases
|
### Other special cases
|
||||||
|
|
||||||
# Comment out the following rule to debug a-c.o
|
# Comment out the following rule to debug a-c.o
|
||||||
$(ENGINE_OBJ)/a-c.$o: $(ENGINE_SRC)/a-c.cpp | $(ENGINE_OBJ)
|
$(ENGINE_OBJ)/a-c.$o: $(ENGINE_SRC)/a-c.cpp | $(ENGINE_OBJ)
|
||||||
|
@ -944,7 +944,7 @@ $(ENGINE_OBJ)/rev.$o: $(ENGINE_SRC)/rev.cpp | $(ENGINE_OBJ)
|
||||||
$(RECIPE_IF) $(COMPILER_CXX) $(ENGINE_CFLAGS) $(REVFLAG) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
$(RECIPE_IF) $(COMPILER_CXX) $(ENGINE_CFLAGS) $(REVFLAG) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
||||||
|
|
||||||
|
|
||||||
#### Directories
|
### Directories
|
||||||
|
|
||||||
$(obj):
|
$(obj):
|
||||||
-mkdir $@ $(DONT_PRINT) $(DONT_FAIL)
|
-mkdir $@ $(DONT_PRINT) $(DONT_FAIL)
|
||||||
|
@ -953,7 +953,7 @@ $(foreach i,$(COMPONENTS),$($i_OBJ)): | $(obj)
|
||||||
-mkdir $@ $(DONT_PRINT) $(DONT_FAIL)
|
-mkdir $@ $(DONT_PRINT) $(DONT_FAIL)
|
||||||
|
|
||||||
|
|
||||||
## PHONIES
|
### Phonies
|
||||||
|
|
||||||
clang-tools: $(filter %.c %.cpp %.m %.mm,$(DUKE3D_GAME_SRCS_TARGET) $(DUKE3D_EDITOR_SRCS_TARGET) $(COMMON_EDITOR_SRCS_TARGET) $(ENGINE_SRCS))
|
clang-tools: $(filter %.c %.cpp %.m %.mm,$(DUKE3D_GAME_SRCS_TARGET) $(DUKE3D_EDITOR_SRCS_TARGET) $(COMMON_EDITOR_SRCS_TARGET) $(ENGINE_SRCS))
|
||||||
echo $^ -- $(COMPILERFLAGS) $(foreach i,$(COMPONENTS),$($i_CFLAGS)) $(CWARNS)
|
echo $^ -- $(COMPILERFLAGS) $(foreach i,$(COMPONENTS),$($i_CFLAGS)) $(CWARNS)
|
||||||
|
@ -977,7 +977,7 @@ printtools:
|
||||||
rev: $(ENGINE_OBJ)/rev.$o
|
rev: $(ENGINE_OBJ)/rev.$o
|
||||||
|
|
||||||
|
|
||||||
# Compatibility
|
### Compatibility
|
||||||
|
|
||||||
test: kenbuild
|
test: kenbuild
|
||||||
utils: tools
|
utils: tools
|
||||||
|
|
Loading…
Reference in a new issue