CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDE) LDFLAGS = -g SED = sed INSTALLFILE = cp 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 includes # The realm 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:: $(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) $(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