diff options
Diffstat (limited to 'x-loader/disk/Makefile')
-rw-r--r-- | x-loader/disk/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/x-loader/disk/Makefile b/x-loader/disk/Makefile index 7da4624..512b1cb 100644 --- a/x-loader/disk/Makefile +++ b/x-loader/disk/Makefile @@ -25,20 +25,23 @@ include $(TOPDIR)/config.mk #CFLAGS += -DET_DEBUG -DDEBUG -LIB = libdisk.a +LIB = $(obj)libdisk.a -OBJS = part.o +COBJS = part.o + +SRCS := $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS)) all: $(LIB) -$(LIB): $(START) $(OBJS) +$(LIB): $(obj).depend $(OBJS) $(AR) crv $@ $(OBJS) ######################################################################### -.depend: Makefile $(OBJS:.o=.c) - $(CC) -M $(CFLAGS) $(OBJS:.o=.c) > $@ +# defines $(obj).depend target +include $(SRCTREE)/rules.mk -sinclude .depend +sinclude $(obj).depend ######################################################################### |