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.

34 lines
531 B

3 years ago
LD_PARAMS := -lglut -lGL -lGLU
SRC := src
OBJ := obj
CXX := g++
LD := g++
DESTDIR?=/
PREFIX=/usr
INSTALL?=install
3 years ago
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
3 years ago
.PHONY: clean
3 years ago
clean:
rm -f program
rm -rf obj
program: ${OBJECTS}
$(LD) ${LD_PARAMS} $^ -o $@
$(OBJECTS): $(OBJ)/%.o: $(SRC)/%.cpp
$(CXX) ${CXX_PARAMS} $< -c -o $@