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

23 lines
498 B
Plaintext

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