diff --git a/Makefile b/Makefile index 30690cedc20c8311b0f5a01632c8485fff82a955..54a5bb96f186d7ae54867c14ad56915a0f993563 100644 --- a/Makefile +++ b/Makefile @@ -85,6 +85,7 @@ nclib: shared static shared: libobjects rm -f $(NCHOME)/lib/libnc.$(SHSUFFIX) rm -f $(NCHOME)/lib/$(NCLIBSHSYMLINK) + mkdir -p $(NCHOME)/lib $(LD) $(LDFLAGS) -o $(NCHOME)/lib/$(NCLIBSH) $(LIBOBJS) ln -sf $(NCHOME)/lib/$(NCLIBSH) $(NCHOME)/lib/$(SHSONAME) ln -sf $(NCHOME)/lib/$(SHSONAME) $(NCHOME)/lib/$(NCLIBSHSYMLINK) @@ -93,6 +94,7 @@ shared: libobjects static: libobjects rm -f $(NCHOME)/lib/$(NCLIBSTAT) + mkdir -p $(NCHOME)/lib ar r $(NCHOME)/lib/$(NCLIBSTAT) $(LIBOBJS) ranlib $(NCHOME)/lib/$(NCLIBSTAT)