# eCos makefile # This is a generated file - do not edit export REPOSITORY := /ecos-c/ecos/packages export PREFIX := /ecos-c/workdir/ecos/ecos_install export COMMAND_PREFIX := arm-elf- export CC := $(COMMAND_PREFIX)gcc export OBJCOPY := $(COMMAND_PREFIX)objcopy export HOST := CYGWIN export AR := $(COMMAND_PREFIX)ar PACKAGE := hal/arm/arch/current OBJECT_PREFIX := hal_arm_arch CFLAGS := -mcpu=arm7tdmi -mno-short-load-words -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority LDFLAGS := -mcpu=arm7tdmi -mno-short-load-words -Wl,--gc-sections -Wl,-static -g -nostdlib VPATH := $(REPOSITORY)/$(PACKAGE) INCLUDE_PATH := $(INCLUDE_PATH) -I$(PREFIX)/include $(foreach dir,$(VPATH),-I$(dir) -I$(dir)/src -I$(dir)/tests) -I. MLT := $(wildcard $(REPOSITORY)/$(PACKAGE)/include/pkgconf/mlt*.ldi $(REPOSITORY)/$(PACKAGE)/include/pkgconf/mlt*.h) TESTS := build: headers libtarget.a.stamp LIBRARY := libtarget.a COMPILE := src/hal_misc.c src/context.S src/arm_stub.c src/hal_syscall.c OBJECTS := $(COMPILE:.cxx=.o.d) OBJECTS := $(OBJECTS:.c=.o.d) OBJECTS := $(OBJECTS:.S=.o.d) $(LIBRARY).stamp: $(OBJECTS) $(AR) rcs $(PREFIX)/lib/$(@:.stamp=) $(foreach obj,$?,$(dir $(obj))$(OBJECT_PREFIX)_$(notdir $(obj:.o.d=.o))) @cat $^ > $(@:.stamp=.deps) @touch $@ arm.inc: $(wildcard $(REPOSITORY)/$(PACKAGE)/src/hal_mk_defs.c) $(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,arm.tmp -o hal_mk_defs.tmp -S $< fgrep .equ hal_mk_defs.tmp | sed s/#// > $@ @echo $@ ": \\" > $(notdir $@).deps @tail -n +2 arm.tmp >> $(notdir $@).deps @echo >> $(notdir $@).deps @rm arm.tmp hal_mk_defs.tmp $(PREFIX)/lib/vectors.o: $(wildcard $(REPOSITORY)/$(PACKAGE)/src/vectors.S) $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $< @echo $@ ": \\" > $(notdir $@).deps @tail -n +2 vectors.tmp >> $(notdir $@).deps @echo >> $(notdir $@).deps @rm vectors.tmp $(PREFIX)/lib/target.ld: $(wildcard $(REPOSITORY)/$(PACKAGE)/src/arm.ld) $(CC) -E -P -Wp,-MD,target.tmp -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $< @echo $@ ": \\" > $(notdir $@).deps @tail -n +2 target.tmp >> $(notdir $@).deps @echo >> $(notdir $@).deps @rm target.tmp headers: mlt_headers $(PREFIX)/include/cyg/hal/arch.inc $(PREFIX)/include/cyg/hal/arm_stub.h $(PREFIX)/include/cyg/hal/basetype.h $(PREFIX)/include/cyg/hal/hal_arch.h $(PREFIX)/include/cyg/hal/hal_intr.h $(PREFIX)/include/cyg/hal/hal_io.h $(PREFIX)/include/cyg/hal/hal_mmu.h $(PREFIX)/include/cyg/hal/arch.inc: $(REPOSITORY)/$(PACKAGE)/include/arch.inc ifeq ($(HOST),CYGWIN) @mkdir -p `cygpath -w "$(dir $@)" | sed "s@\\\\\\\\@/@g"` else @mkdir -p $(dir $@) endif @cp $< $@ @chmod u+w $@ $(PREFIX)/include/cyg/hal/arm_stub.h: $(REPOSITORY)/$(PACKAGE)/include/arm_stub.h ifeq ($(HOST),CYGWIN) @mkdir -p `cygpath -w "$(dir $@)" | sed "s@\\\\\\\\@/@g"` else @mkdir -p $(dir $@) endif @cp $< $@ @chmod u+w $@ $(PREFIX)/include/cyg/hal/basetype.h: $(REPOSITORY)/$(PACKAGE)/include/basetype.h ifeq ($(HOST),CYGWIN) @mkdir -p `cygpath -w "$(dir $@)" | sed "s@\\\\\\\\@/@g"` else @mkdir -p $(dir $@) endif @cp $< $@ @chmod u+w $@ $(PREFIX)/include/cyg/hal/hal_arch.h: $(REPOSITORY)/$(PACKAGE)/include/hal_arch.h ifeq ($(HOST),CYGWIN) @mkdir -p `cygpath -w "$(dir $@)" | sed "s@\\\\\\\\@/@g"` else @mkdir -p $(dir $@) endif @cp $< $@ @chmod u+w $@ $(PREFIX)/include/cyg/hal/hal_intr.h: $(REPOSITORY)/$(PACKAGE)/include/hal_intr.h ifeq ($(HOST),CYGWIN) @mkdir -p `cygpath -w "$(dir $@)" | sed "s@\\\\\\\\@/@g"` else @mkdir -p $(dir $@) endif @cp $< $@ @chmod u+w $@ $(PREFIX)/include/cyg/hal/hal_io.h: $(REPOSITORY)/$(PACKAGE)/include/hal_io.h ifeq ($(HOST),CYGWIN) @mkdir -p `cygpath -w "$(dir $@)" | sed "s@\\\\\\\\@/@g"` else @mkdir -p $(dir $@) endif @cp $< $@ @chmod u+w $@ $(PREFIX)/include/cyg/hal/hal_mmu.h: $(REPOSITORY)/$(PACKAGE)/include/hal_mmu.h ifeq ($(HOST),CYGWIN) @mkdir -p `cygpath -w "$(dir $@)" | sed "s@\\\\\\\\@/@g"` else @mkdir -p $(dir $@) endif @cp $< $@ @chmod u+w $@ include $(REPOSITORY)/pkgconf/rules.mak