mirror of
https://github.com/PoetryInCode/simple-rigid-sim.git
synced 2026-08-13 11:24:39 -04:00
21 lines
323 B
Plaintext
21 lines
323 B
Plaintext
LINK = -lstdc++ -lSDL2 -lOpenGL -lGLEW -lGLU
|
|
DBG = -Wall
|
|
CC := clang $(DBG)
|
|
|
|
all: build ;
|
|
|
|
Color.o: Color.h
|
|
Cube.o: Cube.h
|
|
main.o: Quad.h
|
|
Quad.o: Color.h Vertex.h
|
|
Vertex.o: 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.o |