mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 03:25:14 -04:00
Remove CC_COMMIT_SHA from makefile produced executables
this is useless for debugging because builds produced from the makefile are different from the dev build with the same commit sha on the website
This commit is contained in:
parent
be3c56d91a
commit
6dfa6a753f
@ -1,6 +1,5 @@
|
|||||||
SOURCES=$(wildcard *.c)
|
SOURCES=$(wildcard *.c)
|
||||||
OBJECTS=$(patsubst %.c, %.o, $(SOURCES))
|
OBJECTS=$(patsubst %.c, %.o, $(SOURCES))
|
||||||
COMMITSHA=$(shell git rev-parse --short HEAD)
|
|
||||||
ENAME=ClassiCube
|
ENAME=ClassiCube
|
||||||
DEL=rm
|
DEL=rm
|
||||||
JOBS=1
|
JOBS=1
|
||||||
@ -100,4 +99,4 @@ $(ENAME): $(OBJECTS)
|
|||||||
$(CC) $(LDFLAGS) -o $@$(OEXT) $(OBJECTS) $(LIBS)
|
$(CC) $(LDFLAGS) -o $@$(OEXT) $(OBJECTS) $(LIBS)
|
||||||
|
|
||||||
$(OBJECTS): %.o : %.c
|
$(OBJECTS): %.o : %.c
|
||||||
$(CC) $(CFLAGS) -DCC_COMMIT_SHA=\"$(COMMITSHA)\" -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user