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