Revision 1427 trunk/contrib/GNUmakefile

GNUmakefile (revision 1427)
18 18
  CONTRIB_LIB=$(addsuffix /contrib/lib/,$(DIST))
19 19
endif
20 20

  
21
all: libs contrib-ad2csv
21
all: contrib-libs contrib-ad2csv
22 22

  
23
libs: contrib-gdbprintlib contrib-statslib contrib-ecolib contrib-qfclib contrib-src
23
contrib-libs: contrib-ecolib contrib-gdbprintlib contrib-qfclib contrib-statslib contrib-src
24 24
	$(AR) -rs $(CONTRIB_LIB)libcontrib.a $(OBJS_DIR2)saflp-contrib-*.obj
25 25
	$(AR) -rs $(CONTRIB_LIB)libcontribo.a $(OBJS_DIR2)optlp-contrib-*.obj
26 26

  
27
contrib-gdbprintlib:
28
	$(MAKE) --directory=gdbprintlib PREFIX=$(OBJS_DIR)saflp-$@- CONTRIB_DIR=$(CONTRIB_DIR)
29
	$(MAKE) --directory=gdbprintlib OPTION=-f PREFIX=$(OBJS_DIR)optlp-$@- CONTRIB_DIR=$(CONTRIB_DIR)
30

  
31
contrib-statslib:
32
	$(MAKE) --directory=statslib PREFIX=$(OBJS_DIR)saflp-$@- CONTRIB_DIR=$(CONTRIB_DIR)
33
	$(MAKE) --directory=statslib OPTION=-f PREFIX=$(OBJS_DIR)optlp-$@- CONTRIB_DIR=$(CONTRIB_DIR)
34

  
35 27
contrib-ecolib:
36 28
	$(MAKE) --directory=ecolib PREFIX=$(OBJS_DIR)saflp-$@- CONTRIB_DIR=$(CONTRIB_DIR)
37 29
	$(MAKE) --directory=ecolib OPTION=-f PREFIX=$(OBJS_DIR)optlp-$@- CONTRIB_DIR=$(CONTRIB_DIR)
38 30

  
31
contrib-gdbprintlib:
32
	$(MAKE) --directory=gdbprintlib PREFIX=$(OBJS_DIR)saflp-$@- CONTRIB_DIR=$(CONTRIB_DIR)
33
	$(MAKE) --directory=gdbprintlib OPTION=-f PREFIX=$(OBJS_DIR)optlp-$@- CONTRIB_DIR=$(CONTRIB_DIR)
34

  
39 35
contrib-qfclib:
40 36
	$(MAKE) --directory=qfclib PREFIX=$(OBJS_DIR)saflp-$@- CONTRIB_DIR=$(CONTRIB_DIR)
41 37
	$(MAKE) --directory=qfclib OPTION=-f PREFIX=$(OBJS_DIR)optlp-$@- CONTRIB_DIR=$(CONTRIB_DIR)
42 38

  
39
contrib-statslib:
40
	$(MAKE) --directory=statslib PREFIX=$(OBJS_DIR)saflp-$@- CONTRIB_DIR=$(CONTRIB_DIR)
41
	$(MAKE) --directory=statslib OPTION=-f PREFIX=$(OBJS_DIR)optlp-$@- CONTRIB_DIR=$(CONTRIB_DIR)
42

  
43 43
contrib-src:
44 44
	$(MAKE) --directory=src PREFIX=$(OBJS_DIR)saflp-$@- CONTRIB_DIR=$(CONTRIB_DIR)
45 45
	$(MAKE) --directory=src OPTION=-f PREFIX=$(OBJS_DIR)optlp-$@- CONTRIB_DIR=$(CONTRIB_DIR)
......
47 47
contrib-ad2csv:
48 48
	$(MAKE) --directory=ad2csv OPTION=-f
49 49

  
50
build-admb2r:
51
	$(MAKE) --directory=admb2r ADMB_HOME="$(ADMB_HOME)" gcc
52

  
53 50
test:
54 51
	$(MAKE) --directory=src test 
55 52

  
56
test-needR:
53
contrib-admb2r:
54
	$(MAKE) --directory=admb2r ADMB_HOME="$(ADMB_HOME)" gcc
55

  
56
contrib-test-R:
57 57
	$(MAKE) --directory=ecolib test
58 58
	$(MAKE) --directory=qfclib test
59 59

  
60 60
clean:
61
	@$(MAKE) --directory=gdbprintlib clean
62 61
	@$(MAKE) --directory=ecolib clean
62
	@$(MAKE) --directory=gdbprintlib clean
63 63
	@$(MAKE) --directory=qfclib clean
64 64
	@$(MAKE) --directory=statslib clean
65
	@$(MAKE) --directory=ad2csv clean
66
	@$(MAKE) --directory=ad2csv clean
67 65
	@$(MAKE) --directory=src clean
66
	@$(MAKE) --directory=ad2csv clean

Also available in: Unified diff