Files
rtems/cpukit/libmisc/shell/Makefile.am
Ralf Corsepius 22b689b274 2002-11-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* capture/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* serdbg/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* serdbg/serdbgio.c: Add #include <unistd.h>.
	* shell/Makefile.am: Add RTEMS_LIBSHELL conditional.
	* wrapup/Makefile.am: Add RTEMS_LIBSHELL conditional.
	* configure.ac: Check for stdio assignments.
	Add RTEMS_LIBSHELL conditional.
2002-11-14 12:13:26 +00:00

48 lines
892 B
Makefile

##
## $Id$
##
include_rtemsdir = $(includedir)/rtems
LIBNAME = libshell-tmp
LIB = $(ARCH)/$(LIBNAME).a
C_FILES = cmds.c shell.c
C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT))
if RTEMS_LIBSHELL
include_rtems_HEADERS = shell.h
endif
OBJS = $(C_O_FILES)
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../../../automake/compile.am
include $(top_srcdir)/../../../automake/lib.am
$(PROJECT_INCLUDE)/rtems:
@$(mkinstalldirs) $@
$(PROJECT_INCLUDE)/rtems/%.h: %.h
$(INSTALL_DATA) $< $@
#
# (OPTIONAL) Add local stuff here using +=
#
$(LIB): $(OBJS)
$(make-library)
PREINSTALL_FILES = $(PROJECT_INCLUDE)/rtems \
$(include_rtems_HEADERS:%=$(PROJECT_INCLUDE)/rtems/%)
if RTEMS_LIBSHELL
all-local: $(ARCH) $(PREINSTALL_FILES) $(OBJS) $(LIB)
endif
.PRECIOUS: $(LIB)
EXTRA_DIST = README shell.c cmds.c shell.h
include $(top_srcdir)/../../../automake/local.am