X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=Makefile;h=6688a5854ecc961c87d2195433726320319ac02c;hb=30967a2a66c125cd68ad2c44df11218ccad1105d;hp=f5b84a0f1d41255fdf23e59b6c0ccd5726121daf;hpb=fabd4602b3223666165c76c397644a081b9a97e5;p=st.git diff --git a/Makefile b/Makefile index f5b84a0..6688a58 100644 --- a/Makefile +++ b/Makefile @@ -11,30 +11,32 @@ all: options st options: @echo st build options: - @echo "CFLAGS = $(CFLAGS)" - @echo "LDFLAGS = $(LDFLAGS)" + @echo "CFLAGS = $(STCFLAGS)" + @echo "LDFLAGS = $(STLDFLAGS)" @echo "CC = $(CC)" config.h: cp config.def.h config.h .c.o: - $(CC) $(CFLAGS) -c $< + $(CC) $(STCFLAGS) -c $< -st.o: config.h st.h win.h -x.o: arg.h st.h win.h +st.o: config.h st.h win.h normalMode.h normalMode.c utils.h +x.o: arg.h config.h st.h win.h $(OBJ): config.h config.mk st: $(OBJ) - $(CC) $(LDFLAGS) -o $@ $(OBJ) + $(CC) -o $@ $(OBJ) $(STLDFLAGS) clean: rm -f st $(OBJ) st-$(VERSION).tar.gz dist: clean mkdir -p st-$(VERSION) - cp -R LICENSE Makefile README config.mk config.def.h st.info st.1 arg.h $(SRC) st-$(VERSION) + cp -R FAQ LEGACY TODO LICENSE Makefile README config.mk\ + config.def.h st.info st.1 arg.h st.h win.h $(SRC)\ + st-$(VERSION) tar -cf - st-$(VERSION) | gzip > st-$(VERSION).tar.gz rm -rf st-$(VERSION)