|
|
|
@ -23,14 +23,17 @@ |
|
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk |
|
|
|
|
|
|
|
|
|
LIB = lib$(BOARD).a
|
|
|
|
|
LIB = $(obj)lib$(BOARD).a
|
|
|
|
|
|
|
|
|
|
OBJS := $(BOARD).o
|
|
|
|
|
COBJS := $(BOARD).o
|
|
|
|
|
SOBJS := init.o
|
|
|
|
|
#SOBJS :=
|
|
|
|
|
|
|
|
|
|
$(LIB): $(OBJS) $(SOBJS) |
|
|
|
|
$(AR) crv $@ $(OBJS)
|
|
|
|
|
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS))
|
|
|
|
|
SOBJS := $(addprefix $(obj),$(SOBJS))
|
|
|
|
|
|
|
|
|
|
$(LIB): $(obj).depend $(OBJS) $(SOBJS) |
|
|
|
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
|
|
|
|
|
|
|
|
|
clean: |
|
|
|
|
rm -f $(OBJS) $(SOBJS)
|
|
|
|
@ -40,9 +43,9 @@ distclean: clean |
|
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
|
|
.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c) |
|
|
|
|
$(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
|
include $(SRCTREE)/rules.mk |
|
|
|
|
|
|
|
|
|
-include .depend |
|
|
|
|
sinclude $(obj).depend |
|
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|