summaryrefslogtreecommitdiff
path: root/lib/make/make.configuration
diff options
context:
space:
mode:
authorjmasso <jmasso@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-07-29 15:21:00 +0000
committerjmasso <jmasso@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-07-29 15:21:00 +0000
commit15dc04441cb320341d39099357c4236106c7cc81 (patch)
tree48f68254067be98f7b7ba7aa472fb469ba1e0e67 /lib/make/make.configuration
parent1d43ab54179b47fa1cac34b5190e1e904cd9b7b2 (diff)
Added simple support for compiling with DEBUG.
It follows the way MPI was added with "extras". So, to make a configuration be compiled with debug, say make DEBUG=ALL <configname> if fact, now you could say DEBUG=whatevershiticomeup and it's going to work the same... but we will add DEBUG=FORTRAN,C,ALL etc... support in the future. - Joan git-svn-id: http://svn.cactuscode.org/flesh/trunk@810 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/make.configuration')
-rw-r--r--lib/make/make.configuration4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/make/make.configuration b/lib/make/make.configuration
index 7133f0db..f4e7e892 100644
--- a/lib/make/make.configuration
+++ b/lib/make/make.configuration
@@ -58,9 +58,9 @@ endif
$(EXEDIR)$(DIRSEP)$(EXE): $(CONFIG)/make.thornlist $(CONFIG)/cctk_version.h $(patsubst %,$(CCTK_LIBDIR)/lib%.a,$(notdir $(THORNS) $(CACTUSLIBS)))
@echo $(DIVIDER)
@echo Creating $(EXE) in $(EXEDIR) from $(THORNS)
- $(CC) $(CFLAGS) $(CCOMPILEONLY)$(OPTIONSEP)$(TOP)$(DIRSEP)datestamp.o -I$(CONFIG) $(subst /,$(DIRSEP),$(DATESTAMP))
+ $(CC) $(DEBUG_C) $(CFLAGS) $(CCOMPILEONLY)$(OPTIONSEP)$(TOP)$(DIRSEP)datestamp.o -I$(CONFIG) $(subst /,$(DIRSEP),$(DATESTAMP))
if [ ! -d $(EXEDIR) ]; then $(MKDIR) $(EXEDIR) ; fi
- $(LD) $(CREATEEXE)$(OPTIONSEP)$(subst /,$(DIRSEP),$@) $(LDFLAGS) $(EXTRAFLAGS) $(subst /,$(DIRSEP), $(TOP)/datestamp.o) $(CACTUSLIBLINKLINE) $(LIBDIRS:%=-L%) $(LIBS:%=-l%)
+ $(LD) $(CREATEEXE)$(OPTIONSEP)$(subst /,$(DIRSEP),$@) $(DEBUG_LD) $(LDFLAGS) $(EXTRAFLAGS) $(subst /,$(DIRSEP), $(TOP)/datestamp.o) $(CACTUSLIBLINKLINE) $(LIBDIRS:%=-L%) $(LIBS:%=-l%)
@echo $(DIVIDER)
@echo All done !
@echo $(DIVIDER)