simple-rigid-sim/.history/Makefile_20200512002516
2020-05-13 15:54:11 -04:00

23 lines
463 B
Plaintext

LINK = -lstdc++ -lSDL2 -lOpenGL -lGLEW -lGLU -I./src/
DBG = -Wall
CC := clang $(DBG)
targets = Color.o Cube.o main.o Quad.o Vertex.o
all: build ;
Color.o: src/Color.h src/Color.cpp
Cube.o: src/Cube.h src/Cube.cpp
main.o: src/Quad.h src/Color.h src/main.cpp
Quad.o: src/Color.h src/Quad.cpp
Vertex.o: src/Vertex.h Vertex.cpp
build: $(targets) ;
$(CC) -c -o ./bin/main $(targets) $(LINK)
.PHONY: clean
clean: main.o ;
rm -rf ./bin/*
run: build ;
./bin/main