## This file is a part of PolyORB-HI-C software. ## It sets some variables useful to compile generated ## code to the LEON platform with the RTEMS operating system. ## To use and compile RTEMS, visit http://www.rtems.com ## This file has been built for RTEMS 4.8.0 define bsp-post-link $(NM) -g -n $@ > $(basename $@).num $(SIZE) $@ endef MANAGERS = all CC = sparc-rtems-gcc CPP = sparc-rtems-g++ GPROF = sparc-rtems-gprof TARGET_SOURCES = #TARGET_TRANSPORT_SOURCES = $(RUNTIME_PATH)/config/leon-rtems/config.c TARGET_TRANSPORT_SOURCES = TARGET_CFLAGS = -DRTEMS_POSIX -DLEON_RTEMS $(GCC_GENERIC_FLAGS) TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/leon-rtems/ LD = sparc-rtems-ld TARGET_LDFLAGS = -lrtemsbsp -lc -lm EXTERNAL_OBJECTS += -L$(RUNTIME_PATH)/libs/leon/ -llua -lm target-clean: -include $(RTEMS_MAKEFILE_PATH)/Makefile.inc -include $(RTEMS_CUSTOM) -include $(PROJECT_ROOT)/make/leaf.cfg define bsp-link-c $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \ -o $(BINARY) $(LINK_OBJS) $(LINK_LIBS) endef define bsp-link-cxx $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \ -o $(BINARY) $(LINK_OBJS) $(LINK_LIBS) endef ifdef USE_GPROF TARGET_LDFLAGS+=-Wl,--wrap,Clock_isr -pg EXTERNAL_OBJECTS+=po_hi_gprof_rtems_leon.o target-objects: $(CC) $(INCLUDE) $(TARGET_INCLUDE) -D__PO_HI_USE_GPROF -Wall -c -o po_hi_gprof_rtems_leon.o $(RUNTIME_PATH)/src/po_hi_gprof_rtems_leon.c else target-objects: endif LINK_LIBS+=-lm emulate-qemu: $(BINARY) qemu-system-sparc -M at697 -nographic -kernel $(BINARY).exe