Mercurial > hg > Applications > mh
diff zotnet/mf/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/mf/Makefile Mon Apr 18 23:46:02 2005 +0900 @@ -0,0 +1,216 @@ +############################################################################## +# 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 +REMOVE = mv -f + +CC = gcc +CPP = gcc -E +CFLAGS = $(OPTIONS) +LDFLAGS = $(LDOPTIONS) +LIBES = ../mts/mts.o ../mts/lock.o +TWSLIB = ../tws/dtime.o ../tws/dtimep.o +LINT = lint +LFLAGS = -bhu $(OPTIONS) +LLIBS = + +.c:; echo $@ + +###################################################################### +# Here it is... +###################################################################### + +all: mf.o $(ALL) $(OFILES) + +lint: l-mf + +install: inst-all clean + +inst-all: $(INST-ALL) + +tar: $(ALL) + +uninstall:; + + +###################################################################### +# uminc +###################################################################### + +inst-uminc: $(ETCDIR)/uminc + +$(ETCDIR)/uminc: xuminc + -$(REMOVE) $(ETCDIR)/uminc zuminc + cp xuminc $@ + -@ls -l $@ + -@echo "" + +uminc: xuminc + +xuminc: uminc.o uumm.o mf.o $(TWSLIB) $(LIBES) + $(CC) $(LDFLAGS) -o $@ uminc.o uumm.o mf.o $(TWSLIB) $(LIBES) + + +###################################################################### +# umsift +###################################################################### + +inst-umsift: $(ETCDIR)/umsift + +$(ETCDIR)/umsift: xumsift + -$(REMOVE) $(ETCDIR)/umsift zumsift + cp xumsift $@ + -@ls -l $@ + -@echo "" + +umsift: xumsift + +xumsift: umsift.o uumm.o mf.o $(TWSLIB) $(LIBES) + $(CC) $(LDFLAGS) -o $@ umsift.o uumm.o mf.o $(TWSLIB) $(LIBES) + + +###################################################################### +# uumm +###################################################################### + +uumm: uumm.o + + +###################################################################### +# muinc +###################################################################### + +inst-muinc: $(ETCDIR)/muinc + +$(ETCDIR)/muinc: xmuinc + -$(REMOVE) $(ETCDIR)/muinc zmuinc + cp xmuinc $@ + -@ls -l $@ + -@echo "" + +muinc: xmuinc + +xmuinc: muinc.o mmuu.o mf.o $(TWSLIB) $(LIBES) + $(CC) $(LDFLAGS) -o $@ muinc.o mmuu.o mf.o $(TWSLIB) $(LIBES) + + +#################################################################### +# musift +###################################################################### + +inst-musift: $(ETCDIR)/musift + +$(ETCDIR)/musift: xmusift + -$(REMOVE) $(ETCDIR)/musift zmusift + cp xmusift $@ + -@ls -l $@ + -@echo "" + +musift: xmusift + +xmusift: musift.o mmuu.o mf.o $(TWSLIB) $(LIBES) + $(CC) $(LDFLAGS) -o $@ musift.o mmuu.o mf.o $(TWSLIB) $(LIBES) + + +###################################################################### +# mmuu +###################################################################### + +mmuu: mmuu.o + + +###################################################################### +# mf +###################################################################### + +mf: mf.o + +l-mf:; $(LINT) $(LFLAGS) mf.c $(LLIBS) + + +############################################################################## +# Miscellaneous tasks +############################################################################## + +unconfig: distribution + -rm -f Makefile + +distribution: clean + +clean: unclean + -rm -f x* *.o + +unclean:; -rm -f z* _* :* core *.core eddep makedep MAKEMF + + +############################################################################## +# Dependencies +############################################################################## + +MODULES = uminc umsift uumm muinc musift mmuu mf + +depend: + for m in $(MODULES); do ( \ + $(CPP) -M $(OPTIONS) $$m.c >> makedep \ + ); 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 +uminc.o: uminc.c +uminc.o: mf.h +#uminc.o: /usr/include/stdio.h +uminc.o: ../mts/mts.h +#uminc.o: /usr/include/errno.h +#uminc.o: /usr/include/sys/types.h +#uminc.o: /usr/include/sys/stat.h +umsift.o: umsift.c +umsift.o: mf.h +#umsift.o: /usr/include/stdio.h +uumm.o: uumm.c +uumm.o: mf.h +uumm.o: ../tws/tws.h +#uumm.o: /usr/include/stdio.h +uumm.o: ../mts/mts.h +#uumm.o: /usr/include/ctype.h +#uumm.o: /usr/include/sys/types.h +#uumm.o: /usr/include/sys/stat.h +muinc.o: muinc.c +muinc.o: mf.h +#muinc.o: /usr/include/stdio.h +muinc.o: ../mts/mts.h +#muinc.o: /usr/include/errno.h +#muinc.o: /usr/include/sys/types.h +#muinc.o: /usr/include/sys/stat.h +musift.o: musift.c +musift.o: mf.h +#musift.o: /usr/include/stdio.h +mmuu.o: mmuu.c +mmuu.o: mf.h +mmuu.o: ../tws/tws.h +#mmuu.o: /usr/include/stdio.h +mmuu.o: ../mts/mts.h +#mmuu.o: /usr/include/ctype.h +#mmuu.o: /usr/include/sys/types.h +#mmuu.o: /usr/include/sys/stat.h +mf.o: mf.c +mf.o: mf.h +#mf.o: /usr/include/ctype.h +#mf.o: /usr/include/stdio.h +# DEPENDENCIES MUST END AT END OF FILE +# IF YOU PUT STUFF HERE IT WILL GO AWAY