2018-04-22 15:55:55 +00:00
|
|
|
######################################################################
|
|
|
|
# Particle System API
|
|
|
|
#
|
|
|
|
# Copyright 1998 by David K. McAllister.
|
|
|
|
#
|
|
|
|
######################################################################
|
|
|
|
|
2020-07-05 16:11:06 +00:00
|
|
|
C++ = g++ -std=c++11 -m32
|
2018-04-22 15:55:55 +00:00
|
|
|
|
|
|
|
GLUT_HOME =/usr/local/contrib/unmoderated
|
|
|
|
|
|
|
|
MP = #-mp -DPARTICLE_MP
|
|
|
|
|
2018-04-30 05:48:44 +00:00
|
|
|
OS:=$(shell uname)
|
|
|
|
|
2018-04-22 15:55:55 +00:00
|
|
|
# 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
|
|
|
|
|
2018-04-30 05:48:44 +00:00
|
|
|
ifeq ($(OS),Darwin)
|
2018-05-13 01:03:45 +00:00
|
|
|
SLIBB = libtool -static *.o -o libparticleMP.a
|
2018-04-30 05:48:44 +00:00
|
|
|
CFLAGS += -target i386-apple-darwin -DCMAKE_OSX_ARCHITECTURES=i386
|
|
|
|
else
|
|
|
|
SLIBB = ar clq $@ $(POBJS)
|
|
|
|
endif
|
|
|
|
|
2018-04-22 15:55:55 +00:00
|
|
|
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 $@
|
2018-04-30 05:48:44 +00:00
|
|
|
$(SLIBB)
|
2018-04-22 15:55:55 +00:00
|
|
|
|
|
|
|
SPDir:
|
|
|
|
(make)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f libpar*
|
|
|
|
rm -f *.o
|
|
|
|
rm -rf *ii_files
|