Revision 1516

trunk/Makefile (revision 1516)
1
DEBUG=yes
1 2
#default targets depending on compiler
2
all: $(CXX)-all
3
all:
4
	$(MAKE) $(CXX)-all DEBUG=$(DEBUG)
3 5
	@echo ADMB build completed.
4 6
src: $(CXX)-src
5
debug: $(CXX)-debug
7
debug:
8
	$(MAKE) $(CXX)-all DEBUG=yes
6 9
	@echo ADMB debug build completed.
7 10
contrib: $(CXX)-contrib
8
test: $(CXX)-test
11
test:
12
	$(MAKE) $(CXX)-test DEBUG=$(DEBUG)
9 13
copy: $(CXX)-copy
10
verify: $(CXX)-verify
14
verify:
15
	$(MAKE) $(CXX)-verify DEBUG=$(DEBUG)
11 16
doc: $(CXX)-docs
12 17
shared: $(CXX)-shared
13 18
install: $(CXX)-install
trunk/contrib/GNUmakefile (revision 1516)
28 28
  CONTRIB_INCLUDE=$(addsuffix /include,$(CONTRIB_DIR))
29 29
  CONTRIB_LIB=$(addsuffix /lib,$(CONTRIB_DIR))
30 30
endif
31
ifdef DEBUG
31
ifeq ($(DEBUG),yes)
32 32
  OPTION=-g
33 33
endif
34 34
ifdef SHARED
35
  OPTION:=-d $(OPTION)
35
  OPTION:="-d $(OPTION)"
36 36
endif
37 37

  
38 38
all: 
trunk/src/GNUmakefile (revision 1516)
45 45
  ADCXXFLAGS:= -fPIC $(ADCXXFLAGS)
46 46
endif
47 47

  
48
ifdef DEBUG
48
ifeq ($(DEBUG),yes)
49 49
  ADCXXFLAGS:= -g $(ADCXXFLAGS)
50 50
else
51 51
  ifeq ($(CXX),openCC)

Also available in: Unified diff