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

23 lines
487 B
Plaintext

LINK = -lstdc++ -lSDL2 -lOpenGL -lGLEW -lGLU -I./src/
DBG = -Wall
CC := clang $(DBG)
targets = Color.cpp Cube.cpp main.cpp Quad.cpp 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