SKIPPED:
	psi/cd_obj
	psi/make_gen
	psi/hardsup/cd_obj
	psi/hardsup/make_gen
	psi/hardsup/makefile_alpha
	psi/hardsup/makefile_linux
	psi/tecs/cd_obj
	psi/tecs/make_gen
	psi/tecs/makefile_alpha
	psi/tecs/makefile_linux
This commit is contained in:
cvs
2003-08-27 12:40:31 +00:00
parent 0bb8d632f1
commit 7af6c3c3af
11 changed files with 37 additions and 11 deletions

View File

@ -5,7 +5,7 @@
#==========================================================================
# the following lines only for fortified version
#DFORTIFY=-DFORTIFY
#DFORTIFY=-DFORTIFY -I$(ROOT)/$(SRC)
#FORTIFYOBJ=strdup.o fortify.o
#----------------select proper Makefile

2
cd_obj Normal file
View File

@ -0,0 +1,2 @@
# define an alias to 'source cd_obj' for switching quick to object directory
cd obj/$SICS_VERSION

1
dummy/cd_obj Normal file
View File

@ -0,0 +1 @@
cd ../obj/$SICS_VERSION/dummy

View File

@ -7,6 +7,7 @@
.SUFFIXES: .c .o .f
VPATH=$(SRC)
ROOT=..
OBJ=dummy.o

View File

@ -4,7 +4,7 @@
# Mark Koennecke, July 2003
#-------------------------------------------------------------------------
#DFORTIFY= -DFORTIFY
#DFORTIFY= -DFORTIFY -I$(ROOT)/$(SRC)
#FORTIFYOBJ= fortify.o strdup.o
MFLAGS=-f $(SRC)makefile_linux$(DUMMY) SRC=$(SRC)

View File

@ -7,8 +7,10 @@ VERS_UNDEFINED=
VERS_UNDEFINED$(SICS_VERSION)=version_undefined
SICS_ROOT=$(PWD)/$(S_UP)
MD=cd $(SICS_ROOT)/obj/$(SICS_VERSION)/$(S_DOWN); \
OBJROOT=$(SICS_ROOT)/obj/$(SICS_VERSION)
MD=cd $(OBJROOT)/$(S_DOWN); \
make -f $(SRC)makefile_$(SICS_VERSION) SRC=$(SRC)
TREE=$(OBJROOT)/tree
# overwrite MD when SICS_VERSION undefined
MD$(SICS_VERSION)=@ true
@ -17,25 +19,34 @@ SRC=src/
.SUFFIXES: .none
default: $(VERS_UNDEFINED)
default: $(VERS_UNDEFINED) $(TREE)
$(MD)
%.o: $(VERS_UNDEFINED)
%.o: $(VERS_UNDEFINED) $(TREE)
$(MD) $@
%: $(VERS_UNDEFINED)
%: $(VERS_UNDEFINED) $(TREE)
$(MD) $@
.DEFAULT: $(VERS_UNDEFINED)
.DEFAULT: $(VERS_UNDEFINED) $(TREE)
$(MD) $@
tree:
makefile:
@ echo makefile
tree: $(TREE)
@ true
$(TREE):
@ echo --- Make object tree ---
@ $(SICS_ROOT)/maketree .
@ $(SICS_ROOT)/maketree matrix
@ $(SICS_ROOT)/maketree dummy
@ $(SICS_ROOT)/maketree psi
@ $(SICS_ROOT)/maketree psi/hardsup
@ $(SICS_ROOT)/maketree psi/tecs
touch $(TREE)
@ echo --- End object tree ---
cleanall:
$(MD:makfil=makefile_alpha) clean
@ -56,13 +67,15 @@ version_undefined:
@ echo "Creating objects and targets in separate subdirectories"
@ echo ""
@ echo " setenv SICS_VERSION version_xxx (assume we are using tcsh)"
@ echo " make tree (make the object directories)"
@ echo " make [target]"
@ echo ""
@ echo " where version_xxx is one of"
@ echo ""
@ ls -1 makefile_* | cut -b 10-99 | pr -t -o 4
@ echo ""
@ echo " Tip: define the environment variables at login"
@ echo " Remarks:"
@ echo " All objects for alpha version will be created in subdirectory obj/alpha/,"
@ echo " SICServer is also found there."
@ echo " Tip: define SICS_VERSION at login"
@ echo ""

View File

@ -6,6 +6,7 @@
#---------------------------------------------------------------------------
VPATH=$(SRC)
ROOT=.
COBJ = Sclient.o network.o ifile.o intcli.o $(FORTIFYOBJ)
SOBJ = network.o ifile.o conman.o SCinter.o splitter.o passwd.o \

View File

@ -6,6 +6,7 @@
#---------------------------------------------------------------------------
VPATH=$(SRC)
ROOT=.
COBJ = Sclient.o network.o ifile.o intcli.o $(FORTIFYOBJ)
SOBJ = network.o ifile.o conman.o SCinter.o splitter.o passwd.o \

View File

@ -9,7 +9,10 @@ if ("$SICS_VERSION" == "") then
else
set SICS_ROOT=${0:h}
if (${0:h} != $0) then
cd ${0:h}
endif
set SICS_ROOT=$PWD
# determine object directory
set o="$SICS_ROOT/obj/$SICS_VERSION/$1"
@ -27,6 +30,8 @@ else
rm -f $o/src
echo ln -s $SICS_ROOT/$1 $o/src
ln -s $SICS_ROOT/$1 $o/src
rm -f $o/cd_obj
echo "cd $SICS_ROOT/$1" > $o/cd_obj
endif
endif

1
matrix/cd_obj Normal file
View File

@ -0,0 +1 @@
cd ../obj/$SICS_VERSION/matrix

View File

@ -5,6 +5,7 @@
#--------------------------------------------------------------------------
VPATH=$(SRC)
ROOT=..
OBJ= matadd.o matcreat.o matdet.o matdump.o matdurbn.o materr.o \
matinv.o matmul.o matsolve.o matsub.o matsubx.o mattoepz.o \