From 0ce43c17c72e386bc7d409f6b55fe5aca9fce99b Mon Sep 17 00:00:00 2001 From: SoloArchx250 Date: Fri, 15 May 2020 17:26:32 -0400 Subject: [PATCH] update readme and makefile --- Makefile | 3 ++- README.md | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3b24835..a77fcdb 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ +CC = clang LINK = -lstdc++ -lSDL2 -lOpenGL -lGLEW -lGLU DBG = -Wall -CC := clang $(DBG) -c +CC += $(DBG) all: build ; diff --git a/README.md b/README.md index ccbba15..e25d2f8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,12 @@ # Simple Physics -This is a largely physics/math based prject that was created for a school project. It is a rendering engine built on OpenGL and +This is a largely physics/math based project that was created for a school project. It is a rendering engine built on OpenGL and SDL that can simulate how rigid bodies interact with each other under gravity. + +# Building +Building this project requires OpenGL and SDL2 to be installed on your computer. A graphics card is recommended, but not necessary. + +By default the [Makefile](./Makefile) is configured to compile with clang. But can be configured to use another compiler by modifying the value at line 1. + +Example: + +`CC = clang` => `CC = gcc` \ No newline at end of file