From e19eb3d8286ad66f455721f8b7f8260bce5e4016 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sat, 2 Jun 2007 00:46:02 +0000 Subject: add initial support for the crisarchitecture used on foxboards to openwrt SVN-Revision: 7439 --- .../etrax-2.6/image/e100boot/src/sbl/Makefile | 77 ++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 target/linux/etrax-2.6/image/e100boot/src/sbl/Makefile (limited to 'target/linux/etrax-2.6/image/e100boot/src/sbl/Makefile') 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 < $< > $@ -- cgit v1.2.3