Source

glThumbs / Makefile

Full commit

OUT = glThumbs
SRC = main.cpp glut_backend.cpp texture.cpp
OBJ = $(SRC:.cpp=.o)

CC = g++
OPT = -O2 -Wall
INCLUDE = -I./frameworks/include
LIBS = -lm -lGL -lGLEW -lglut -lIL -lILU
LPATH = -L./frameworks/lib

$(OUT) : $(OBJ)
	$(CC) $(INCLUDE) $(opt) $(OBJ) -o $(OUT) $(LPATH) $(LIBS) 

.cpp.o:
	$(CC) $(opt) $(INCLUDE) -c $< -o $@

clean: 
	rm -rf $(OBJ) $(OUT)