Commit | Line | Data |
---|---|---|
11492ebf C |
1 | ############################################################################### |
2 | # Instructions to Make, for compilation of ISODE QUIPU DSA configurator | |
3 | ############################################################################### | |
4 | ||
5 | ############################################################################### | |
6 | # | |
7 | # $Header: /f/osi/others/quipu/tools/dsaconfig/RCS/Makefile,v 7.6 91/02/22 09:29:39 mrose Interim $ | |
8 | # | |
9 | # | |
10 | # $Log: Makefile,v $ | |
11 | # Revision 7.6 91/02/22 09:29:39 mrose | |
12 | # Interim 6.8 | |
13 | # | |
14 | # Revision 7.5 91/02/12 22:54:07 mrose | |
15 | # dsaptailor.root-dsas | |
16 | # | |
17 | # Revision 7.4 90/12/23 23:42:29 mrose | |
18 | # one-more-time | |
19 | # | |
20 | # Revision 7.3 90/12/23 18:47:16 mrose | |
21 | # update | |
22 | # | |
23 | # Revision 7.2 90/08/29 15:08:55 mrose | |
24 | # update | |
25 | # | |
26 | # Revision 7.1 90/07/09 14:40:38 mrose | |
27 | # sync | |
28 | # | |
29 | # Revision 7.0 89/11/23 22:02:36 mrose | |
30 | # Release 6.0 | |
31 | # | |
32 | ############################################################################### | |
33 | ||
34 | ############################################################################### | |
35 | # | |
36 | # NOTICE | |
37 | # | |
38 | # Acquisition, use, and distribution of this module and related | |
39 | # materials are subject to the restrictions of a license agreement. | |
40 | # Consult the Preface in the User's Manual for the full terms of | |
41 | # this agreement. | |
42 | # | |
43 | ############################################################################### | |
44 | ||
45 | ||
46 | ############################################################################### | |
47 | # Generation Rules for program modules | |
48 | ############################################################################### | |
49 | ||
50 | .c.o:; $(CC) $(CFLAGS) -c $*.c | |
51 | ||
52 | ||
53 | ############################################################################### | |
54 | # Programs and Libraries | |
55 | ############################################################################### | |
56 | ||
57 | LIBES = $(TOPDIR)libisode.a $(TOPDIR)quipu/quipuvrsn.o | |
58 | LLIBS = $(TOPDIR)llib-lisode | |
59 | ||
60 | ||
61 | ############################################################################### | |
62 | # FILES | |
63 | ############################################################################### | |
64 | ||
65 | CFILES = dsaconfig.c | |
66 | ||
67 | ||
68 | ############################################################## | |
69 | # Here it is... | |
70 | ############################################################## | |
71 | ||
72 | all: dsaconfig | |
73 | inst-all: inst-pilot inst-dsaconfig manuals | |
74 | install: inst-all clean | |
75 | lint: l-dsaconfig | |
76 | ||
77 | ||
78 | ################################################################### | |
79 | # pilot | |
80 | ################################################################### | |
81 | ||
82 | inst-pilot: $(ETCDIR)dsaptailor true | |
83 | cp -r quipu $(ETCDIR) | |
84 | ||
85 | $(ETCDIR)dsaptailor: true | |
86 | if ln $(ETCDIR)dsaptailor $(ETCDIR)dsaptailor.old; \ | |
87 | then rm -f $@; cat dsaptailor $(TOPDIR)dsap/dsaptailor.root-dsas > $@; ls -gls $@; \ | |
88 | else exit 0; \ | |
89 | fi | |
90 | ||
91 | ||
92 | ################################################################### | |
93 | # dsaconfig | |
94 | ################################################################### | |
95 | ||
96 | inst-dsaconfig: $(SBINDIR)dsaconfig | |
97 | ||
98 | $(SBINDIR)dsaconfig: xdsaconfig | |
99 | -cp $@ zxdsaconfig | |
100 | -rm -f $@ | |
101 | cp xdsaconfig $@ | |
102 | -@ls -gls $@ | |
103 | -@echo "" | |
104 | ||
105 | dsaconfig: xdsaconfig | |
106 | ||
107 | xdsaconfig: dsaconfig.o $(LIBES) | |
108 | $(LDCC) $(LDFLAGS) -o $@ dsaconfig.o $(LIBES) $(LSOCKET) | |
109 | ||
110 | l-dsaconfig:; $(LINT) $(LFLAGS) dsaconfig.c $(LLIBS) \ | |
111 | | grep -v "warning: possible pointer alignment problem" | |
112 | ||
113 | ||
114 | ################################################################ | |
115 | # manual pages | |
116 | ################################################################ | |
117 | ||
118 | MANUALS = dsaconfig.8 | |
119 | ||
120 | manuals:; @$(UTILDIR)inst-man.sh $(MANOPTS) $(MANUALS) | |
121 | -@echo "" | |
122 | ||
123 | ||
124 | ############################################################## | |
125 | # clean | |
126 | ############################################################## | |
127 | ||
128 | clean:; rm -f *.ph *.o *.a a.out _* x* z* *.orig core | |
129 | ||
130 | grind:; iprint Makefile | |
131 | tgrind -lc $(CFILES) | |
132 | @echo $(MANUALS) | \ | |
133 | tr " " "\012" | \ | |
134 | sed -e "s%.*%itroff -man &%" | \ | |
135 | sh -ve | |
136 | ||
137 | true:; |