shithub: tinygl

Download patch

ref: 3b1761c649260aae4b84683c5abfae2351d09ac7
parent: e3a77a397ff12d9022171ffcb1d3682ff6b60abb
author: gek <6974902+gordonfreeman424@users.noreply.github.com>
date: Sat Jun 5 21:38:30 EDT 2021

Automatic commit.

--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
 
 LIB = lib/libTinyGL.a
+LIBDIR= /usr/local/lib/
+INCDIR= /usr/local/lib/
 
 all: $(LIB) RDMOS
 	@echo Done!
@@ -7,6 +9,11 @@
 $(LIB):
 	cd src && $(MAKE) && cd ..
 	cp src/*.a ./lib/
+
+install: $(LIB)
+	cp $(LIB) $(LIBDIR)
+	mkdir $(INCDIR)/tinygl
+	cp include/* $(INCDIR)/tinygl
 
 SDL_Examples: $(LIB)
 	@echo "These demos require SDL 1.2 to compile."
--- a/config.mk
+++ b/config.mk
@@ -13,10 +13,10 @@
 #CFLAGS= -Wall -w -O3 -g -std=c99 -march=native -DNDEBUG
 
 #extract the maximum possible performance from gcc.
-#CFLAGS= -Wall -Ofast -std=c99 -DNDEBUG -mtune=native -Wno-unused-function
-CFLAGS= -Wall -Ofast -std=c99 -DNDEBUG -mtune=native -fopenmp -Wno-unused-function
-#CFLAGS_LIB= -Wall -Ofast -std=c99 -pedantic -DNDEBUG -mtune=native -Wno-unused-function
-CFLAGS_LIB= -Wall -Ofast -std=c99 -pedantic -DNDEBUG -fopenmp -mtune=native -Wno-unused-function
+CFLAGS= -Wall -O3 -std=c99 -DNDEBUG -march=native -Wno-unused-function
+#CFLAGS= -Wall -O3 -std=c99 -DNDEBUG -mtune=native -fopenmp -Wno-unused-function
+CFLAGS_LIB= -Wall -O3 -std=c99 -pedantic -DNDEBUG -march=native -Wno-unused-function
+#CFLAGS_LIB= -Wall -O3 -std=c99 -pedantic -DNDEBUG -fopenmp -mtune=native -Wno-unused-function
 #CFLAGS= -Wall -Ofast -std=gnu99 -DNDEBUG -mtune=native
 #uncomment the following line for compiling the lib with tinyc
 #keep these flags for compiling with gcc if you are linking with tinygl compiled with tcc.