include config.mk
-SRC = st.c x.c
+SRC = st.c x.c hb.c
OBJ = $(SRC:.c=.o)
all: options st
@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) -o $@ $(OBJ) $(STLDFLAGS)
dist: clean
mkdir -p 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.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)