mirror of
https://github.com/ENSL/NS.git
synced 2024-11-25 22:11:04 +00:00
fix: compiles particles as static lib
This commit is contained in:
parent
cfcde19373
commit
41791848fa
3 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ CFLAGS=$(BASE_CFLAGS) $(ARCH_CFLAGS) -DCLIENT_DLL -I/usr/include/malloc -D_snwpr
|
|||
INCLUDEDIRS= -I$(HL_SRC_DIR) -I$(NS_MOD_SRC_DIR) -I$(COMMON_SRC_DIR) -I$(PUBLIC_SRC_DIR) -I$(PM_SHARED_SRC_DIR) -I../engine -I$(GAME_SHARED_SRC_DIR) -I../external/ -I../particles -I../includes/fmodapi375linux/api/inc -I$(HL_SERVER_SRC_DIR) -I$(HL_SRC_DIR)/cl_dll -I$(VGUI_INCLUDE_DIR) -I$(UI_INCLUDE_DIR) -I$(UTIL_SRC_DIR) -I../ -I../includes/fmodapi375linux/api -I../includes/lpng1251
|
||||
|
||||
ifeq ($(OS),Darwin)
|
||||
LDFLAGS=$(SHLIBLDFLAGS) $(CPP_LIB) -L. libpng12.dylib -lz -framework Carbon vgui.dylib -L. -lSDL2-2.0.0 -L. libparticles.dylib
|
||||
LDFLAGS=$(SHLIBLDFLAGS) $(CPP_LIB) -L. libpng12.dylib -lz -framework Carbon vgui.dylib -L. -lSDL2-2.0.0 -L. libparticleMP.a
|
||||
else
|
||||
LDFLAGS=$(SHLIBLDFLAGS) $(CPP_LIB) -lpng -lz -lfmod-3.75 -L$(CFG) vgui.so -L. libSDL2-2.0.so.0 -L. libparticleMP.a
|
||||
endif
|
||||
|
|
|
@ -31,7 +31,7 @@ UTIL_INCLUDEDIRS = -I../ -I../util
|
|||
TEXTREP_INCLUDEDIRS=..
|
||||
|
||||
ifeq ($(OS),Darwin)
|
||||
LDFLAGS=-lm -lcurl -lstdc++ -L. libparticles.dylib
|
||||
LDFLAGS=-lm -lcurl -lstdc++ -L. libparticleMP.a
|
||||
else
|
||||
LDFLAGS=-lm -lcurl -lstdc++ -L. libparticleMP.a
|
||||
endif
|
||||
|
|
|
@ -20,7 +20,7 @@ COPT = $(MP) -O3 $(LNO) -fPIC
|
|||
CFLAGS = $(COPT) $(COMPFLAGS) -I. -I.. -I$(GLUT_HOME)/include -I/usr/include/c++/4.8/ -I../common -I../public -I../pm_shared -I../engine
|
||||
|
||||
ifeq ($(OS),Darwin)
|
||||
SLIBB = $(C++) -dynamiclib -undefined suppress -flat_namespace *.o -o libparticles.dylib
|
||||
SLIBB = libtool -static *.o -o libparticleMP.a
|
||||
CFLAGS += -target i386-apple-darwin -DCMAKE_OSX_ARCHITECTURES=i386
|
||||
else
|
||||
SLIBB = ar clq $@ $(POBJS)
|
||||
|
|
Loading…
Reference in a new issue