]> Sergey Matveev's repositories - st.git/commitdiff
Optimisations master
authorSergey Matveev <stargrave@stargrave.org>
Sun, 18 Feb 2024 15:39:51 +0000 (18:39 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 5 Apr 2024 11:57:27 +0000 (14:57 +0300)
Makefile

index 15db421c0e7b56e9196353ffc5b75f8ef1ba7194..2dd11d6d2ae9118f573c1d86b02268172d447b9c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ config.h:
        cp config.def.h config.h
 
 .c.o:
-       $(CC) $(STCFLAGS) -c $<
+       $(CC) -O3 $(STCFLAGS) -c $<
 
 st.o: config.h st.h win.h
 x.o: arg.h config.h st.h win.h
@@ -21,7 +21,7 @@ x.o: arg.h config.h st.h win.h
 $(OBJ): config.h config.mk
 
 st: $(OBJ)
-       $(CC) -o $@ $(OBJ) $(STLDFLAGS)
+       $(CC) -s -o $@ $(OBJ) $(STLDFLAGS)
 
 clean:
        rm -f st $(OBJ) st-$(VERSION).tar.gz