📄 makefile
字号:
# eCos makefile
# This is a generated file - do not edit
export PREFIX := c:\cygwin/home/Administrator/FFT/target/PLCcore-CF54/ecos/ecos_install
export COMMAND_PREFIX := m68k-elf-
export CC := $(COMMAND_PREFIX)gcc
export OBJCOPY := $(COMMAND_PREFIX)objcopy
export HOST := CYGWIN
export AR := $(COMMAND_PREFIX)ar
export REPOSITORY := c:\cygwin/opt/ecos/ecos-2.0.57/packages
PACKAGE := hal/coldfire/systec_PLCcore_cf54/current
OBJECT_PREFIX := hal_coldfire_systec_PLCcore_cf54
CFLAGS := -m5407 -DGNU_ECOS_CF548X -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -fno-exceptions
LDFLAGS := -m5407 -g -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections,--print-map,-Map=eCos.map -Wl,-static
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/plf_startup.c src/plf_io.c
OBJECTS := $(COMPILE:.cxx=.o.d)
OBJECTS := $(OBJECTS:.cpp=.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 $@
$(PREFIX)/include/cyg/hal/plf_offsets.inc: $(wildcard $(REPOSITORY)/$(PACKAGE)/src/plf_mk_defs.c)
$(CC) $(ACTUAL_CFLAGS) $(INCLUDE_PATH) -Wp,-MD,plf_offsets.tmp -o plf_mk_defs.tmp -S $<
fgrep .equ plf_mk_defs.tmp | sed s/#// > $@
@echo $@ ": \\" > $(notdir $@).deps
@tail -n +2 plf_offsets.tmp >> $(notdir $@).deps
@echo >> $(notdir $@).deps
@rm plf_offsets.tmp plf_mk_defs.tmp
headers: mlt_headers $(PREFIX)/include/cyg/hal/hal_memmap.h $(PREFIX)/include/cyg/hal/platform.inc $(PREFIX)/include/cyg/hal/plf_intr.h $(PREFIX)/include/cyg/hal/plf_io.h $(PREFIX)/include/cyg/hal/plf_led.h $(PREFIX)/include/cyg/hal/plf_startup.h $(PREFIX)/include/cyg/hal/plf_stub.h
$(PREFIX)/include/cyg/hal/hal_memmap.h: $(REPOSITORY)/$(PACKAGE)/include/hal_memmap.h
@mkdir -p $(dir $@)
@cp $< $@
@chmod u+w $@
$(PREFIX)/include/cyg/hal/platform.inc: $(REPOSITORY)/$(PACKAGE)/include/platform.inc
@mkdir -p $(dir $@)
@cp $< $@
@chmod u+w $@
$(PREFIX)/include/cyg/hal/plf_intr.h: $(REPOSITORY)/$(PACKAGE)/include/plf_intr.h
@mkdir -p $(dir $@)
@cp $< $@
@chmod u+w $@
$(PREFIX)/include/cyg/hal/plf_io.h: $(REPOSITORY)/$(PACKAGE)/include/plf_io.h
@mkdir -p $(dir $@)
@cp $< $@
@chmod u+w $@
$(PREFIX)/include/cyg/hal/plf_led.h: $(REPOSITORY)/$(PACKAGE)/include/plf_led.h
@mkdir -p $(dir $@)
@cp $< $@
@chmod u+w $@
$(PREFIX)/include/cyg/hal/plf_startup.h: $(REPOSITORY)/$(PACKAGE)/include/plf_startup.h
@mkdir -p $(dir $@)
@cp $< $@
@chmod u+w $@
$(PREFIX)/include/cyg/hal/plf_stub.h: $(REPOSITORY)/$(PACKAGE)/include/plf_stub.h
@mkdir -p $(dir $@)
@cp $< $@
@chmod u+w $@
include $(REPOSITORY)/pkgconf/rules.mak
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -