powerpc-rtems thought
joel at oarcorp.com
joel at oarcorp.com
Thu Oct 29 13:38:46 UTC 1998
On Thu, 29 Oct 1998, Joerg Mueller wrote:
> Good Morning!
>
> The compilation of rtems works now and the samples too!
> Now I try to recompile a modified example.
>
> I think it should not be neccessary to recompile the whole package,
> but no MAKE files for the example files are in the directory of
> the ready build rtems.
>
> Rewriting the make-file from the large build-tree of the rtems-source
> seems to be not the solution.
>
> Does someone have an rtems example with makefile?
4.0 includes hello world examples in C and Ada. If you are using 3.6.0,
the install organization changed some to better support the gnu tools. The
Makefile from the 4.0 style hello world is below my signature.
--joel
Joel Sherrill Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
----------------------------
#
# Makefile
#
#
# RTEMS_MAKEFILE_PATH is typically set in an environment variable
#
EXEC=test.exe
PGM=${ARCH}/$(EXEC)
# optional managers required
MANAGERS=io
# C source names
CSRCS = test.c
COBJS_ = $(CSRCS:.c=.o)
COBJS = $(COBJS_:%=${ARCH}/%)
# C++ source names
CXXSRCS =
CXXOBJS_ = $(CXXSRCS:.cc=.o)
CXXOBJS = $(CXXOBJS_:%=${ARCH}/%)
# AS source names
ASSRCS =
ASOBJS_ = $(ASSRCS:.s=.o)
ASOBJS = $(ASOBJS_:%=${ARCH}/%)
# Libraries
LIBS = -lrtemsall -lc
include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
include $(RTEMS_CUSTOM)
include $(PROJECT_ROOT)/make/leaf.cfg
OBJS= $(COBJS) $(CXXOBJS) $(ASOBJS)
all: ${ARCH} $(PGM)
$(PGM): $(OBJS)
$(make-exe)
More information about the users
mailing list