Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (17 sloc) 421 Bytes
CXX = g++
CFLAGS ?= -O2 -g -pipe -Wall
LIBS = -lGL
INCLUDE = -I.
TARGETS = \
common/shapes \
sweep/advancing_front \
sweep/cdt \
sweep/sweep \
sweep/sweep_context \
all: libpoly2tri.so.1.0.0
libpoly2tri.so.1.0.0: $(patsubst %,%.o, $(TARGETS))
$(CXX) $(CFLAGS) -shared -Wl,-soname,libpoly2tri.so.0 $^ $(LIBS) -o $@
%.o: %.cc
$(CXX) $(CFLAGS) $(INCLUDE) -c -fPIC $< -o $@
clean:
rm -f */*.o libpoly2tri.so*
Something went wrong with that request. Please try again.