added 'run' target
This commit is contained in:
parent
3fbb17b592
commit
2735bc4669
14
Makefile
14
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user