blob: 57247c8a3d3c9a3d979becaa9d6817ca60576095 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDE)
LDFLAGS = -g
SED = sed
##DOSBUILDTOP = ..\..
##DOSLIBNAME=comerr.lib
##DOS!include $(BUILDTOP)\config\windows.in
INSTALLFILE = cp
LINTFLAGS=-uhvb
LINTFILES= error_message.c et_name.c init_et.c com_err.c
LIBOBJS= error_message.o et_name.o init_et.o com_err.o
# for et_lex.lex.c include in error_table.y
LOCALINCLUDE=-I. -I$(srcdir)
FILES= Makefile et_name.c error_message.c compile_et.c \
et_lex.lex.l error_table.y init_et.c \
com_err.c com_err.h \
error_table.h mit-sipb-copyright.h \
test_et.c test1.et test2.et \
compiler.h internal.h \
com_err.texinfo texinfo.tex
CFILES= compile_et.c error_table.c error_message.c et_name.c \
init_et.c com_err.c
SRCS=$(CFILES)
all:: all-$(WHAT)
all-windows: com_err.obj error_message.obj et_name.obj
#
# what to build...
#
#
# rules
#
error_table.o: et_lex.lex.c
# solaris make loses on com_err.c but not on init_et.c, but this helps
com_err.o: com_err.c
#
# real entries...
#
all-unix:: compile_et includes
# The real compile_et just isn't portable. (But then again, anything using
# lex and yacc isn't portable by definition. :-( )
#
#compile_et: compile_et.o error_table.o
# $(CC) $(CFLAGS) -o $@ compile_et.o error_table.o $(LEXLIB) $(BSDLIB)
#
#install::
# $(INSTALLPROG) compile_et $(DESTDIR)$(PROGDIR)/compile_et
compile_et: $(srcdir)/compile_et.sh $(srcdir)/config_script
$(srcdir)/config_script $(srcdir)/compile_et.sh $(AWK) $(SED) > compile_et
chmod 755 compile_et
et_c.awk: $(srcdir)/et_c.awk
$(CP) $(srcdir)/et_c.awk et_c.awk
et_h.awk: $(srcdir)/et_h.awk
$(CP) $(srcdir)/et_h.awk et_h.awk
clean:: clean-$(WHAT)
clean-unix::
$(RM) compile_et compile_et.o error_table.o
depend::
install:: com_err.h
$(INSTALLFILE) $(srcdir)/com_err.h $(DESTDIR)$(INCLDIR)/com_err.h
install:: mit-sipb-copyright.h
$(INSTALLFILE) $(srcdir)/mit-sipb-copyright.h $(DESTDIR)$(INCLDIR)/mit-sipb-copyright.h
install:: com_err.3
$(INSTALLFILE) $(srcdir)/com_err.3 $(DESTDIR)$(MANDIR)/man3/com_err.3
install:: compile_et.1
$(INSTALLFILE) $(srcdir)/compile_et.1 $(DESTDIR)$(MANDIR)/man1/compile_et.1
## install_library_target(com_err,$(LIBOBJS),$(LINTFILES),)
all-unix:: libcom_err.a
libcom_err.a: $(LIBOBJS)
$(ARCHIVE) $@ $(LIBOBJS)
$(RANLIB) $@
clean-unix::
$(RM) libcom_err.a
$(RM) $(LIBOBJS)
install::
$(INSTALLLIB) libcom_err.a $(DESTDIR)$(LIBDIR)/libcom_err.a
$(CHMOD) 644 $(DESTDIR)$(LIBDIR)/libcom_err.a
$(RANLIB) $(DESTDIR)$(LIBDIR)/libcom_err.a
$(CHMOD) 444 $(DESTDIR)$(LIBDIR)/libcom_err.a
##
clean-unix::
rm -f *~ \#* *.bak \
*.otl *.aux *.toc *.PS *.dvi *.x9700 *.ps \
*.cp *.fn *.ky *.log *.pg *.tp *.vr \
*.o profiled/?*.o libcom_err.a libcom_err_p.a \
com_err.o compile_et \
et.ar TAGS y.tab.c lex.yy.c error_table.c \
et_lex.lex.c \
test1.h test1.c test2.h test2.c test_et \
eddep makedep *.ln
clean-windows::
$(RM) comerr.lib comerr.bak
com_err.ps : com_err.dvi
com_err.dvi: com_err.texinfo
libcom_err.o: $(LIBOBJS)
ld -r -s -o libcom_err.o $(LIBOBJS)
chmod -x libcom_err.o
archive: et.tar
TAGS: et_name.c error_message.c compile_et.c error_table.c \
lex.yy.c init_et.c
etags et_name.c error_message.c compile_et.c \
error_table.c init_et.c
depend:: et_lex.lex.c
|