mirror of
https://github.com/PoetryInCode/simple-rigid-sim.git
synced 2026-08-13 11:24:39 -04:00
23 lines
487 B
Plaintext
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 |