blob: ae022240c52b2e8a0fd3c995e838de59ee85cbd5 (
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
|
BUILDTOP=@BUILDTOP@
srcdir = @srcdir@
VPATH = @srcdir@
DEFS = @DEFS@
LIBS = @LIBS@
CFLAGS = -g $(DEFS) $(LOCALINCLUDE)
LDFLAGS = -g
LEX = @LEX@
LEXLIB = @LEXLIB@
ARCHIVE = @ARCHIVE@
RANLIB = @RANLIB@
RM = rm -f
all::
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)
#
# what to build...
#
#
# rules
#
error_table.o: et_lex.lex.c
#
# real entries...
#
all:: compile_et
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
clean::
$(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:: libcom_err.a
libcom_err.a: $(LIBOBJS)
$(RM) $@.bak
-mv $@ $@.bak
$(ARCHIVE) $@ $(LIBOBJS)
$(RANLIB) $@
clean::
$(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::
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
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
|