for all types int8, uint8, float16_t, float32_t etc.
all to be template-ified
$(2)_test_deps := $$(patsubst %.o, %.d, $$($(2)_test_objs))
$(2)_test_exes := $$(patsubst %.t.cc, %-utst, $$($(2)_test_srcs))
$(2)_test_outs := $$(patsubst %, %.out, $$($(2)_test_exes))
-$(2)_test_libs := $(1) $$($(2)_reverse_deps) utst
+$(2)_test_libs := $(1) $$($(2)_reverse_deps)
$(2)_test_libnames := $$(patsubst %, lib%.so, $$($(2)_test_libs))
$(2)_test_libarg := $$(patsubst %, -l%, $$($(2)_test_libs))
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
+/* Define if subproject MCPPBS_SPROJ_NORM is enabled */
+#undef OPERATORS_ENABLED
+
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
+ # Add subproject to our running list
+
+ subprojects="$subprojects operators"
+
+ # Process the subproject appropriately. If enabled add it to the
+ # $enabled_subprojects running shell variable, set a
+ # SUBPROJECT_ENABLED C define, and include the appropriate
+ # 'subproject.ac'.
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : operators" >&5
+$as_echo "$as_me: configuring default subproject : operators" >&6;}
+ ac_config_files="$ac_config_files operators.mk:operators/operators.mk.in"
+
+ enable_operators_sproj="yes"
+ subprojects_enabled="$subprojects_enabled operators"
+
+$as_echo "#define OPERATORS_ENABLED /**/" >>confdefs.h
+
+
+
+
+
+
+ # Determine if this is a required or an optional subproject
+
+
+
+ # Determine if there is a group with the same name
+
+
+
+ # Create variations of the subproject name suitable for use as a CPP
+ # enabled define, a shell enabled variable, and a shell function
+
+
+
+
+
+
+
+
+
+
+
# Add subproject to our running list
subprojects="$subprojects spike_main"
ac_config_files="$ac_config_files riscv-softfloat.pc"
+ac_config_files="$ac_config_files riscv-operators.pc"
+
ac_config_files="$ac_config_files riscv-dummy_rocc.pc"
ac_config_files="$ac_config_files riscv-spike_main.pc"
"riscv.mk") CONFIG_FILES="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
"dummy_rocc.mk") CONFIG_FILES="$CONFIG_FILES dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in" ;;
"softfloat.mk") CONFIG_FILES="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
+ "operators.mk") CONFIG_FILES="$CONFIG_FILES operators.mk:operators/operators.mk.in" ;;
"spike_main.mk") CONFIG_FILES="$CONFIG_FILES spike_main.mk:spike_main/spike_main.mk.in" ;;
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"riscv-spike.pc") CONFIG_FILES="$CONFIG_FILES riscv-spike.pc" ;;
"riscv-riscv.pc") CONFIG_FILES="$CONFIG_FILES riscv-riscv.pc" ;;
"riscv-softfloat.pc") CONFIG_FILES="$CONFIG_FILES riscv-softfloat.pc" ;;
+ "riscv-operators.pc") CONFIG_FILES="$CONFIG_FILES riscv-operators.pc" ;;
"riscv-dummy_rocc.pc") CONFIG_FILES="$CONFIG_FILES riscv-dummy_rocc.pc" ;;
"riscv-spike_main.pc") CONFIG_FILES="$CONFIG_FILES riscv-spike_main.pc" ;;
# The '*' suffix indicates an optional subproject. The '**' suffix
# indicates an optional subproject which is also the name of a group.
-MCPPBS_SUBPROJECTS([ riscv, dummy_rocc, softfloat, spike_main ])
+MCPPBS_SUBPROJECTS([ riscv, dummy_rocc, softfloat, operators, spike_main ])
#-------------------------------------------------------------------------
# MCPPBS subproject groups
AC_CONFIG_FILES([riscv-spike.pc])
AC_CONFIG_FILES([riscv-riscv.pc])
AC_CONFIG_FILES([riscv-softfloat.pc])
+AC_CONFIG_FILES([riscv-operators.pc])
AC_CONFIG_FILES([riscv-dummy_rocc.pc])
AC_CONFIG_FILES([riscv-spike_main.pc])
AC_OUTPUT
--- /dev/null
+operators_subproject_deps = \
+ softfloat
+
+operators_hdrs = \
+ operators.h \
+
+operators_c_srcs = \
+
+operators_srcs = \
+ operators.cc \
+
+operators_test_srcs = \
+ operators.t.cc \
+
+operators_install_prog_srcs =
--- /dev/null
+#include <stdio.h>
+
+int main(int argc, char *argv[])
+{
+ printf("hello\n");
+}
--- /dev/null
+prefix=@prefix@
+exec_prefix=@prefix@
+libdir=${prefix}/@libdir@
+includedir=${prefix}/@includedir@
+
+Name: riscv-operators
+Description: RISC-V operators library
+Version: git
+Depends: riscv-softfloat
+Libs: -Wl,-rpath,${libdir} -L${libdir} -loperators -lsoftfloat
+Cflags: -I${includedir}
+URL: http://riscv.org/download.html#tab_spike