Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release-src > by-pkgid > e7ba06c121545d8df0a530d6fe4d5fba > files > 1

amftools-0.0-0.svn32.6.mga5.src.rpm

CXX = g++
CFLAGS = -O2 -g -pipe -Wall

LIBS = -lGL -lzip -lstbi -lmuparser

INCLUDE = 	-Iinclude \
			-DLINUX \

TARGETS = \
	Amf \
	AMF_File \
	Equation \
	Mesh \
	MeshSlice \
	MeshTree \
	nAmf \
	nColor \
	nComposite \
	nConstellation \
	nCoordinates \
	nEdge \
	nInstance \
	nMaterial \
	nMesh \
	nMetadata \
	nNormal \
	nObject \
	nTexmap \
	nTexture \
	nTriangle \
	nVertex \
	nVertices \
	nVolume \
	SimpleImage \
	STL_File \
	XmlCompress \
	XmlStream \
	X3D_File \

all: libamf.so.0.0

libamf.so.0.0: $(patsubst %,bin/%.o, $(TARGETS))
	$(CXX) $(CFLAGS) -shared -Wl,-soname,libamf.so.0 $^ $(LIBS) -o $@

bin/Mes%.o: src/Mes%.cpp
	$(CXX) $(CFLAGS) $(INCLUDE) -DUSE_OPEN_GL -c -fPIC $< -o $@

bin/%.o: src/%.cpp
	$(CXX) $(CFLAGS) $(INCLUDE) -c -fPIC $< -o $@

clean:
	rm -rf bin/* libamf.so.0.0