mirror of
https://github.com/ENSL/NS.git
synced 2024-11-23 04:52:15 +00:00
36c78acbce
* handle particles project VC++ compilation errors with MVCS and project property changes - retarget to v142 platformtoolset - remove explicit windows SDK version; use latest by default - remove settings that are otherwise default values in project or are best determined by solution * attempt to handle clang++ issues regarding unsupported c++11 features * reset file changes to particledefs.h * removing PARTICLEDLL_API definition and replacing usage with extern "C" block statements * add g++ compiler option to specify c++11 standard * attempt to resolve forward enum errors by adding std to base cflags * replacing deprecated libstdc++ and removing -lstdc++ flag, updating MacOSX10 sdk version * small refactor to Makefiles, and add libstdc++ back to linux build * remove added type to enum * reset makefile changes that may be causing unexpected linux build failures * refactoring std=c++11 declarations in Makefile to mitgate linux build failing * ensure std is set for hl_cdll make * attempt to define a standard library to resolve vector initialization_list constructor issue * attempt to update MacOS sdk, set minimum os to be 10.7, and include export in travis ci to define deployment target
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
######################################################################
|
|
# Particle System API
|
|
#
|
|
# Copyright 1998 by David K. McAllister.
|
|
#
|
|
######################################################################
|
|
|
|
C++ = g++ -std=c++11 -m32
|
|
|
|
GLUT_HOME =/usr/local/contrib/unmoderated
|
|
|
|
MP = #-mp -DPARTICLE_MP
|
|
|
|
OS:=$(shell uname)
|
|
|
|
# Make it real fast on an Origin 2000.
|
|
#LNO =-LNO:opt=1:fusion=2:fission=2:fusion_peeling_limit=2048:cs1=32K:cs2=8M
|
|
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 = libtool -static *.o -o libparticleMP.a
|
|
CFLAGS += -target i386-apple-darwin -DCMAKE_OSX_ARCHITECTURES=i386
|
|
else
|
|
SLIBB = ar clq $@ $(POBJS)
|
|
endif
|
|
|
|
POBJS =action_api.o actions.o HLRender.o opengl.o system.o
|
|
|
|
ALL = libparticleMP.a
|
|
|
|
all: $(ALL)
|
|
|
|
# following line needed for c++ .cc files
|
|
.SUFFIXES : .cpp
|
|
|
|
.cpp.o:
|
|
$(C++) $(CFLAGS) -c $<
|
|
|
|
libparticleMP.a: $(POBJS)
|
|
rm -f $@
|
|
$(SLIBB)
|
|
|
|
SPDir:
|
|
(make)
|
|
|
|
clean:
|
|
rm -f libpar*
|
|
rm -f *.o
|
|
rm -rf *ii_files
|