summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-07-28 10:20:57 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-07-28 10:20:57 +0000
commitf574ef1853171f7818a87c86f1cdae2365208c97 (patch)
treef8cebc2f60e68b292cfdb6ed71dfab82b8067b47 /lib
parentf0b9884fb23dd066ddb049ef88d769c1f34f0bdb (diff)
Make a EXEDIR directory and put EXE there
git-svn-id: http://svn.cactuscode.org/flesh/trunk@805 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib')
-rw-r--r--lib/make/make.configuration7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/make/make.configuration b/lib/make/make.configuration
index f60caf21..7133f0db 100644
--- a/lib/make/make.configuration
+++ b/lib/make/make.configuration
@@ -55,11 +55,12 @@ ifneq ($(strip $(THORNS)),)
endif
# Build the executable
-$(EXE): $(CONFIG)/make.thornlist $(CONFIG)/cctk_version.h $(patsubst %,$(CCTK_LIBDIR)/lib%.a,$(notdir $(THORNS) $(CACTUSLIBS)))
+$(EXEDIR)$(DIRSEP)$(EXE): $(CONFIG)/make.thornlist $(CONFIG)/cctk_version.h $(patsubst %,$(CCTK_LIBDIR)/lib%.a,$(notdir $(THORNS) $(CACTUSLIBS)))
@echo $(DIVIDER)
- @echo Creating $(EXE) from $(THORNS)
+ @echo Creating $(EXE) in $(EXEDIR) from $(THORNS)
$(CC) $(CFLAGS) $(CCOMPILEONLY)$(OPTIONSEP)$(TOP)$(DIRSEP)datestamp.o -I$(CONFIG) $(subst /,$(DIRSEP),$(DATESTAMP))
- $(LD) $(CREATEEXE)$(OPTIONSEP)$(subst /,$(DIRSEP),$@) $(LDFLAGS) $(EXTRAFLAGS) $(subst /,$(DIRSEP), $(TOP)/datestamp.o) $(CACTUSLIBLINKLINE) $(LIBDIRS:%=-L%) $(LIBS:%=-l%)
+ if [ ! -d $(EXEDIR) ]; then $(MKDIR) $(EXEDIR) ; fi
+ $(LD) $(CREATEEXE)$(OPTIONSEP)$(subst /,$(DIRSEP),$@) $(LDFLAGS) $(EXTRAFLAGS) $(subst /,$(DIRSEP), $(TOP)/datestamp.o) $(CACTUSLIBLINKLINE) $(LIBDIRS:%=-L%) $(LIBS:%=-l%)
@echo $(DIVIDER)
@echo All done !
@echo $(DIVIDER)