diff --git a/ase/awk/makefile.in b/ase/awk/makefile.in index b2f41de1..7a2d647e 100644 --- a/ase/awk/makefile.in +++ b/ase/awk/makefile.in @@ -1,5 +1,5 @@ # -# $Id: makefile.in,v 1.28 2007-03-24 04:45:35 bacon Exp $ +# $Id: makefile.in,v 1.29 2007-03-25 15:02:54 bacon Exp $ # NAME = aseawk @@ -13,7 +13,7 @@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ MODE = @BUILDMODE@ -OUT_DIR = ../$(MODE) +OUT_DIR = ../$(MODE)/lib OUT_FILE = $(OUT_DIR)/lib$(NAME).a TMP_DIR = $(MODE) @@ -33,6 +33,8 @@ OBJ_FILES = \ $(TMP_DIR)/extio.o \ $(TMP_DIR)/rex.o +lib: $(OUT_FILE) + $(OUT_FILE): $(OBJ_FILES) $(OUT_DIR) $(AR) cr $(OUT_FILE) $(OBJ_FILES) if [ "$(RANLIB)" = "ranlib" ]; then ranlib $(OUT_FILE); fi diff --git a/ase/build.xml b/ase/build.xml index d672d0c3..367c28da 100644 --- a/ase/build.xml +++ b/ase/build.xml @@ -1,4 +1,4 @@ - + @@ -10,35 +10,52 @@ --> - - - - + - - - - + - + + + + - + + + + - - - + + + + + + + + + + + + + + + + @@ -46,9 +63,6 @@ includes="**/*.class,**/*.jar" /> - - - diff --git a/ase/cmn/makefile.in b/ase/cmn/makefile.in index 131d96b6..4579268c 100644 --- a/ase/cmn/makefile.in +++ b/ase/cmn/makefile.in @@ -1,5 +1,5 @@ # -# $Id: makefile.in,v 1.5 2007-03-24 04:39:52 bacon Exp $ +# $Id: makefile.in,v 1.6 2007-03-25 15:02:54 bacon Exp $ # NAME = asecmn @@ -13,7 +13,7 @@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ MODE = @BUILDMODE@ -OUT_DIR = ../$(MODE) +OUT_DIR = ../$(MODE)/lib OUT_FILE = $(OUT_DIR)/lib$(NAME).a TMP_DIR = $(MODE) @@ -23,6 +23,8 @@ OBJ_FILES = \ $(TMP_DIR)/str.o \ $(TMP_DIR)/misc.o +lib: $(OUT_FILE) + $(OUT_FILE): $(OBJ_FILES) $(OUT_DIR) $(AR) cr $(OUT_FILE) $(OBJ_FILES) if [ "$(RANLIB)" = "ranlib" ]; then ranlib $(OUT_FILE); fi diff --git a/ase/lsp/makefile.in b/ase/lsp/makefile.in index 2cfd439f..b46757fa 100644 --- a/ase/lsp/makefile.in +++ b/ase/lsp/makefile.in @@ -1,5 +1,5 @@ # -# $Id: makefile.in,v 1.15 2007-03-24 04:53:02 bacon Exp $ +# $Id: makefile.in,v 1.16 2007-03-25 15:02:54 bacon Exp $ # NAME = aselsp @@ -13,7 +13,7 @@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ MODE = @BUILDMODE@ -OUT_DIR = ../$(MODE) +OUT_DIR = ../$(MODE)/lib OUT_FILE = $(OUT_DIR)/lib$(NAME).a TMP_DIR = $(MODE) @@ -34,6 +34,8 @@ OBJ_FILES = \ $(TMP_DIR)/prim_compar.o \ $(TMP_DIR)/prim_math.o +lib: $(OUT_FILE) + $(OUT_FILE): $(OBJ_FILES) $(OUT_DIR) $(AR) cr $(OUT_FILE) $(OBJ_FILES) if [ "$(RANLIB)" = "ranlib" ]; then ranlib $(OUT_FILE); fi diff --git a/ase/makefile.in b/ase/makefile.in index 0867c33c..56cf3469 100644 --- a/ase/makefile.in +++ b/ase/makefile.in @@ -1,7 +1,15 @@ -SUBDIRS=cmn awk lsp utl +# +# $Id: makefile.in,v 1.16 2007-03-25 15:02:54 bacon Exp $ +# -all: - @for i in $(SUBDIRS); \ + +LIBDIRS=cmn awk lsp utl +MODE=@BUILDMODE@ + +all: libs incs + +incs: + @for i in $(LIBDIRS); \ do \ if [ ! -d $$i ]; \ then \ @@ -9,7 +17,25 @@ all: exit 1; \ fi; \ cd $$i; \ - if make $@; \ + if make inc; \ + then \ + echo > /dev/null; \ + else \ + exit 1; \ + fi; \ + cd ..; \ + done + +libs: + @for i in $(LIBDIRS); \ + do \ + if [ ! -d $$i ]; \ + then \ + echo Error: $$i not a directory; \ + exit 1; \ + fi; \ + cd $$i; \ + if make lib; \ then \ echo > /dev/null; \ else \ @@ -19,7 +45,7 @@ all: done clean: - @for i in $(SUBDIRS); \ + @for i in $(LIBDIRS); \ do \ if [ ! -d $$i ]; \ then \