mirror of
https://github.com/PoetryInCode/simple-rigid-sim.git
synced 2026-03-07 03:44:23 -05:00
23 lines
498 B
Plaintext
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 |