1 # Generated automatically from Makefile.in by configure.
3 # Makefile for e100boot, sbl side.
5 # $Id: Makefile.in,v 1.21 2003/11/21 11:38:30 pkj Exp $
12 AXIS_USABLE_LIBS
= UCLIBC GLIBC
13 -include $(AXIS_TOP_DIR
)/tools
/build
/Rules.axis
15 CFLAGS
+= -I.
-I..
/cbl
/src
-g
-O2
-I..
/libpcap-0.4
/ -I..
/libpcap-0.4
/bpf
/ -Wall
-Wmissing-prototypes
-Wno-unused
17 LDLIBS
= -L..
/libpcap-0.4
/
19 LIBPCAP
= ..
/libpcap-0.4
/libpcap.a
21 IMAGES
:= ..
/cbl
/net
/net.ima ..
/cbl
/net_noleds
/net_noleds.ima \
22 ..
/cbl
/ser
/ser.ima ..
/cbl
/ser_noleds
/ser_noleds.ima
24 AUTOSRCS
:= $(addsuffix .c
, $(subst .ima
,_ima
,$(notdir $(IMAGES
))))
26 OBJS
:= common.o network.o serial.o
27 DEPS
:= $(addprefix deps
/, $(subst .o
,.d
,$(OBJS
)))
31 all: conf.h e100boot e100boot.stripped
36 @echo
-e
"\n### New Makefile.in detected, regenerating Makefile..."
39 e100boot
: common.o boot_images.o serial.o network.o
$(LIBPCAP
)
40 @echo
-e
'\n### Finally... Compiling e100boot.'
41 $(CC
) $(LDFLAGS
) $^
$(LDLIBS
) -o
$@
43 e100boot.stripped
: e100boot
45 $(STRIP
) --strip-unneeded
$@
47 boot_images.o
: boot_images.c boot_images.h
$(AUTOSRCS
)
48 $(CC
) -c
$(CFLAGS
) $< -o
$@
54 .
/configure
--cache
=/dev
/null
57 rm -rf e100boot Makefile conf.h config.log config.cache config.status deps
*.ima
*.o
*_ima.c
* *~
60 @echo
-e
'\n### Making cbl boot images (*.ima)...'
63 ifneq ($(MAKECMDGOALS
),clean)
68 @
[ -d deps
] || mkdir deps
69 $(CC
) -M
$(CFLAGS
) $< > $@
72 @
[ -d deps
] || mkdir deps
73 $(CC
) -M
$(CFLAGS
) $< > $@
76 @echo
-e
"### Creating $@ from image $<"
77 @.
/cconv
$*_ima
< $< > $@