4 # Build libgcc using the multilib mechanism
6 INSTALL_LIBGCC = install-multilib
8 # No special flags needed for libgcc.a
9 TARGET_LIBGCC2_CFLAGS =
11 # Don't build libgcc.a with debug info
12 LIBGCC2_DEBUG_CFLAGS =
14 # Extra libgcc2 modules used by gthr-vxworks.h functions
15 LIB2FUNCS_EXTRA = $(srcdir)/config/vxlib.c $(srcdir)/config/vxlib-tls.c
17 # Some runtime modules need these. Can't set extra_headers in config.gcc
18 # because the paths are always made absolute to the cpu config dir.
19 EXTRA_HEADERS += $(srcdir)/gthr-vxworks.h gthr-default.h
21 # This ensures that the correct target headers are used; some
22 # VxWorks system headers have names that collide with GCC's
23 # internal (host) headers, e.g. regs.h.
24 LIBGCC2_INCLUDES = -nostdinc -I \
25 `case "/$$(MULTIDIR)" in \
26 */mrtp*) echo $(WIND_USR)/h ;; \
27 *) echo $(WIND_BASE)/target/h ;; \
30 # Both the kernel and RTP headers provide limits.h.
33 EXTRA_MULTILIB_PARTS =
35 vxworks.o: $(srcdir)/config/vxworks.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
36 $(TARGET_H) toplev.h output.h $(TM_H)
37 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<