forked from Imagelibrary/rtems
* cpuuse/Makefile.am, dummy/Makefile.am, dumpbuf/Makefile.am, monitor/Makefile.am, rtmonuse/Makefile.am, stackchk/Makefile.am, untar/Makefile.am, wrapup/Makefile.am, mw-fb/Makefile.am: Include compile.am.
44 lines
846 B
Makefile
44 lines
846 B
Makefile
##
|
|
## $Id$
|
|
##
|
|
|
|
AUTOMAKE_OPTIONS = foreign 1.4
|
|
|
|
LIBNAME = libstackchk-tmp
|
|
LIB = $(ARCH)/$(LIBNAME).a
|
|
|
|
C_FILES = check.c
|
|
C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
|
|
|
|
H_FILES = internal.h
|
|
INSTALLED_H_FILES = stackchk.h
|
|
|
|
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 \
|
|
$(INSTALLED_H_FILES:%=$(PROJECT_INCLUDE)/rtems/%)
|
|
|
|
all-local: $(ARCH) $(PREINSTALL_FILES) $(OBJS) $(LIB)
|
|
|
|
.PRECIOUS: $(LIB)
|
|
|
|
EXTRA_DIST = README check.c internal.h stackchk.h
|
|
|
|
include $(top_srcdir)/../../../automake/local.am
|