Files
rtems/tools/cpu/sh/Makefile.in
T
Joel Sherrill 06fa582130 Patches from Ralf Corsepius <corsepiu@faw.uni-ulm.de> and myself to
make solaris target buildable.

    > 1.  The ipc check fails since solaris does not define union semun.
    > The unix port code actually defines this type itself on solaris.  Doing
    > the same thing lets it get configured.  Then...

    > 2.  It looks like BSDINSTALL is not defined properly.

    BSDINSTALL is defined in make/host.cfg.in as
    BSDINSTALL=@INSTALL@

    @INSTALL@ is generated by autoconf's standard macro AC_PROG_INSTALL, which
    is widely used in almost any autoconf/automake configured package. In case
    there is really something wrong with it, then it must be considered a bug
    in autoconf.

    I can see a doubious fragment in AC_PROG_INSTALL, which is used when no
    appropriate bsd-install is found.

Finally Ralf saw a problem with the find on solaris which I also saw and
fixed.
1998-08-19 12:56:20 +00:00

63 lines
993 B
Makefile

#
# $Id$
#
# FIXME: $ARCH shouldn't be used inside of host-tools.
#
@SET_MAKE@
srcdir = @srcdir@
VPATH = @srcdir@
RTEMS_ROOT = @top_srcdir@
PROJECT_ROOT = @PROJECT_ROOT@
# we use the host compiler here
USE_HOST_COMPILER=yes
# C source names, if any, go here -- minus the .c
C_PIECES=shgen sci
C_FILES=$(C_PIECES:%=%.c)
C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
H_FILES=sci.h
SRCS=$(C_FILES) $(H_FILES)
OBJS=$(C_O_FILES)
PGMS=${ARCH}/shgen@EXEEXT@
include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
include $(RTEMS_ROOT)/make/leaf.cfg
#
# Add local stuff here using +=
#
DEFINES += -Wall
CPPFLAGS += -I.
CFLAGS +=
LD_PATHS +=
LD_LIBS += -lm
LDFLAGS +=
#
# Add your list of files to delete here.
#
CLEAN_ADDITIONS +=
CLOBBER_ADDITIONS +=
DESTDIR=${PROJECT_RELEASE}/bin
all: $(ARCH) $(PGMS)
${PGMS}: $(OBJS) $(LINK_FILES)
$(make-exe)
$(DESTDIR):
@INSTALL@ $(INSTDIRFLAGS) $@
# Install the program
install: $(DESTDIR) $(PGMS)
@INSTALL@ $(INSTBINFLAGS) ${PGMS} $(DESTDIR)