Revision 1462 trunk/contrib/GNUmakefile

GNUmakefile (revision 1462)
21 21
  CONTRIB_INCLUDE=$(addsuffix /include,$(CONTRIB_DIR))
22 22
  CONTRIB_LIB=$(addsuffix /lib,$(CONTRIB_DIR))
23 23
endif
24
ifdef DEBUG
25
OPTION=-g
26
endif
24 27

  
25 28
all: 
26 29
	$(MAKE) contrib-includes
......
44 47
endif
45 48

  
46 49
contrib-ad2csv: contrib-dirs
47
	$(MAKE) --directory=ad2csv CONTRIB_BIN=$(CONTRIB_BIN)
50
	$(MAKE) --directory=ad2csv OPTION=$(OPTION) CONTRIB_BIN=$(CONTRIB_BIN)
48 51

  
49 52
contrib-ecolib:
50
	$(MAKE) --directory=ecolib CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
53
	$(MAKE) --directory=ecolib OPTION=$(OPTION) CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
51 54

  
52 55
contrib-gdbprintlib:
53
	$(MAKE) --directory=gdbprintlib CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
56
	$(MAKE) --directory=gdbprintlib OPTION=$(OPTION) CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
54 57

  
55 58
contrib-qfclib:
56
	$(MAKE) --directory=qfclib CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
59
	$(MAKE) --directory=qfclib OPTION=$(OPTION) CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
57 60

  
58 61
contrib-statslib:
59
	$(MAKE) --directory=statslib CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
62
	$(MAKE) --directory=statslib OPTION=$(OPTION) CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
60 63

  
61 64
contrib-src:
62
	$(MAKE) --directory=src CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
65
	$(MAKE) --directory=src OPTION=$(OPTION) CONTRIB_OBJS_DIR=$(CONTRIB_OBJS_DIR)
63 66

  
64 67
contrib-dirs:
65 68
ifeq ($(SHELL),cmd)

Also available in: Unified diff