added 'run' target
This commit is contained in:
parent
3fbb17b592
commit
2735bc4669
14
Makefile
14
Makefile
@ -14,8 +14,7 @@ RM ?= rm -f
|
|||||||
|
|
||||||
CPPFLAGS := \
|
CPPFLAGS := \
|
||||||
-D_FORTIFY_SOURCE=2 \
|
-D_FORTIFY_SOURCE=2 \
|
||||||
-DDATE=$(shell date '+%Y-%m-%d') \
|
-DVERSION=$(VERSION) \
|
||||||
-DSSTRIP_VERSION=$(SSTRIP_VERSION) \
|
|
||||||
$(CPPFLAGS)
|
$(CPPFLAGS)
|
||||||
OFLAGS := -O3 \
|
OFLAGS := -O3 \
|
||||||
-falign-functions=1 \
|
-falign-functions=1 \
|
||||||
@ -57,21 +56,20 @@ LDFLAGS := \
|
|||||||
-Wl,-znorelro \
|
-Wl,-znorelro \
|
||||||
-Wl,-znoseparate-code \
|
-Wl,-znoseparate-code \
|
||||||
$(LDFLAGS)
|
$(LDFLAGS)
|
||||||
LDLIBS := \
|
LDLIBS := -lGL -lglut -lm -lX11
|
||||||
-lGL \
|
|
||||||
-lglut \
|
|
||||||
-lm \
|
|
||||||
-lX11
|
|
||||||
MAKEFLAGS := \
|
MAKEFLAGS := \
|
||||||
--jobs=$(shell nproc) \
|
--jobs=$(shell nproc) \
|
||||||
$(MAKEFLAGS)
|
$(MAKEFLAGS)
|
||||||
|
|
||||||
.PHONY: all clean install uninstall
|
.PHONY: all clean install run uninstall
|
||||||
|
|
||||||
all: glxgears
|
all: glxgears
|
||||||
|
|
||||||
-include glxgears.d
|
-include glxgears.d
|
||||||
|
|
||||||
|
run: glxgears
|
||||||
|
vblank_mode=0 __GL_SYNC_TO_VBLANK=0 $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) glxgears glxgears.i glxgears.s glxgears.o
|
$(RM) glxgears glxgears.i glxgears.s glxgears.o
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user