Maze project in OpenGL for Graphics and User Interfaces lecture in year 3, semester 2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
531 B

LD_PARAMS := -lglut -lGL -lGLU
SRC := src
OBJ := obj
CXX := g++
LD := g++
DESTDIR?=/
PREFIX=/usr
INSTALL?=install
SOURCES := $(wildcard $(SRC)/*.cpp)
OBJECTS := $(patsubst $(SRC)/%.cpp, $(OBJ)/%.o, $(SOURCES))
.PHONY: all
all: build
.PHONY: build
build: program
.PHONY: install
install:
${INSTALL} -Dm755 program ${DESTDIR}${PREFIX}/bin/y3s2-gui-project
.PHONY: clean
clean:
rm -f program
rm -rf obj
program: ${OBJECTS}
$(LD) ${LD_PARAMS} $^ -o $@
$(OBJECTS): $(OBJ)/%.o: $(SRC)/%.cpp
$(CXX) ${CXX_PARAMS} $< -c -o $@