comparison zotnet/tws/Makefile @ 0:bce86c4163a3

Initial revision
author kono
date Mon, 18 Apr 2005 23:46:02 +0900
parents
children f89a9a79e124
comparison
equal deleted inserted replaced
-1:000000000000 0:bce86c4163a3
1 ##############################################################################
2 # Instructions to Make, for compilation of ZOT UIP/utility processes
3 #
4 # This file is automatically generated. Do not edit!
5 # @(#)$Id$
6 ##############################################################################
7
8 # The following entries were inserted during MH configuration
9 BINDIR = $(DESTDIR)/usr/local/mh/bin
10 ETCDIR = $(DESTDIR)/usr/local/mh/lib
11 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..
12 LDOPTIONS= -Wl,-S
13 LDOPTLIB= -ltermcap
14
15 CC = gcc
16 CPP = gcc -E
17 LN = ln
18 LEX = lex -nt
19 CFLAGS = $(OPTIONS)
20 LINT = lint
21 LFLAGS = -bhu $(OPTIONS)
22 LLIBS =
23 LDFLAGS = $(LDOPTIONS)
24 LIBES =
25 LDLIBS = $(LIBES) $(LDOPTLIB)
26
27 OFILES = dtimep.o lexstring.o dtime.o
28 LFILES = l-dtimep l-dtime l-date
29
30 .c:; echo $@
31
32 ######################################################################
33 # Here it is...
34 ######################################################################
35
36 all: $(OFILES) date
37
38 lint: $(LFILES)
39
40 install: inst-all clean
41
42 inst-all:;
43
44 tar:;
45
46 uninstall:;
47
48
49 ######################################################################
50 # date
51 ######################################################################
52
53 date: date.o dtime.o $(LIBES)
54 $(CC) $(LDFLAGS) -o $@ date.o dtime.o $(LDLIBS)
55
56 l-date:; $(LINT) $(LFLAGS) date.c dtime.c $(LLIBS)
57
58
59 ######################################################################
60 # dtimep
61 ######################################################################
62
63
64 dtimep: dtimep.o lexstring.o
65
66 dtimep.o: dtimep.c
67
68 dtimep.c: dtimep.lex
69 $(LEX) dtimep.lex | sed -f lexedit.sed > dtimep.c
70 -@len=`wc -l dtimep.c | awk ' { print $$1 } '`; \
71 if [ $$len -gt 500 ]; \
72 then exit 0; \
73 else echo "lex failed: using pre-lexed dtimep.c"; \
74 cp dtimep.c-lexed dtimep.c; \
75 fi
76
77 lexstring.o: lexstring.c
78 $(CC) $(CFLAGS) -c -DONECASE lexstring.c
79
80 l-dtimep:; $(LINT) $(LFLAGS) dtimep.c -DONECASE lexstring.c $(LLIBS)
81
82
83 ######################################################################
84 # dtime
85 ######################################################################
86
87 dtime: dtime.o
88
89 l-dtime:; $(LINT) $(LFLAGS) dtime.c $(LLIBS)
90
91
92 ##############################################################################
93 # Miscellaneous tasks
94 ##############################################################################
95
96 tws.h: ../tws.h
97 rm -f $@
98 $(LN) ../tws.h $@
99
100 unconfig: distribution
101 -rm -f Makefile
102
103 distribution: clean
104
105 clean: unclean
106 -rm -f dtimep.c *.o date
107
108 unclean:; -rm -f _* :* core *.core eddep makedep
109
110
111 ##############################################################################
112 # Dependencies
113 ##############################################################################
114
115 MODULES = date dtime dtimep
116
117 depend:
118 for m in $(MODULES); do ( \
119 if test -f $$m.c; \
120 then $(CPP) -M $(OPTIONS) $$m.c >> makedep; \
121 else echo "$$m.o: $$m.c" >> makedep; \
122 fi \
123 ); done
124 echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
125 echo '$$r makedep' >> eddep
126 echo 'w' >> eddep
127 cp Makefile _Makefile
128 ed - Makefile < eddep
129 rm eddep makedep
130 echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
131 echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
132
133 # DO NOT DELETE THIS LINE
134 # DEPENDENCIES START HERE
135 date.o: date.c
136 date.o: ../tws.h
137 #date.o: /usr/include/stdio.h
138 dtime.o: dtime.c
139 dtime.o: ../tws.h
140 dtime.o: ../../h/strings.h
141 #dtime.o: /usr/include/stdio.h
142 #dtime.o: /usr/include/sys/types.h
143 #dtime.o: /usr/include/sys/sysmacros.h
144 #dtime.o: /usr/include/sys/timeb.h
145 #dtime.o: /usr/include/time.h
146 dtimep.o: dtimep.c
147 #dtimep.o: /usr/include/stdio.h
148 dtimep.o: ../tws.h
149 dtimep.o: ../../h/strings.h
150 #dtimep.o: /usr/include/ctype.h
151 #dtimep.o: /usr/include/sys/types.h
152 #dtimep.o: /usr/include/sys/sysmacros.h
153 #dtimep.o: /usr/include/sys/timeb.h
154 #dtimep.o: /usr/include/time.h
155 # DEPENDENCIES MUST END AT END OF FILE
156 # IF YOU PUT STUFF HERE IT WILL GO AWAY