LIBS += drivers/libdrivers.a
LIBS += net/libnet.a
LIBS += rtc/librtc.a
-LIBS += httpd/libhttpd.a
LIBS += $(BOARDLIBS)
-LIBS_SHARED = board/$(BOARDDIR)/lib$(BOARD).a
+LIBS_SHARED = board/$(BOARDDIR)/lib$(BOARD).a
+LIBS_SHARED += httpd/libhttpd.a
ifdef SOC
LIBS_SHARED += cpu/$(CPU)/$(SOC)/lib$(SOC).a
endif
u-boot.dis: u-boot
$(OBJDUMP) -d $< > $@
-u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LIBS_SHARED) $(LDSCRIPT)
+u-boot: fsdata depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LIBS_SHARED) $(LDSCRIPT)
UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) $(LIBS_SHARED) | \
sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p' | \
sort | uniq`; \
version:
@echo -n "#define U_BOOT_VERSION \"U-Boot $(U_BOOT_VERSION)\"" > $(VERSION_FILE)
+fsdata:
+ $(call echo_green,Preparing web server files...)
+ @echo
+ cd httpd && ./vendors/makefsdatac $(DEVICE_VENDOR)
+
depend dep:
@for dir in $(SUBDIRS); do $(MAKE) -C $$dir .depend; done
include $(TOPDIR)/config.mk
LIB = libhttpd.a
-OBJS += uip.o uip_arch.o uip_arp.o httpd.o fs.o
+OBJS += uip.o \
+ uip_arch.o \
+ uip_arp.o \
+ httpd.o \
+ fs.o
-all: $(LIB)
+all: $(LIB)
-fs.c: fsdata.c
-
-fsdata.c:
- ./vendors/makefsdatac $(DEVICE_VENDOR)
-
-$(LIB): $(START) $(OBJS)
- $(AR) crv $@ $(OBJS)
+$(LIB): $(OBJS)
+ $(AR) crv $@ $(OBJS)
#########################################################################
-.depend: Makefile $(OBJS:.o=.c)
- $(CC) -M $(CFLAGS) $(OBJS:.o=.c) > $@
+.depend: Makefile fsdata.c $(OBJS:.o=.c)
+ $(CC) -M $(CFLAGS) $(OBJS:.o=.c) > $@
sinclude .depend
#########################################################################
-