mirror of
https://github.com/PoetryInCode/simple-rigid-sim.git
synced 2026-03-06 11:24:23 -05:00
23 lines
381 B
Plaintext
23 lines
381 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
|
|
Vertex.o: src/Vertex.h
|
|
|
|
build: $(targets) ;
|
|
$(CC) ./src/main.cpp -o ./bin/main.o $(LINK)
|
|
|
|
.PHONY: clean
|
|
clean: main.o ;
|
|
rm -rf ./bin/*
|
|
|
|
run: build ;
|
|
./bin/main |