mkdir $tmpdir
cd $tmpdir
- cp ../maintenance/dummytool.m .
+ cp ../maintenance/dummytool.c .
tmpmake="GNUmakefile"
echo >$tmpmake "include ../config.make"
echo >>$tmpmake "include \$(GNUSTEP_MAKEFILES)/common.make"
- echo >>$tmpmake "TOOL_NAME := linktest"
- echo >>$tmpmake "linktest_OBJC_FILES := dummytool.m"
+ echo >>$tmpmake "CTOOL_NAME := linktest"
+ echo >>$tmpmake "linktest_C_FILES := dummytool.c"
echo >>$tmpmake "linktest_TOOL_LIBS += -l$1"
echo >>$tmpmake "SYSTEM_LIB_DIR += ${LINK_SYSLIBDIRS}"
- echo >>$tmpmake "include \$(GNUSTEP_MAKEFILES)/tool.make"
+ echo >>$tmpmake "include \$(GNUSTEP_MAKEFILES)/ctool.make"
make -s messages=yes -f $tmpmake linktest >out.log 2>err.log
LINK_RESULT=$?