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