diff zotnet/tws/Makefile @ 0:bce86c4163a3

Initial revision
author kono
date Mon, 18 Apr 2005 23:46:02 +0900
parents
children f89a9a79e124
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/zotnet/tws/Makefile	Mon Apr 18 23:46:02 2005 +0900
@@ -0,0 +1,156 @@
+##############################################################################
+#    Instructions to Make, for compilation of ZOT UIP/utility processes
+#
+#	This file is automatically generated.  Do not edit!
+# @(#)$Id$
+##############################################################################
+
+# The following entries were inserted during MH configuration
+BINDIR	=	$(DESTDIR)/usr/local/mh/bin
+ETCDIR	=	$(DESTDIR)/usr/local/mh/lib
+OPTIONS	=	-DATHENA -DDUMB -DFOLDPROT='"0700"' -DGCOS_HACK -DISI -DMHE -DMHRC -DMSGPROT='"0600"' -DOVERHEAD -DRPATHS -DSBACKUP='"\043"' -DWHATNOW -DBIND -DBSD42 -DBSD43 -DBSD44 -DDBMPWD -DNORUSERPASS -DPOSIX -DSETMG -DSYS5DIR -DUNISTD -DVSPRINTF -DWAITINT -DZONEINFO -DPOPSERVICE='"pop"' -DAPOP -DJAPAN -DMH_PLUS -DMIME -DMIME_HEADERS -DMORE='"/usr/local/bin/jless"' -DNNTP -DMAILGROUP -DSENDMTS -DSMTP -DPOP -DSPRINTFTYPE=int -DTYPESIG=void -O -I..
+LDOPTIONS=	-Wl,-S
+LDOPTLIB=	-ltermcap
+
+CC      =	gcc
+CPP     =	gcc -E
+LN	=	ln
+LEX	=	lex -nt
+CFLAGS  =	$(OPTIONS)
+LINT	=	lint
+LFLAGS	=	-bhu $(OPTIONS)
+LLIBS	=
+LDFLAGS =	$(LDOPTIONS)
+LIBES   =
+LDLIBS	=	$(LIBES) $(LDOPTLIB)
+
+OFILES	=	dtimep.o lexstring.o dtime.o
+LFILES	= 	l-dtimep l-dtime l-date
+
+.c:;		echo $@
+
+######################################################################
+#	Here it is...
+######################################################################
+
+all:		$(OFILES) date
+
+lint:		$(LFILES)
+
+install:	inst-all clean
+
+inst-all:;
+
+tar:;
+
+uninstall:;
+
+
+######################################################################
+# date
+######################################################################
+
+date:		date.o dtime.o $(LIBES)
+		$(CC) $(LDFLAGS) -o $@ date.o dtime.o $(LDLIBS)
+
+l-date:;	$(LINT) $(LFLAGS) date.c dtime.c $(LLIBS)
+
+
+######################################################################
+# dtimep
+######################################################################
+
+
+dtimep:		dtimep.o lexstring.o
+
+dtimep.o:	dtimep.c
+
+dtimep.c:	dtimep.lex
+		$(LEX) dtimep.lex | sed -f lexedit.sed > dtimep.c
+		-@len=`wc -l dtimep.c | awk ' { print $$1 } '`; \
+		if [ $$len -gt 500 ]; \
+		then exit 0; \
+		else echo "lex failed: using pre-lexed dtimep.c"; \
+		    cp dtimep.c-lexed dtimep.c; \
+		fi
+
+lexstring.o:	lexstring.c
+		$(CC) $(CFLAGS) -c -DONECASE lexstring.c
+
+l-dtimep:;	$(LINT) $(LFLAGS) dtimep.c -DONECASE lexstring.c $(LLIBS)
+
+
+######################################################################
+# dtime
+######################################################################
+
+dtime:		dtime.o
+
+l-dtime:;	$(LINT) $(LFLAGS) dtime.c $(LLIBS)
+
+
+##############################################################################
+#	Miscellaneous tasks
+##############################################################################
+
+tws.h:		../tws.h
+		rm -f $@
+		$(LN) ../tws.h $@
+
+unconfig:	distribution
+		-rm -f Makefile
+
+distribution:   clean
+
+clean:		unclean
+		-rm -f dtimep.c *.o date
+
+unclean:;	-rm -f _* :* core *.core eddep makedep
+
+
+##############################################################################
+#	Dependencies
+##############################################################################
+
+MODULES	=	date dtime dtimep
+
+depend:
+		for m in $(MODULES); do ( \
+		    if test -f $$m.c; \
+			then $(CPP) -M $(OPTIONS) $$m.c >> makedep; \
+			else echo "$$m.o: $$m.c" >> makedep; \
+		    fi \
+		); done
+		echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
+		echo '$$r makedep' >> eddep
+		echo 'w' >> eddep
+		cp Makefile _Makefile
+		ed - Makefile < eddep
+		rm eddep makedep
+		echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
+		echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
+
+# DO NOT DELETE THIS LINE
+# DEPENDENCIES START HERE
+date.o: date.c
+date.o: ../tws.h
+#date.o: /usr/include/stdio.h
+dtime.o: dtime.c
+dtime.o: ../tws.h
+dtime.o: ../../h/strings.h
+#dtime.o: /usr/include/stdio.h
+#dtime.o: /usr/include/sys/types.h
+#dtime.o: /usr/include/sys/sysmacros.h
+#dtime.o: /usr/include/sys/timeb.h
+#dtime.o: /usr/include/time.h
+dtimep.o: dtimep.c
+#dtimep.o: /usr/include/stdio.h
+dtimep.o: ../tws.h
+dtimep.o: ../../h/strings.h
+#dtimep.o: /usr/include/ctype.h
+#dtimep.o: /usr/include/sys/types.h
+#dtimep.o: /usr/include/sys/sysmacros.h
+#dtimep.o: /usr/include/sys/timeb.h
+#dtimep.o: /usr/include/time.h
+# DEPENDENCIES MUST END AT END OF FILE
+# IF YOU PUT STUFF HERE IT WILL GO AWAY