mirror of
https://github.com/PoetryInCode/simple-rigid-sim.git
synced 2026-08-13 11:24:39 -04:00
23 lines
407 B
Plaintext
23 lines
407 B
Plaintext
LINK = -lstdc++ -lSDL2 -lOpenGL -lGLEW -lGLU
|
|
DBG = -Wall
|
|
CC := clang $(DBG)
|
|
|
|
targets = Color.o Cube.o main.o Quad.o Vertex.o
|
|
|
|
all: build ;
|
|
|
|
Color.o: ./src/Color.h
|
|
Cube.o: ./src/Cube.h
|
|
main.o: ./src/Quad.h
|
|
Quad.o: ./src/Color.h ./src/Vertex.h
|
|
Vertex.o: ./src/Vertex.h
|
|
|
|
build: $(targets) ;
|
|
$(CC) -c ./src/main.cpp -o ./bin/main $(LINK)
|
|
|
|
.PHONY: clean
|
|
clean: main.o ;
|
|
rm -rf ./bin/*
|
|
|
|
run: build ;
|
|
./bin/main |