X-Git-Url: https://git.armaanb.net/?p=st.git;a=blobdiff_plain;f=Makefile;h=b6e7e335ce8b7200804a198283e0d1dfc1560da6;hp=128ee9d406f58d269130ee167a862572ea905eea;hb=HEAD;hpb=274d46ace00003d1df718b974d17642cbce167d5 diff --git a/Makefile b/Makefile index 128ee9d..b6e7e33 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ include config.mk -SRC = st.c x.c +SRC = st.c x.c hb.c OBJ = $(SRC:.c=.o) all: options st @@ -15,26 +15,26 @@ options: @echo "LDFLAGS = $(STLDFLAGS)" @echo "CC = $(CC)" -config.h: - cp config.def.h config.h - .c.o: $(CC) $(STCFLAGS) -c $< -st.o: config.h st.h win.h -x.o: arg.h st.h win.h +st.o: st.h win.h +x.o: arg.h st.h win.h hb.h +hb.o: st.h -$(OBJ): config.h config.mk +$(OBJ): config.mk st: $(OBJ) - $(CC) $(STLDFLAGS) -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\ + 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)