Files
rtems/c/src/lib/libcpu/sparc/cache/Makefile.am
Ralf Corsepius ca9c287439 2002-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* cache/Makefile.am: Use .$(OBJEXT) instead of .o.
 	* reg_win/Makefile.am: Use .$(OBJEXT) instead of .o.
 	* syscall/Makefile.am: Use .$(OBJEXT) instead of .o.
2002-08-11 05:23:26 +00:00

47 lines
996 B
Makefile

##
## $Id$
##
VPATH = @srcdir@:@srcdir@/../../shared/src
C_FILES = cache.c cache_aligned_malloc.c cache_manager.c
C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT))
include_libcpudir = $(includedir)/libcpu
include_libcpu_HEADERS = cache.h
noinst_HEADERS = cache_.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
if has_instruction_cache
CACHE_DEFINE = -DHAS_INSTRUCTION_CACHE
endif
AM_CPPFLAGS += -I$(srcdir) $(CACHE_DEFINE)
$(PROJECT_INCLUDE)/libcpu:
$(mkinstalldirs) $@
$(PROJECT_INCLUDE)/libcpu/%.h: %.h
$(INSTALL_DATA) $< $@
cache.h: $(top_srcdir)/../shared/include/cache.h
cp $< $@
PREINSTALL_FILES = $(PROJECT_INCLUDE)/libcpu \
$(include_libcpu_HEADERS:%=$(PROJECT_INCLUDE)/libcpu/%)
all-local: $(ARCH) $(PREINSTALL_FILES) $(OBJS)
CLEANFILES = cache.h
EXTRA_DIST = cache.c cache_.h
include $(top_srcdir)/../../../../../automake/local.am