24 lines
355 B
Makefile
24 lines
355 B
Makefile
.PHONY: all
|
|
|
|
# Shared flags etc.
|
|
include ../Makefile.conf
|
|
|
|
all: example
|
|
|
|
.PHONY: example
|
|
|
|
igl_lib=../../
|
|
|
|
CFLAGS+=-g
|
|
inc=$(LIBIGL_INC)
|
|
lib=$(OPENGL_LIB) $(GLUT_LIB) $(LIBIGL_LIB)
|
|
|
|
example: example.o
|
|
g++ $(CFLAGS) -o example example.o $(lib)
|
|
|
|
example.o: example.cpp
|
|
g++ $(CFLAGS) -c example.cpp -o example.o $(inc)
|
|
clean:
|
|
rm -f example.o
|
|
rm -f example
|