This commit is contained in:
Mylloon 2023-05-26 21:02:48 +02:00
parent 1fdc16106f
commit eef3f9d4a1
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -20,6 +20,7 @@ TAIL = tail
GREP = grep
AWK = awk
STRIP = strip -s
UPX = upx
# Déclaration des options du compilateur
COPTI = -O3
@ -70,6 +71,7 @@ LDFLAGS += -lGL4Dummies $(shell sdl2-config --libs) -lSDL2_mixer -lSDL2_image -
all: $(PROGNAME)
all: strip
all: upx
$(PROGNAME): $(OBJ)
$(CC) $(OBJ) $(LDFLAGS) -o $(PROGNAME)
@ -86,6 +88,9 @@ debug: $(PROGNAME)
strip:
$(STRIP) $(PROGNAME)
upx:
$(UPX) $(PROGNAME)
dist: distdir
$(CHMOD) -R a+r $(distdir)
$(TAR) zcvf $(distdir).tgz $(distdir)