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:
UnknownShadow200 2019-11-13 18:47:45 +11:00
parent be3c56d91a
commit 6dfa6a753f

View File

@ -1,6 +1,5 @@
SOURCES=$(wildcard *.c)
OBJECTS=$(patsubst %.c, %.o, $(SOURCES))
COMMITSHA=$(shell git rev-parse --short HEAD)
ENAME=ClassiCube
DEL=rm
JOBS=1
@ -100,4 +99,4 @@ $(ENAME): $(OBJECTS)
$(CC) $(LDFLAGS) -o $@$(OEXT) $(OBJECTS) $(LIBS)
$(OBJECTS): %.o : %.c
$(CC) $(CFLAGS) -DCC_COMMIT_SHA=\"$(COMMITSHA)\" -c $< -o $@
$(CC) $(CFLAGS) -c $< -o $@