Revision 1408

trunk/contrib/ad2csv/GNUmakefile (revision 1408)
1
ifneq (,$(findstring sh.exe,$(SHELL)))
2
  SHELL=cmd
3
endif
4

  
5
ifeq ($(SHELL),cmd)
6
..\..\build\dist\contrib\bin\ad2csv.exe: ad2csv.cpp main.cpp
7
	..\..\admb $(OPTION) $^
8
	copy ad2csv.exe $@
9
else
1 10
../../build/dist/contrib/bin/ad2csv: ad2csv.cpp main.cpp
2 11
	../../admb $(OPTION) $^
3
ifeq ($(SHELL),sh.exe)
4
	copy ad2csv $@
5
else
6 12
	cp ad2csv $@
7 13
endif
8 14

  
9 15
clean:
16
ifeq ($(SHELL),cmd)
17
	del ad2csv ad2csv.exe main.obj ad2csv.obj
18
	del main.o ad2csv.o
19
else
10 20
	rm -f ad2csv ad2csv.exe main.obj ad2csv.obj
11 21
	rm -f main.o ad2csv.o
22
endif
trunk/contrib/statslib/GNUmakefile (revision 1408)
1
ifneq (,$(findstring sh.exe,$(SHELL)))
2
  SHELL=cmd
3
endif
4

  
1 5
include objects.lst
2 6

  
3 7
all: $(addprefix $(PREFIX_OBJ), $(OBJECTS))
......
3 7

  
4 8
$(PREFIX_OBJ)%.obj: %.cpp
5
ifeq ($(SHELL),sh.exe)
9
ifeq ($(SHELL),cmd)
6 10
	..\..\admb -c $(OPTION) $<
7 11
	copy $(basename $<).obj $@
......
12 16
endif
13 17

  
14 18
clean:
15
ifeq ($(SHELL),sh.exe)
19
ifeq ($(SHELL),cmd)
16 20
	-del *.obj
17 21
	-del *.o
18 22
else
trunk/contrib/GNUmakefile (revision 1408)
1
ifeq ($(SHELL),sh.exe)
1
ifneq (,$(findstring sh.exe,$(SHELL)))
2 2
  OBJSDIR=..\..\build\objects\dist
3 3
  OBJSDIR:=$(addsuffix \,$(OBJSDIR))
4 4
  ifndef DIST
5 5
    DIST=..\build\dist
6 6
  endif
7 7
  CONTRIBDIR=$(addsuffix \contrib\,$(DIST))
8
  SHELL=cmd
8 9
else
9 10
  OBJSDIR=../../build/objects/dist
10 11
  OBJSDIR:=$(addsuffix /,$(OBJSDIR))
......
14 15
  CONTRIBDIR=$(addsuffix /contrib/,$(DIST))
15 16
endif
16 17

  
17
all: build-gdbprintlib build-statslib build-ecolib build-qfclib build-src
18
ifeq ($(SHELL),sh.exe)
18
all: libs build-ad2csv
19

  
20
libs: build-gdbprintlib build-statslib build-ecolib build-qfclib build-src
21
ifeq ($(SHELL),cmd)
19 22
	$(AR) -rs $(CONTRIBDIR)lib\libcontrib.a ..\build\objects\dist\saflp-contrib-*.obj
20 23
	$(AR) -rs $(CONTRIBDIR)lib\libcontribo.a ..\build\objects\dist\optlp-contrib-*.obj
21 24
else
......
23 26
	$(AR) -rs $(CONTRIBDIR)lib/libcontribo.a ../build/objects/dist/optlp-contrib-*.obj
24 27
endif
25 28

  
26
ad2csv: build-ad2csv
27

  
28 29
build-gdbprintlib:
29 30
	$(MAKE) --directory=gdbprintlib PREFIX_OBJ=$(OBJSDIR)saflp-contrib-gdbprintlib-
30 31
	$(MAKE) --directory=gdbprintlib PREFIX_OBJ=$(OBJSDIR)optlp-contrib-gdbprintlib-
31
ifeq ($(SHELL),sh.exe)
32
ifeq ($(SHELL),cmd)
32 33
	copy gdbprintlib\gdbprintlib.h $(CONTRIBDIR)include
33 34
else
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff