srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config
+include @TOP_OBJDIR@/src/config/Makefile.lwp
+
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
compile_et: compile_et.o error_table.o
case $(SYS_NAME) in \
*_linux* | *_umlinux* ) \
- ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o -L${TOP_LIBDIR} -lafsutil;; \
+ $(AFS_LDRULE) compile_et.o error_table.o -L${TOP_LIBDIR} -lafsutil;; \
* ) \
- ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o -L${TOP_LIBDIR} -lafsutil -ll;; \
+ $(AFS_LDRULE) compile_et.o error_table.o -L${TOP_LIBDIR} -lafsutil -ll;; \
esac
libcom_err.a: error_msg.o et_name.o com_err.o AFS_component_version_number.o
# When we build this file, we're using a .c file that's in the object directory,
# so we need to add the source directory to the includes to pick up local headers.
#
-error_table.o: error_table.c
- $(CC) $(CFLAGS) -I${srcdir} @CFLAGS_NOUNUSED@ -c $<
+CFLAGS_error_table.o= -I${srcdir} @CFLAGS_NOUNUSED@ @CFLAGS_NOOLDSTYLE@
#
# Installation targets
cd test; $(MAKE)
compile_et.o: AFS_component_version_number.c
-error_table.o: et_lex.lex.c
+# specify yacc build product as a dependency so our .c.o rule will apply
+error_table.o: et_lex.lex.c error_table.c
include ../config/Makefile.version