0
|
1 ##############################################################################
|
|
2 # Instructions to Make, for compilation of ZOT UIP/utility processes
|
|
3 #
|
|
4 # This file is automatically generated. Do not edit!
|
12
|
5 # @(#)$Id: Makefile,v 1.2 2005/04/19 15:25:08 kono Exp $
|
0
|
6 ##############################################################################
|
|
7
|
|
8 # The following entries were inserted during MH configuration
|
3
|
9 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/less"' -DNNTP -DMAILGROUP -DSENDMTS -DSMTP -DPOP -DSPRINTFTYPE=int -DTYPESIG=void -O2 -g
|
0
|
10
|
|
11 CC = gcc
|
|
12 CFLAGS = $(OPTIONS) -I.
|
|
13 LFLAGS = -bhu $(OPTIONS) -I.
|
|
14
|
|
15 LIB = libzot.a
|
|
16 LLIB = llib-lzotnet
|
|
17
|
|
18 OFILES = mts/mts.o mts/lock.o mts/client.o mf/mf.o \
|
|
19 bboards/getbbent.o \
|
|
20 tws/dtime.o tws/dtimep.o tws/lexstring.o
|
|
21
|
|
22 MAKE = make DESTDIR=$(DESTDIR) $(MFLAGS)
|
|
23 SHELL = /bin/sh
|
|
24
|
|
25 DIRS = mts bboards tws mf
|
|
26
|
|
27
|
|
28 ##############################################################################
|
|
29 # Generation Rules
|
|
30 ##############################################################################
|
|
31
|
|
32 .c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
33 -ld -x -r $@
|
|
34 mv a.out $@
|
|
35
|
|
36
|
|
37
|
|
38 .c:; echo $@
|
|
39
|
|
40 ##############################################################################
|
|
41 # Generate ZOTnet subroutine library
|
|
42 ##############################################################################
|
|
43
|
|
44 all: allaux $(LIB)
|
|
45
|
|
46 $(LIB): $(OFILES)
|
|
47 -if [ -f $@ ]; then \
|
|
48 mv $@ z$@; \
|
|
49 fi
|
|
50 ar r $@ $(OFILES); ranlib $@
|
|
51 -@ls -l $@
|
|
52 -@echo "ZOTnet library built normally"
|
|
53
|
|
54 allaux:; for d in $(DIRS); do (cd $$d; $(MAKE) all); done
|
|
55
|
|
56 depend:; for d in $(DIRS); do (cd $$d; $(MAKE) depend); done
|
|
57
|
|
58 lint:; for d in $(DIRS); do (cd $$d; $(MAKE) lint); done
|
|
59
|
|
60
|
|
61 ##############################################################################
|
|
62 # Installation
|
|
63 ##############################################################################
|
|
64
|
|
65 install: inst-all clean
|
|
66
|
|
67 inst-all:; for d in $(DIRS); do (cd $$d; $(MAKE) inst-all); done
|
|
68
|
|
69 tar:; @for d in $(DIRS); \
|
|
70 do (cd $$d; $(MAKE) TFLAGS="$(TFLAGS)" tar); done
|
|
71
|
|
72 uninstall:; for d in $(DIRS); do (cd $$d; $(MAKE) uninstall); done
|
|
73
|
|
74
|
|
75 ##############################################################################
|
|
76 # Miscellaneous tasks
|
|
77 ##############################################################################
|
|
78
|
|
79 unconfig:; -rm -f $(LIB) z$(LIB) _* :* *.o core *.core
|
|
80 for d in $(DIRS); do (cd $$d; $(MAKE) unconfig); done
|
|
81 -rm -f Makefile
|
|
82
|
|
83 distribution:; -rm -f $(LIB) z$(LIB) _* :*
|
|
84 for d in $(DIRS); do (cd $$d; $(MAKE) distribution); done
|
|
85
|
|
86 clean:; -rm -f $(LIB) z$(LIB) _* :* *.o core *.core
|
|
87 for d in $(DIRS); do (cd $$d; $(MAKE) clean); done
|
|
88
|
|
89 unclean:; -rm -f z$(LIB) _* :* core *.core
|
|
90 for d in $(DIRS); do (cd $$d; $(MAKE) unclean); done
|