Source

Mesh Simplification / MeshSimplification / makefile

# Mesh simplification Mac OS X makefile
# author: Lazar Sumar
CC=g++
CFLAGS=-c -Wall
# Mac OS X specific library flags
LDFLAGS=-framework OpenGL -framework GLUT
HEADERS=Vector3.h util.h HEdge.h collapse.h decimation.h
SOURCES=main.cpp Vector3.cpp util.cpp HEdge.cpp collapse.cpp decimation.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=meshsimp

all: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS) 
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@