$(OSTYPE)/usage.debugo \
$(OSTYPE)/util.debugo
-all: $(OSTYPE)/$(OBJECTNAME)
+
+all: $(OSTYPE)/$(OBJECTNAME)
+ if [ ! -L $(OSTYPE) ] ; then \
+ moveHostdependent; \
+ fi
debug: $(OSTYPE)/$(OBJECTNAME).debug
cudagdb: $(OSTYPE)/$(OBJECTNAME).cudagdb
+
$(OSTYPE)/$(OBJECTNAME)::
- @cd $(OSTYPE); \
- $(RM) -f Makefile ; \
- $(CP) ../../../../../Config/Template/$(WORLDNAME)Template.Dir/src/ARCH/Makefile Makefile ; \
- $(MAKE) $(OBJECTNAME)
+ @$(RM) -f $(OSTYPE)/Makefile ; \
+ $(CP) $(EOS_HOME)/src/Config/Template/$(WORLDNAME)Template.Dir/src/ARCH/Makefile $(OSTYPE)/Makefile ; \
+ cd $(OSTYPE); \
+ $(MAKE) $(OBJECTNAME) WORLDNAME=$(WORLDNAME) CLASSNAME=$(CLASSNAME) OBJECTNAME=$(OBJECTNAME)
$(OSTYPE)/$(OBJECTNAME).debug::
+ @$(RM) -f $(OSTYPE)/Makefile ; \
+ $(CP) $(EOS_HOME)/src/Config/Template/$(WORLDNAME)Template.Dir/src/ARCH/Makefile $(OSTYPE)/Makefile ; \
cd $(OSTYPE); \
- $(RM) -f Makefile ; \
- $(CP) ../../../../../Config/Template/$(WORLDNAME)Template.Dir/src/ARCH/Makefile Makefile ; \
- $(MAKE) $(OBJECTNAME).debug
+ $(MAKE) $(OBJECTNAME).debug WORLDNAME=$(WORLDNAME) CLASSNAME=$(CLASSNAME) OBJECTNAME=$(OBJECTNAME)
$(OSTYPE)/$(OBJECTNAME).cudagdb::
+ @$(RM) -f $(OSTYPE)/Makefile ; \
+ $(CP) $(EOS_HOME)/src/Config/Template/$(WORLDNAME)Template.Dir/src/ARCH/Makefile $(OSTYPE)/Makefile ; \
cd $(OSTYPE); \
- $(RM) -f Makefile ; \
- $(CP) ../../../../../Config/Template/$(WORLDNAME)Template.Dir/src/ARCH/Makefile Makefile ; \
- $(MAKE) $(OBJECTNAME).cudagdb
+ $(MAKE) $(OBJECTNAME).cudagdb WORLDNAME=$(WORLDNAME) CLASSNAME=$(CLASSNAME) OBJECTNAME=$(OBJECTNAME)
cvsupdate::
cvs -d $(EOS_CVSROOT) update -d
depend::
@echo dependency checking now
- @if [ ! -d $(OSTYPE) ] ; \
- then \
- mkdir $(OSTYPE); \
- else \
- rm -f $(OSTYPE)/.Depend ; \
+ @if [ ! -L $(OSTYPE) ] ; then \
+ moveHostdependent; \
fi
#echo C
@if [ -f $(OBJECTNAME).c ] ; \