From 2735bc46693bf8f25e4e0af6d87f0dd032c218fd Mon Sep 17 00:00:00 2001 From: Lexxy Fox Date: Wed, 1 Nov 2023 10:22:46 -0500 Subject: [PATCH] added 'run' target --- Makefile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 7c89832..d16fce3 100644 --- a/Makefile +++ b/Makefile @@ -14,8 +14,7 @@ RM ?= rm -f CPPFLAGS := \ -D_FORTIFY_SOURCE=2 \ - -DDATE=$(shell date '+%Y-%m-%d') \ - -DSSTRIP_VERSION=$(SSTRIP_VERSION) \ + -DVERSION=$(VERSION) \ $(CPPFLAGS) OFLAGS := -O3 \ -falign-functions=1 \ @@ -57,21 +56,20 @@ LDFLAGS := \ -Wl,-znorelro \ -Wl,-znoseparate-code \ $(LDFLAGS) -LDLIBS := \ - -lGL \ - -lglut \ - -lm \ - -lX11 +LDLIBS := -lGL -lglut -lm -lX11 MAKEFLAGS := \ --jobs=$(shell nproc) \ $(MAKEFLAGS) -.PHONY: all clean install uninstall +.PHONY: all clean install run uninstall all: glxgears -include glxgears.d +run: glxgears + vblank_mode=0 __GL_SYNC_TO_VBLANK=0 $< + clean: $(RM) glxgears glxgears.i glxgears.s glxgears.o