diff options
author | John Crispin <john@openwrt.org> | 2007-06-02 00:46:02 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2007-06-02 00:46:02 +0000 |
commit | e19eb3d8286ad66f455721f8b7f8260bce5e4016 (patch) | |
tree | 37c13b9c5ec72323b4ed9f1757aa7055b5013226 /target/linux/etrax-2.6/image/e100boot/src/sbl/Makefile | |
parent | a1ddc8ab7d95ffb1f50b13c93a90e6e9fda9a591 (diff) | |
download | upstream-e19eb3d8286ad66f455721f8b7f8260bce5e4016.tar.gz upstream-e19eb3d8286ad66f455721f8b7f8260bce5e4016.tar.bz2 upstream-e19eb3d8286ad66f455721f8b7f8260bce5e4016.zip |
add initial support for the crisarchitecture used on foxboards to openwrt
SVN-Revision: 7439
Diffstat (limited to 'target/linux/etrax-2.6/image/e100boot/src/sbl/Makefile')
-rw-r--r-- | target/linux/etrax-2.6/image/e100boot/src/sbl/Makefile | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/target/linux/etrax-2.6/image/e100boot/src/sbl/Makefile b/target/linux/etrax-2.6/image/e100boot/src/sbl/Makefile new file mode 100644 index 0000000000..ffb6e9fb13 --- /dev/null +++ b/target/linux/etrax-2.6/image/e100boot/src/sbl/Makefile @@ -0,0 +1,77 @@ +# Generated automatically from Makefile.in by configure. +# +# Makefile for e100boot, sbl side. +# +# $Id: Makefile.in,v 1.21 2003/11/21 11:38:30 pkj Exp $ +# + +VPATH := .:../cbl + +CC = gcc + +AXIS_USABLE_LIBS = UCLIBC GLIBC +-include $(AXIS_TOP_DIR)/tools/build/Rules.axis + +CFLAGS += -I. -I../cbl/src -g -O2 -I../libpcap-0.4/ -I../libpcap-0.4/bpf/ -Wall -Wmissing-prototypes -Wno-unused +LDFLAGS = +LDLIBS = -L../libpcap-0.4/ +LDLIBS = +LIBPCAP = ../libpcap-0.4/libpcap.a + +IMAGES := ../cbl/net/net.ima ../cbl/net_noleds/net_noleds.ima \ + ../cbl/ser/ser.ima ../cbl/ser_noleds/ser_noleds.ima + +AUTOSRCS := $(addsuffix .c, $(subst .ima,_ima,$(notdir $(IMAGES)))) + +OBJS := common.o network.o serial.o +DEPS := $(addprefix deps/, $(subst .o,.d,$(OBJS))) + +STRIP ?= strip + +all: conf.h e100boot e100boot.stripped + +depend: $(DEPS) + +Makefile: Makefile.in + @echo -e "\n### New Makefile.in detected, regenerating Makefile..." + ./configure + +e100boot: common.o boot_images.o serial.o network.o $(LIBPCAP) + @echo -e '\n### Finally... Compiling e100boot.' + $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ + +e100boot.stripped: e100boot + cp $< $@ + $(STRIP) --strip-unneeded $@ + +boot_images.o: boot_images.c boot_images.h $(AUTOSRCS) + $(CC) -c $(CFLAGS) $< -o $@ + +conf.h: + ./configure + +reconf: + ./configure --cache=/dev/null + +clean: + rm -rf e100boot Makefile conf.h config.log config.cache config.status deps *.ima *.o *_ima.c* *~ + +$(IMAGES): + @echo -e '\n### Making cbl boot images (*.ima)...' + $(MAKE) -C ../cbl + +ifneq ($(MAKECMDGOALS),clean) +-include $(DEPS) +endif + +deps/%.d: %.c + @[ -d deps ] || mkdir deps + $(CC) -M $(CFLAGS) $< > $@ + +deps/%.d: %.S + @[ -d deps ] || mkdir deps + $(CC) -M $(CFLAGS) $< > $@ + +%_ima.c: %.ima + @echo -e "### Creating $@ from image $<" + @./cconv $*_ima < $< > $@ |