Files
secondo/Algebras/RegionInterpolation2/librip/lib/Makefile
2026-01-23 17:03:45 +08:00

35 lines
769 B
Makefile

CC=g++
CPPFLAGS=-O2 -fPIC -Wall -I../include -ggdb
#LIBS=-llua5.1
LDFLAGS=$(LIBS) -shared
OBJ=Face.o interpolate.o Interval.o lua.o matchFaces.o MFace.o MFaces.o MSeg.o MSegs.o RList.o ointersect.o Pt.o RotatingPlane.o Seg.o intersect.o
# Choose the polygon intersection function implementation here:
# (run "make clean" after change!)
EXTPOLY=boost
#EXTPOLY=mathphys
ifeq ($(EXTPOLY),boost)
OBJ += Poly_boost.o
CPPFLAGS += -DPOLYBOOST
else
ifeq ($(EXTPOLY),mathphys)
OBJ += Poly_mathphys.o
CPPFLAGS += -DPOLYMATHPHYS
endif
endif
all: librip.so librip.a
cp *.o ../build
librip.so: $(OBJ)
$(CC) -o librip.so $(OBJ) $(LDFLAGS)
cp librip.so ../build
librip.a: $(OBJ)
ar rcs librip.a $(OBJ)
cp librip.a ../build
clean:
rm -f *.o *~ librip.so librip.a