build ezhud by default.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4880 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2015-06-03 16:42:37 +00:00
parent a52fb38c7d
commit 4bfb34a8c0

View file

@ -1,11 +1,11 @@
#windows is special as always, but we don't support itanium, and microsoft don't support anything else (not even arm with the nt win32 api) #windows is special as always, but we don't support itanium, and microsoft don't support anything else (not even arm with the nt win32 api)
ifeq ($(FTE_TARGET),win32) ifeq ($(FTE_TARGET),win32)
PLUG_NATIVE_EXT=x86.dll PLUG_NATIVE_EXT=_x86.dll
PLUG_LDFLAGS=-Lavplug/lib32 -L../engine/libs/mingw-libs -lzlib PLUG_LDFLAGS=-Lavplug/lib32 -L../engine/libs/mingw-libs -lzlib
endif endif
ifeq ($(FTE_TARGET),win64) ifeq ($(FTE_TARGET),win64)
PLUG_NATIVE_EXT=amd.dll PLUG_NATIVE_EXT=_amd.dll
PLUG_LDFLAGS=-Lavplug/lib64 -L../engine/libs/mingw64-libs -lz -Wl,--support-old-code PLUG_LDFLAGS=-Lavplug/lib64 -L../engine/libs/mingw64-libs -lz -Wl,--support-old-code
endif endif
@ -23,11 +23,11 @@ endif
ifeq ($(FTE_TARGET),cygwin) ifeq ($(FTE_TARGET),cygwin)
ifeq ($(BITS),64) ifeq ($(BITS),64)
PLUG_DEFFILE=plugin.def PLUG_DEFFILE=plugin.def
PLUG_NATIVE_EXT=amd.dll PLUG_NATIVE_EXT=_amd.dll
endif endif
ifneq ($(BITS),64) ifneq ($(BITS),64)
PLUG_DEFFILE=plugin.def PLUG_DEFFILE=plugin.def
PLUG_NATIVE_EXT=x86.dll PLUG_NATIVE_EXT=_x86.dll
endif endif
endif endif
@ -36,21 +36,21 @@ endif
ifeq ($(PLUG_NATIVE_EXT),) ifeq ($(PLUG_NATIVE_EXT),)
LIBRESOLV=-lresolv LIBRESOLV=-lresolv
ifneq ($(shell echo|$(CC) -E -dM -|grep __amd64__),) ifneq ($(shell echo|$(CC) -E -dM -|grep __amd64__),)
PLUG_NATIVE_EXT=amd.so PLUG_NATIVE_EXT=_amd.so
endif endif
ifneq ($(shell echo|$(CC) -E -dM -|grep __i386__),) ifneq ($(shell echo|$(CC) -E -dM -|grep __i386__),)
PLUG_NATIVE_EXT=x86.so PLUG_NATIVE_EXT=_x86.so
endif endif
ifneq ($(shell echo|$(CC) -E -dM -|grep __arm__),) ifneq ($(shell echo|$(CC) -E -dM -|grep __arm__),)
PLUG_NATIVE_EXT=arm.so PLUG_NATIVE_EXT=_arm.so
endif endif
ifneq ($(shell echo|$(CC) -E -dM -|grep __ppc__),) ifneq ($(shell echo|$(CC) -E -dM -|grep __ppc__),)
PLUG_NATIVE_EXT=ppc.so PLUG_NATIVE_EXT=_ppc.so
endif endif
endif endif
#fallback #fallback
PLUG_NATIVE_EXT?=unk.so PLUG_NATIVE_EXT?=_unk.so
PLUG_DEFFILE?= PLUG_DEFFILE?=
PLUG_CFLAGS?=-fPIC -Wl,--no-undefined -Bsymbolic PLUG_CFLAGS?=-fPIC -Wl,--no-undefined -Bsymbolic
@ -127,4 +127,9 @@ $(OUT_DIR)/fteplug_irc$(PLUG_NATIVE_EXT): irc/ircclient.c plugin.c qvm_api.c
$(CC) $(BASE_CFLAGS) $(CFLAGS) -DFTEPLUGIN -o $(OUT_DIR)/fteplug_irc$(PLUG_NATIVE_EXT) -shared $(PLUG_CFLAGS) -Iirc $^ $(PLUG_DEFFILE) $(PLUG_LDFLAGS) $(CC) $(BASE_CFLAGS) $(CFLAGS) -DFTEPLUGIN -o $(OUT_DIR)/fteplug_irc$(PLUG_NATIVE_EXT) -shared $(PLUG_CFLAGS) -Iirc $^ $(PLUG_DEFFILE) $(PLUG_LDFLAGS)
native: $(OUT_DIR)/fteplug_irc$(PLUG_NATIVE_EXT) native: $(OUT_DIR)/fteplug_irc$(PLUG_NATIVE_EXT)
#for compat with ezquake
$(OUT_DIR)/fteplug_ezhud$(PLUG_NATIVE_EXT): ezhud/ezquakeisms.c ezhud/hud.c ezhud/hud_common.c ezhud/hud_editor.c plugin.c qvm_api.c
$(CC) $(BASE_CFLAGS) $(CFLAGS) -DFTEPLUGIN -o $(OUT_DIR)/fteplug_ezhud$(PLUG_NATIVE_EXT) -shared $(PLUG_CFLAGS) -Iirc $^ $(PLUG_DEFFILE) $(PLUG_LDFLAGS)
native: $(OUT_DIR)/fteplug_ezhud$(PLUG_NATIVE_EXT)
native: native: