SUBDIRS = src raddb doc scripts
WHAT_TO_MAKE = all
-all: config.status
+all:
@$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
clean:
sed 's/\.in$$//' | \
while read file; do rm -f $$file; done
-Make.inc: Make.inc.in
- ./configure
-
######################################################################
#
# Automatic remaking rules suggested by info:autoconf#Automatic_Remaking
autoconf
# autoheader might not change autoconf.h.in, so touch a stamp file
-src/include/autoconf.h.in: src/include/stamp-h.in
+src/include/autoconf.h.in: src/include/stamp-h.in acconfig.h
src/include/stamp-h.in: configure.in acconfig.h
autoheader
echo timestamp > src/include/stamp-h.in
/* Make dictionary case-independant */
#undef WITH_DICT_NOCASE
-/* Make dictionary case-independant */
-#undef WITH_DICT_NOCASE
+/* Use USR-style vendor specific attributes */
+#undef ATTRIB_NMC
+
+/* Include support for Ascend binary filter attributes */
+#undef ASCEND_BINARY
esac ]
)
+dnl extra argument: --with-attrib-nmc
+ATTRIB_NMC=
+AC_ARG_WITH(attrib-nmc,
+[ --with-attrib-nmc Include USR-style vendor specific attributes (default=yes)],
+[ ATTRIB_NMC=$withval
+ case "$withval" in
+ no)
+ ;;
+ yes)
+ AC_DEFINE(ATTRIB_NMC)
+ esac ]
+)
+dnl if they haven't said to use it, do so.
+if test "$ATTRIB_NMC" = "";then
+ AC_DEFINE(ATTRIB_NMC)
+fi
+
+dnl extra argument: --with-ascend-binary
+ASCEND_BINARY=
+AC_ARG_WITH(ascend-binary,
+[ --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)],
+[ ASCEND_BINARY=$withval
+ case "$withval" in
+ no)
+ ;;
+ yes)
+ AC_DEFINE(ASCEND_BINARY)
+ esac ]
+)
+dnl if they haven't said to use it, do so.
+if test "$ASCEND_BINARY" = "";then
+ AC_DEFINE(ASCEND_BINARY)
+fi
+
+
dnl extra argument: --with-dynamic_modules
WITH_DYNAMIC_MODULES=yes
AC_ARG_WITH(dynamic-modules,
/* Make dictionary case-independant */
#undef WITH_DICT_NOCASE
-/* Make dictionary case-independant */
-#undef WITH_DICT_NOCASE
+/* Use USR-style vendor specific attributes */
+#undef ATTRIB_NMC
+
+/* Include support for Ascend binary filter attributes */
+#undef ASCEND_BINARY
/* Define if you have the gethostname function. */
#undef HAVE_GETHOSTNAME
# define ASCEND_CHANNELS_PER_LINE 23
# endif
#endif
-
-/*
- * Hack for USR gear - uses a different Vendor-Specific attribute
- * packet layout, argh.
- */
-#define ATTRIB_NMC
-