Start development on 386BSD 0.0
[unix-history] / .ref-BSD-4_3_Net_2 / usr / src / contrib / isode / ronot / Makefile
CommitLineData
d626f7a5
C
1###############################################################################
2# Instructions to Make, for compilation of ISODE RONOT library
3###############################################################################
4
5###############################################################################
6#
7# $Header: /f/osi/ronot/RCS/Makefile,v
8#
9#
10# $Log: Makefile,v $
11# Revision 7.4 91/02/22 09:50:24 mrose
12# Interim 6.8
13#
14# Revision 7.3 90/12/23 18:43:34 mrose
15# update
16#
17# Revision 7.2 90/10/29 18:38:30 mrose
18# updates
19#
20# Revision 7.1 90/07/27 09:06:30 mrose
21# update
22#
23# Revision 7.0 90/07/26 14:28:24 mrose
24# *** empty log message ***
25#
26# Revision 7.1 90/03/06 13:56:28 mrose
27# touch-up
28#
29# Revision 7.0 89/11/23 21:48:06 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
46PEPYPATH= -DPEPYPATH
47
48LIBES = libronot.a
49LLIBS = $(TOPDIR)llib-lrosap $(TOPDIR)llib-lacsap $(TOPDIR)llib-lcompat
50HFILES = $(HDIR)ronot.h $(HDIR)rosap.h $(HDIR)acsap.h \
51 $(HDIR)psap2.h $(HDIR)psap.h $(HDIR)ssap.h $(HDIR)isoaddrs.h \
52 $(HDIR)manifest.h $(HDIR)general.h $(HDIR)config.h
53
54
55#############################################################
56# Here it is...
57#############################################################
58
59all: libronot
60inst-all: # inst-libronot
61install: inst-all clean
62lint: l-libronot
63
64
65#############################################################
66# libronot
67#############################################################
68
69PYFILES = ronot.py
70
71CFILES = ronotbind1.c ronotbind2.c ronotunbind1.c \
72 ronotunbind2.c ronotabort.c ronotlose.c RONOT_tables.c
73
74OFILES = ronotbind1.o ronotbind2.o ronotunbind1.o \
75 ronotunbind2.o ronotabort.o ronotlose.o RONOT_tables.o
76
77inst-libronot: $(LIBDIR)libronot.a $(LINTDIR)llib-lronot
78
79$(LIBDIR)libronot.a: libronot.a
80 -rm -f $@
81 cp libronot.a $@
82 @$(UTILDIR)make-lib.sh $(SYSTEM) $@ -ranlib
83 -@ls -gls $@
84 -@echo ""
85
86$(LINTDIR)llib-lronot: llib-lronot
87 -cp $@ zllib-lronot
88 -rm -f $@
89 sed -e 's%#include "\(.*\)"%#include "$(INCDIR)\1"%' \
90 < llib-lronot | \
91 sed -e 's%#include "/usr/include/\(.*\)"%#include <\1>%' > $@
92 @$(UTILDIR)inst-lint.sh $(SYSTEM) $(OPTIONS) $@
93 -@ls -gls $@ $@.ln
94 -@echo ""
95
96libronot: libronot.a
97
98libronot.a: ronotvrsn.o
99 -rm -f $@
100 @$(UTILDIR)make-lib.sh $(SYSTEM) $(ARFLAGS) $@ $(OFILES) \
101 ronotvrsn.o
102 -@rm -f $(TOPDIR)libronot.a $(TOPDIR)llib-lronot
103 -@$(LN) libronot.a $(TOPDIR)libronot.a
104 -@$(LN) llib-lronot $(TOPDIR)llib-lronot
105 -@ls -l $@
106 -@echo "RO-notation library built normally"
107
108ronotvrsn.c: $(OFILES)
109 @$(UTILDIR)version.sh ronot > $@
110
111l-libronot: true
112 $(LINT) $(LFLAGS) $(CFILES) ronotvrsn.c $(LLIBS) \
113 | grep -v "warning: possible pointer alignment problem"
114
115
116RONOT_tables.o: RONOT_tables.c RONOT-types.h
117
118RONOT_tables.c RONOT-types.h: ronot.py $(TOPDIR)pepsy/xpepsy
119 $(TOPDIR)pepsy/xpepsy -A -f -h -m ronot.py
120
121
122#############################################################
123# clean
124#############################################################
125
126clean:; rm -f *.o *.a *.ph RONOT* z* _* core ronotvrsn.c
127
128grind:; iprint Makefile
129 tgrind -lc $(CFILES) ronotvrsn.c llib-lronot
130 tgrind -lpepy -d $(TOPDIR)pepy/grindefs $(PYFILES)
131 @echo $(MANUALS) | \
132 tr " " "\012" | \
133 sed -e "s%.*%itroff -man &%" | \
134 sh -ve
135
136true:;
137
138# DO NOT DELETE THIS LINE
139# Dependencies follow
140ronotabort.o: $(HDIR)tailor.h $(HDIR)logger.h $(HFILES)
141ronotbind1.o: $(HDIR)tailor.h $(HDIR)logger.h RONOT-types.h $(HFILES)
142ronotbind2.o: $(HDIR)tailor.h $(HDIR)logger.h RONOT-types.h $(HFILES)
143ronotlose.o: $(HDIR)tailor.h $(HDIR)logger.h $(HFILES)
144ronotunbind1.o: $(HDIR)tailor.h $(HDIR)logger.h RONOT-types.h $(HFILES)
145ronotunbind2.o: $(HDIR)tailor.h $(HDIR)logger.h RONOT-types.h $(HFILES)