-sr: sr.o
- $(CC) -o sr sr.o $(LFLAGS) $(CFLAGS)
-
-server: server.o
- $(CC) -o server server.o $(LFLAGS) $(CFLAGS)
-
-.c.o:
- $(CC) $(CFLAGS) -c $<
-
-Makefile config.h: Configure
- @echo "Makefile and/or config.h is out of date"
- @echo "Run ./Configure now"
- @false
-
-proto.h: $(SRCS)
- @touch $@
- @mv $@ $@.old
- @cat $(SRCS) | grep '^ExtFunc[ ]' | sed -e 's/)$$/);/' > $@
- @if diff $@.old $@ > /dev/null 2>&1; then :; else \
- echo "proto.h changed"; \
- touch proto.chg; \
- fi
- @rm -f $@.old
-
-depend: proto.h $(SRCS)
- @echo "Checking dependencies"
- @sed -n -e '1,/make depend #####$$/p' Makefile > Makefile.new
- @$(CC) -M $(SRCS) | sed -e 's/proto\.h/proto.chg/g' >> Makefile.new
- @mv -f Makefile.new Makefile
-
-dist: $(DISTFILES)
- @vers=`cat VERSION`; \
- dir="netris-$$vers"; \
- echo "Creating $$dir directory"; \
- rm -rf $$dir; \
- mkdir $$dir; \
- cp $(DISTFILES) $$dir; \
- chmod 755 $$dir; \
- chmod 644 $$dir/*; \
- chmod 755 $$dir/Configure; \
- echo "Creating $$dir.tar.gz"; \
- tar -cvzof $$dir.tar.gz $$dir
-
-clean:
- rm -f proto.h proto.chg $(PROG) $(OBJS) test.c a.out sr sr.o server server.o
-
-cleandir: clean
- rm -f .depend Makefile config.h
-
-##### DO NOT EDIT OR DELETE THIS LINE, it's needed by make depend #####