|
|
1.1 root 1: ###############################################################################
2: # Instructions to Make, for compilation of UFN interface
3: ###############################################################################
4:
5: ###############################################################################
6: #
7: # $Header: /f/osi/others/quipu/uips/ufn/RCS/Makefile,v 7.2 90/07/09 14:42:31 mrose Exp $
8: #
9: #
10: # $Log: Makefile,v $
11: # Revision 7.2 90/07/09 14:42:31 mrose
12: # sync
13: #
14: # Revision 7.1 90/06/13 18:55:44 mrose
15: # update
16: #
17: # Revision 7.0 90/06/13 18:52:39 mrose
18: # *** empty log message ***
19: #
20: ###############################################################################
21:
22: ###############################################################################
23: #
24: # NOTICE
25: #
26: # Acquisition, use, and distribution of this module and related
27: # materials are subject to the restrictions of a license agreement.
28: # Consult the Preface in the User's Manual for the full terms of
29: # this agreement.
30: #
31: ###############################################################################
32:
33:
34: ###############################################################################
35: # Generation Rules for program modules
36: ###############################################################################
37:
38: .c.o:; $(CC) $(CFLAGS) -c $*.c
39:
40:
41: ###############################################################################
42: # Programs and Libraries
43: ###############################################################################
44:
45: LIBES = $(TOPDIR)libdsap.a $(TOPDIR)libisode.a
46: LLIBS = $(TOPDIR)llib-ldsap $(TOPDIR)llib-lisode
47:
48:
49: ###############################################################################
50: # FILES
51: ###############################################################################
52:
53: CFILES = ufn_main.c
54:
55:
56: ##############################################################
57: # Here it is...
58: ##############################################################
59:
60: all: ufn
61: inst-all: inst-ufn inst-ufnrc manuals
62: install: inst-all clean
63: lint: l-ufn
64:
65:
66: ###################################################################
67: # ufn
68: ###################################################################
69:
70: inst-ufn: $(BINDIR)ufn
71:
72: $(BINDIR)ufn: xufn
73: -cp $@ zxufn
74: -rm -f $@
75: cp xufn $@
76: -@ls -gls $@
77: -@echo ""
78:
79: ufn: xufn
80:
81: xufn: ufn_main.o pipe.o socket.o $(LIBES)
82: $(LDCC) $(LDFLAGS) -o $@ ufn_main.o pipe.o socket.o \
83: $(LIBES) $(LSOCKET)
84:
85: l-ufn:; $(LINT) $(LFLAGS) ufn_main.c pipe.c ../dish/socket.c $(LLIBS)
86:
87: socket.o: ../dish/socket.c
88: $(CC) $(CFLAGS) -c ../dish/socket.c
89:
90:
91: ###################################################################
92: # ufnrc
93: ###################################################################
94:
95: inst-ufnrc: $(ETCDIR)ufnrc
96:
97: $(ETCDIR)ufnrc: true
98: if [ -s $@ ]; \
99: then exit 0; \
100: else cp ufnrc $@; ls -gls $@; \
101: fi
102: if ln $(ETCDIR)ufnrc $(ETCDIR)ufnrc.old; \
103: then rm -f $@ ; cp ufnrc $@; ls -gls $@; \
104: else exit 0; \
105: fi
106:
107:
108: ################################################################
109: # manual pages
110: ################################################################
111:
112: MANUALS = ufn.1c
113:
114: manuals:; @$(UTILDIR)inst-man.sh $(MANOPTS) $(MANUALS)
115: -@echo ""
116:
117:
118: ##############################################################
119: # clean
120: ##############################################################
121:
122: clean:; rm -f *.ph *.o *.a a.out _* x* z* *.orig core
123:
124: grind:; iprint Makefile ufnrc
125: tgrind -lc $(CFILES)
126: @echo $(MANUALS) | \
127: tr " " "\012" | \
128: sed -e "s%.*%itroff -man &%" | \
129: sh -ve
130:
131: true:;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.