mirror of
https://github.com/PoetryInCode/simple-rigid-sim.git
synced 2026-03-07 03:44:23 -05:00
23 lines
372 B
Plaintext
23 lines
372 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: 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 |