mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Makefile: Add LPeg sources, replacing the haphazard static linking that required a custom-built library in a hardcoded location.
git-svn-id: https://svn.eduke32.com/eduke32@6157 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
75d25d0d15
commit
000050c7b9
1 changed files with 21 additions and 13 deletions
34
GNUmakefile
34
GNUmakefile
|
@ -32,6 +32,23 @@ COMPILERFLAGS += -I$(ENGINE_INC) -I$(MACT_INC) -I$(AUDIOLIB_INC) -I$(ENET_INC)
|
||||||
|
|
||||||
##### External Library Definitions
|
##### External Library Definitions
|
||||||
|
|
||||||
|
#### LPeg
|
||||||
|
|
||||||
|
LPEG=lpeg
|
||||||
|
|
||||||
|
LPEG_OBJS = \
|
||||||
|
lpcap.c \
|
||||||
|
lpcode.c \
|
||||||
|
lpprint.c \
|
||||||
|
lptree.c \
|
||||||
|
lpvm.c \
|
||||||
|
|
||||||
|
LPEG_ROOT=$(source)/$(LPEG)
|
||||||
|
LPEG_SRC=$(LPEG_ROOT)/src
|
||||||
|
LPEG_INC=$(LPEG_ROOT)/include
|
||||||
|
LPEG_OBJ=$(obj)/$(LPEG)
|
||||||
|
|
||||||
|
|
||||||
#### ENet
|
#### ENet
|
||||||
|
|
||||||
ENET=enet
|
ENET=enet
|
||||||
|
@ -468,17 +485,6 @@ ifneq (0,$(LUNATIC))
|
||||||
|
|
||||||
# TODO: remove debugging modules from release build
|
# TODO: remove debugging modules from release build
|
||||||
|
|
||||||
ifneq ($(PLATFORM),WINDOWS)
|
|
||||||
# On non-Windows, we expect to have liblpeg.a (or a symlink to it) in source/.
|
|
||||||
# On Windows, it will reside in platform/Windows/lib/32/ or lib/64/.
|
|
||||||
LIBDIRS+= -L$(source)
|
|
||||||
ifeq ($(realpath $(source)/liblpeg.a),)
|
|
||||||
# XXX: This cripples "make clean" etc. too, but IMO it's better than warning.
|
|
||||||
$(error "liblpeg.a not found in $(realpath $(source))")
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
LIBS+= -llpeg
|
|
||||||
|
|
||||||
# now, take care of having the necessary symbols (sector, wall, etc.) in the
|
# now, take care of having the necessary symbols (sector, wall, etc.) in the
|
||||||
# executable no matter what the debugging level
|
# executable no matter what the debugging level
|
||||||
|
|
||||||
|
@ -581,8 +587,8 @@ ifneq (0,$(NETCODE))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (0,$(LUNATIC))
|
ifneq (0,$(LUNATIC))
|
||||||
DUKE3D_GAME_DEPS += LUNATIC LUNATIC_GAME
|
DUKE3D_GAME_DEPS += LUNATIC LUNATIC_GAME LPEG
|
||||||
DUKE3D_EDITOR_DEPS += LUNATIC LUNATIC_EDITOR
|
DUKE3D_EDITOR_DEPS += LUNATIC LUNATIC_EDITOR LPEG
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -720,6 +726,7 @@ LIBRARIES := \
|
||||||
AUDIOLIB \
|
AUDIOLIB \
|
||||||
MACT \
|
MACT \
|
||||||
ENET \
|
ENET \
|
||||||
|
LPEG \
|
||||||
|
|
||||||
COMPONENTS = \
|
COMPONENTS = \
|
||||||
$(GAMES) \
|
$(GAMES) \
|
||||||
|
@ -795,6 +802,7 @@ endef
|
||||||
$(foreach i,$(GAMES),$(foreach j,$(ROLES),$(eval $(call BUILDRULE,$i,$j))))
|
$(foreach i,$(GAMES),$(foreach j,$(ROLES),$(eval $(call BUILDRULE,$i,$j))))
|
||||||
|
|
||||||
|
|
||||||
|
include $(LPEG_ROOT)/Dependencies.mak
|
||||||
include $(ENGINE_ROOT)/Dependencies.mak
|
include $(ENGINE_ROOT)/Dependencies.mak
|
||||||
include $(DUKE3D_ROOT)/Dependencies.mak
|
include $(DUKE3D_ROOT)/Dependencies.mak
|
||||||
include $(SW_ROOT)/Dependencies.mak
|
include $(SW_ROOT)/Dependencies.mak
|
||||||
|
|
Loading…
Reference in a new issue