OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / libiberty / config / mt-vxworks5
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.
5
6 HDEFINES = -DNO_SYS_PARAM_H -DNO_SYS_FILE_H
7 CONFIG_H = vxconfig.h
8 NEEDED_LIST = vxneeded-list
9
10 vxconfig.h: Makefile
11         if [ -f ../newlib/Makefile ]; then \
12           $(MAKE) $(FLAGS_TO_PASS) xconfig.h; \
13           cp xconfig.h vxconfig.h; \
14         else \
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; \
20         fi
21
22 vxneeded-list: Makefile
23         if [ -f ../newlib/Makefile ]; then \
24           $(MAKE) $(FLAGS_TO_PASS) xneeded-list; \
25           cp xneeded-list vxneeded-list; \
26         else \
27           echo getopt.o getpagesize.o insque.o random.o strcasecmp.o strncasecmp.o strdup.o vfork.o waitpid.o vasprintf.o >vxneeded-list; \
28         fi