diff options
Diffstat (limited to 'clients/net-snk/Makefile')
-rw-r--r-- | clients/net-snk/Makefile | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/clients/net-snk/Makefile b/clients/net-snk/Makefile index f89ef28..e5305f7 100644 --- a/clients/net-snk/Makefile +++ b/clients/net-snk/Makefile @@ -17,29 +17,24 @@ include $(TOP)/make.rules OBJS = kernel/kernel.o oflib/oflib.o libc/libc-glue.o app/app.o .PHONY : subdirs clean depend mrproper -client : .depend subdirs $(OBJS) $(LIBCMNDIR)/libc.a - $(LD) $(LDFLAGS) -o $@ -Tclient.lds $(OBJS) $(LIBCMNDIR)/libc.a +CLIENTLIBS = $(LIBCMNDIR)/libelf.a $(LIBCMNDIR)/libc.a + +client : .depend subdirs $(OBJS) $(CLIENTLIBS) + $(LD) $(LDFLAGS) -o $@ -Tclient.lds $(OBJS) $(CLIENTLIBS) $(OBJDUMP) -DSsx $@ > $@.dis cp $@ $@.unstripped - $(STRIP) $@ + $(STRIP) --strip-unneeded $@ sec-client : subdirs $(OBJS) $(LIBCMNDIR)/libc.a $(LD) $(LDFLAGS) -o $@ -Tsec-client.lds $(OBJS) $(LIBCMNDIR)/libc.a -fpga-client : - $(MAKE) -C . fpga-client-int SNK_LJTAG_PROCESS=1 - -fpga-client-int : subdirs $(OBJS) $(LIBCMNDIR)/libc.a - $(LD) $(LDFLAGS) -o fpga-client -Tsec-client.lds $(OBJS) $(LIBCMNDIR)/libc.a - $(STRIP) fpga-client - subdirs : @for dir in $(dir $(OBJS)); do \ $(MAKE) -C $$dir || exit 1; \ done -$(LIBCMNDIR)/libc.a: - $(MAKE) -C $(LIBCMNDIR) libc +$(LIBCMNDIR)/%.a: + $(MAKE) -C $(LIBCMNDIR) $(@:$(LIBCMNDIR)/%.a=%) clean: @for dir in $(dir $(OBJS)); do \ |