Commit | Line | Data |
---|---|---|
c54994d8 WJ |
1 | ############################################################################### |
2 | # Instructions to Make, for compilation of ISODE header files | |
3 | ############################################################################### | |
4 | ||
5 | ############################################################################### | |
6 | # | |
7 | # $Header: /f/osi/h/RCS/Makefile,v 7.4 91/02/22 09:24:29 mrose Interim $ | |
8 | # | |
9 | # | |
10 | # $Log: Makefile,v $ | |
11 | # Revision 7.4 91/02/22 09:24:29 mrose | |
12 | # Interim 6.8 | |
13 | # | |
14 | # Revision 7.3 90/10/17 11:45:43 mrose | |
15 | # sync | |
16 | # | |
17 | # Revision 7.2 90/07/01 21:03:45 mrose | |
18 | # pepsy | |
19 | # | |
20 | # Revision 7.1 89/12/19 16:18:00 mrose | |
21 | # dgram | |
22 | # | |
23 | # Revision 7.0 89/11/23 21:55:36 mrose | |
24 | # Release 6.0 | |
25 | # | |
26 | ############################################################################### | |
27 | ||
28 | ############################################################################### | |
29 | # | |
30 | # NOTICE | |
31 | # | |
32 | # Acquisition, use, and distribution of this module and related | |
33 | # materials are subject to the restrictions of a license agreement. | |
34 | # Consult the Preface in the User's Manual for the full terms of | |
35 | # this agreement. | |
36 | # | |
37 | ############################################################################### | |
38 | ||
39 | ||
40 | DIRS = quipu | |
41 | ||
42 | HEADERS = config.h \ | |
43 | sys.dirent.h usr.dirent.h \ | |
44 | general.h manifest.h isoaddrs.h \ | |
45 | internet.h x25.h tp4.h dgram.h \ | |
46 | cmd_srch.h isoservent.h logger.h tailor.h \ | |
47 | mpkt.h \ | |
48 | tpkt.h tsap.h \ | |
49 | spkt.h ssap.h \ | |
50 | pepsy.h \ | |
51 | ppkt.h psap2.h psap.h \ | |
52 | acpkt.h acsap.h \ | |
53 | rtpkt.h rtsap.h \ | |
54 | ropkt.h rosap.h \ | |
55 | ronot.h \ | |
56 | rosy.h | |
57 | ||
58 | FHEADERS= fpkt.h ftam.h | |
59 | ||
60 | ||
61 | ################################################################## | |
62 | # Here it is... | |
63 | ################################################################## | |
64 | ||
65 | all:; | |
66 | ||
67 | inst-all:; -mkdir $(INCDIRM) | |
68 | @for h in $(HEADERS); do $(MAKE) TARGET=$$h inst-target; done | |
69 | ||
70 | inst-ftam:; @for h in $(FHEADERS); do $(MAKE) TARGET=$$h inst-target; done | |
71 | ||
72 | inst-target: $(INCDIR)$(TARGET) | |
73 | ||
74 | $(INCDIR)$(TARGET): $(TARGET) | |
75 | -cp $@ z$(TARGET) | |
76 | sed -e 's%#include "\([^/]*\)"%#include "$(INCDIR)\1"%' \ | |
77 | < $(TARGET) | \ | |
78 | sed -e 's%#include "/usr/include/\(.*\)"%#include <\1>%' > $@ | |
79 | -@ls -gls $@ | |
80 | -@echo "" | |
81 | ||
82 | install: inst-all clean | |
83 | ||
84 | lint:; | |
85 | ||
86 | clean:; rm -f z* _* | |
87 | @for i in $(DIRS); \ | |
88 | do (echo "cd $$i; $(MAKE) clean"; \ | |
89 | cd $$i; $(MAKE) clean); \ | |
90 | done | |
91 | ||
92 | grind:; tgrind -lc $(HEADERS) | |
93 | @for i in $(DIRS); \ | |
94 | do (echo "cd $$i; $(MAKE) grind"; \ | |
95 | cd $$i; $(MAKE) grind); \ | |
96 | done |