mirror of
https://github.com/PoetryInCode/simple-rigid-sim.git
synced 2026-03-07 03:44:23 -05:00
23 lines
405 B
Plaintext
23 lines
405 B
Plaintext
LINK = -lstdc++ -lSDL2 -lOpenGL -lGLEW -lGLU -I./src/
|
|
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 src/Color.h
|
|
Quad.o: src/Color.h
|
|
Vertex.o: src/Vertex.h
|
|
|
|
build: $(targets) ;
|
|
$(CC) -c ./src/main.cpp -o ./bin/main.o $(LINK)
|
|
|
|
.PHONY: clean
|
|
clean: main.o ;
|
|
rm -rf ./bin/*
|
|
|
|
run: build ;
|
|
./bin/main |