objects may now be separated from sources M.Z.
SKIPPED: psi/make_gen psi/makefile psi/makefile_alpha psi/makefile_linux psi/hardsup/make_gen psi/hardsup/makefile psi/hardsup/makefile_alpha psi/hardsup/makefile_linux psi/tecs/make_gen psi/tecs/makefile psi/tecs/makefile_linux
This commit is contained in:
68
make_forward
Normal file
68
make_forward
Normal file
@@ -0,0 +1,68 @@
|
||||
# This file is included by the makefile.
|
||||
# It forwards the execution to a version specific makefile.
|
||||
# S_DOWN, S_UP and SICS_VERSION must be defined
|
||||
# M. Zolliker 08.2003
|
||||
|
||||
VERS_UNDEFINED=
|
||||
VERS_UNDEFINED$(SICS_VERSION)=version_undefined
|
||||
|
||||
SICS_ROOT=$(PWD)/$(S_UP)
|
||||
MD=cd $(SICS_ROOT)/obj/$(SICS_VERSION)/$(S_DOWN); \
|
||||
make -f $(SRC)makefile_$(SICS_VERSION) SRC=$(SRC)
|
||||
|
||||
# overwrite MD when SICS_VERSION undefined
|
||||
MD$(SICS_VERSION)=@ true
|
||||
|
||||
SRC=src/
|
||||
|
||||
.SUFFIXES: .none
|
||||
|
||||
default: $(VERS_UNDEFINED)
|
||||
$(MD)
|
||||
|
||||
%.o: $(VERS_UNDEFINED)
|
||||
$(MD) $@
|
||||
|
||||
%: $(VERS_UNDEFINED)
|
||||
$(MD) $@
|
||||
|
||||
.DEFAULT: $(VERS_UNDEFINED)
|
||||
$(MD) $@
|
||||
|
||||
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
|
||||
|
||||
cleanall:
|
||||
$(MD:makfil=makefile_alpha) clean
|
||||
$(MD:makfil=makefile_alpha_dummy) clean
|
||||
|
||||
version_undefined:
|
||||
@ echo ""
|
||||
@ echo "Usage:"
|
||||
@ echo ""
|
||||
@ echo "Creating objects and targets mixed up with sources:"
|
||||
@ echo ""
|
||||
@ echo " make -f makefile_xxx [target]"
|
||||
@ echo ""
|
||||
@ echo ' where makefile_xxx is one of'
|
||||
@ echo ""
|
||||
@ ls -1 makefile_* | pr -t -o 4
|
||||
@ echo ""
|
||||
@ 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 ""
|
||||
|
||||
Reference in New Issue
Block a user