Commit 3b033262 authored by jdelange's avatar jdelange
Browse files

* share/make

   - Add missing files for building each platform




git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@2929 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 4da962de
......@@ -5,6 +5,7 @@ EXTRA_DIST=$(srcdir)/Makefile.common \
$(srcdir)/Makefile.leon3-xm3 \
$(srcdir)/Makefile.leon3-xtratum \
$(srcdir)/Makefile.leon.rtems \
$(srcdir)/Makefile.leon.rtems_posix \
$(srcdir)/Makefile.compcert \
$(srcdir)/Makefile.bench \
$(srcdir)/Makefile.linux32 \
......@@ -12,6 +13,7 @@ EXTRA_DIST=$(srcdir)/Makefile.common \
$(srcdir)/Makefile.linux32-xenomai-posix \
$(srcdir)/Makefile.linux64 \
$(srcdir)/Makefile.x86.rtems \
$(srcdir)/Makefile.x86.rtems_posix \
$(srcdir)/Makefile.x86.linuxtaste \
$(srcdir)/Makefile.nds.rtems \
$(srcdir)/Makefile.gumstix.rtems \
......
......@@ -25,7 +25,7 @@ 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_CFLAGS = -DRTEMS_PURE -DLEON_RTEMS $(GCC_GENERIC_FLAGS)
TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/leon-rtems/
LD = sparc-rtems-ld
......
## 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
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
emulate-qemu: $(BINARY)
qemu-system-sparc -M at697 -nographic -kernel $(BINARY).exe
## 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 rate_monotonic
CC = i386-rtems4.8-gcc
CPP = i386-rtems4.8-g++
GPROF = i386-rtems4.8-gprof
TARGET_SOURCES =
TARGET_TRANSPORT_SOURCES =
TARGET_CFLAGS = -DRTEMS_POSIX -DX86_RTEMS $(GCC_GENERIC_FLAGS)
TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/
LD = i386-rtems4.8-ld
TARGET_LDFLAGS = -lrtemsbsp -lc -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
target-objects:
else
target-objects:
endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment