mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 14:41:55 +00:00
Makefile: LUNATIC_SRC
git-svn-id: https://svn.eduke32.com/eduke32@6103 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
c12c5e0363
commit
df6871854a
1 changed files with 7 additions and 6 deletions
13
GNUmakefile
13
GNUmakefile
|
@ -421,6 +421,7 @@ DUKE3D_GAME_MISCDEPS=
|
||||||
DUKE3D_EDITOR_MISCDEPS=
|
DUKE3D_EDITOR_MISCDEPS=
|
||||||
|
|
||||||
## Lunatic devel
|
## Lunatic devel
|
||||||
|
LUNATIC_SRC = $(DUKE3D_SRC)/lunatic
|
||||||
LUNATIC_LUA_PREFIX = luaJIT_BC_
|
LUNATIC_LUA_PREFIX = luaJIT_BC_
|
||||||
ifneq (0,$(LUNATIC))
|
ifneq (0,$(LUNATIC))
|
||||||
# Lunatic object base names. These are not used in targets directly.
|
# Lunatic object base names. These are not used in targets directly.
|
||||||
|
@ -491,8 +492,8 @@ ifneq (0,$(LUNATIC))
|
||||||
endif
|
endif
|
||||||
ifeq ($(SUBPLATFORM),LINUX)
|
ifeq ($(SUBPLATFORM),LINUX)
|
||||||
override STRIP=
|
override STRIP=
|
||||||
DUKE3D_GAME_LDFLAGS+= -Wl,--dynamic-list=$(DUKE3D_SRC)/lunatic/dynsymlist_game.lds
|
DUKE3D_GAME_LDFLAGS+= -Wl,--dynamic-list=$(LUNATIC_SRC)/dynsymlist_game.lds
|
||||||
DUKE3D_EDITOR_LDFLAGS+= -Wl,--dynamic-list=$(DUKE3D_SRC)/lunatic/dynsymlist_editor.lds
|
DUKE3D_EDITOR_LDFLAGS+= -Wl,--dynamic-list=$(LUNATIC_SRC)/dynsymlist_editor.lds
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -816,20 +817,20 @@ getdxdidf$(EXESUFFIX): $(TOOLS_OBJ)/getdxdidf.$o
|
||||||
#### Lunatic
|
#### Lunatic
|
||||||
|
|
||||||
# Create object files directly with luajit
|
# Create object files directly with luajit
|
||||||
$(DUKE3D_OBJ)/$(LUNATIC_LUA_PREFIX)%.$o: $(DUKE3D_SRC)/lunatic/%.lua | $(DUKE3D_OBJ)
|
$(DUKE3D_OBJ)/$(LUNATIC_LUA_PREFIX)%.$o: $(LUNATIC_SRC)/%.lua | $(DUKE3D_OBJ)
|
||||||
$(COMPILE_STATUS)
|
$(COMPILE_STATUS)
|
||||||
$(RECIPE_IF) $(LUAJIT) -bg $(LUAJIT_BCOPTS) $< $@ $(RECIPE_RESULT_COMPILE)
|
$(RECIPE_IF) $(LUAJIT) -bg $(LUAJIT_BCOPTS) $< $@ $(RECIPE_RESULT_COMPILE)
|
||||||
|
|
||||||
$(DUKE3D_OBJ)/%.$o: $(DUKE3D_SRC)/lunatic/%.cpp | $(DUKE3D_OBJ)
|
$(DUKE3D_OBJ)/%.$o: $(LUNATIC_SRC)/%.cpp | $(DUKE3D_OBJ)
|
||||||
$(COMPILE_STATUS)
|
$(COMPILE_STATUS)
|
||||||
$(RECIPE_IF) $(COMPILER_CXX) $(DUKE3D_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
$(RECIPE_IF) $(COMPILER_CXX) $(DUKE3D_CFLAGS) -c $< -o $@ $(RECIPE_RESULT_COMPILE)
|
||||||
|
|
||||||
# List of exported symbols, OS X
|
# List of exported symbols, OS X
|
||||||
$(DUKE3D_OBJ)/lunatic_%_osx: $(DUKE3D_SRC)/lunatic/%.lds | $(DUKE3D_OBJ)
|
$(DUKE3D_OBJ)/lunatic_%_osx: $(LUNATIC_SRC)/%.lds | $(DUKE3D_OBJ)
|
||||||
sed 's/[{};]//g;s/[A-Za-z_][A-Za-z_0-9]*/_&/g' $< > $@
|
sed 's/[{};]//g;s/[A-Za-z_][A-Za-z_0-9]*/_&/g' $< > $@
|
||||||
|
|
||||||
# List of exported symbols, Windows
|
# List of exported symbols, Windows
|
||||||
$(DUKE3D_OBJ)/lunatic_%.def: $(DUKE3D_SRC)/lunatic/%.lds | $(DUKE3D_OBJ)
|
$(DUKE3D_OBJ)/lunatic_%.def: $(LUNATIC_SRC)/%.lds | $(DUKE3D_OBJ)
|
||||||
echo EXPORTS > $@
|
echo EXPORTS > $@
|
||||||
sed 's/[{};]//g' $< >> $@
|
sed 's/[{};]//g' $< >> $@
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue