1 # VxWorks 5.x target Makefile fragment.
2 # The autoconfiguration fails for a VxWorks target, because the
3 # libraries are actually on the target board, not in the file system.
4 # Therefore, we compute the dependencies by hand.
6 HDEFINES = -DNO_SYS_PARAM_H -DNO_SYS_FILE_H
8 NEEDED_LIST = vxneeded-list
11 if [ -f ../newlib/Makefile ]; then \
12 $(MAKE) $(FLAGS_TO_PASS) xconfig.h; \
13 cp xconfig.h vxconfig.h; \
15 echo "#define NEED_sys_nerr 1" >vxconfig.h; \
16 echo "#define NEED_sys_errlist 1" >>vxconfig.h; \
17 echo "#define NEED_sys_siglist 1" >>vxconfig.h; \
18 echo "#define NEED_strsignal 1" >>vxconfig.h; \
19 echo "#define NEED_psignal 1" >>vxconfig.h; \
22 vxneeded-list: Makefile
23 if [ -f ../newlib/Makefile ]; then \
24 $(MAKE) $(FLAGS_TO_PASS) xneeded-list; \
25 cp xneeded-list vxneeded-list; \
27 echo getopt.o getpagesize.o insque.o random.o strcasecmp.o strncasecmp.o strdup.o vfork.o waitpid.o vasprintf.o >vxneeded-list; \