Revision 897

trunk/src/tools99/GNUmakefile (revision 897)
1 1
include objects.lst
2 2

  
3
all: $(addprefix $(PREFIX_OBJ), $(OBJ0) $(OBJ1) $(OBJ2) $(OBJ3))
3
all: $(sort $(addprefix $(PREFIX_OBJ), $(OBJ0) $(OBJ1) $(OBJ2) $(OBJ3)))
4 4

  
5 5
$(PREFIX_OBJ)%.obj: %.cpp
6 6
	$(CXX) -c $(CXXFLAGS) -o $@ $<
trunk/src/GNUmakefile (revision 897)
1
MAKEFLAG_J=-j
1 2
ifndef DISK
2 3
DISK=../build/dist
3 4
endif
......
30 31
	@printf "For installation, check README.txt.\n"
31 32

  
32 33
dist:
33
	rm -rf ${DISK}/contrib
34
	rm -rf ${DISK}/docs
35
	rm -rf ${DISK}/examples
36
	rm -rf ${DISK}/src
37
	rm -rf ${DISK}/tests
38
	rm -rf ${DISK}/utilities
34
	rm -rf ${DISK}
39 35
	mkdir -p ${DISK}
40 36
	cp -R ../contrib ${DISK}
41 37
	cp -R ../docs ${DISK} 
......
61 57
admbsaf:
62 58
	mkdir -p ${DISK}/lib
63 59
	mkdir -p ${LIBPATH}
64
	$(MAKE) --directory=df1b2-separable CXX=$(CXX) CXXFLAGS="$(CXXFLAGS) -DSAFE_ALL $(CXXFLAGS_INCLUDES)" PREFIX_OBJ=../${LIBPATH}/saflp-df1b2-separable- DISKDIR=../${DISK}
65
	$(MAKE) --directory=linad99 CXX=$(CXX) CXXFLAGS="$(CXXFLAGS) -DSAFE_ALL $(CXXFLAGS_INCLUDES)" PREFIX_OBJ=../${LIBPATH}/saflp-linad99- DISKDIR=../${DISK}
66
	$(MAKE) --directory=nh99 CC=$(CC) CXX=$(CXX) CXXFLAGS="$(CXXFLAGS) -DOPT_LIB $(CXXFLAGS_INCLUDES)" PREFIX_OBJ=../${LIBPATH}/optlp-nh99- ADMB_CONFIGURE=${ADMB_CONFIGURE} DISKDIR=../${DISK}
67
	$(MAKE) --directory=tools99 CXX=$(CXX) CXXFLAGS="$(CXXFLAGS) -DOPT_LIB $(CXXFLAGS_INCLUDES)" PREFIX_OBJ=../${LIBPATH}/optlp-tools99- DISKDIR=../${DISK}
60
	$(MAKE) $(MAKEFLAG_J) --directory=df1b2-separable CXX=$(CXX) CXXFLAGS="$(CXXFLAGS) -DSAFE_ALL $(CXXFLAGS_INCLUDES)" PREFIX_OBJ=../${LIBPATH}/saflp-df1b2-separable- DISKDIR=../${DISK}
61
	$(MAKE) $(MAKEFLAG_J) --directory=linad99 CXX=$(CXX) CXXFLAGS="$(CXXFLAGS) -DSAFE_ALL $(CXXFLAGS_INCLUDES)" PREFIX_OBJ=../${LIBPATH}/saflp-linad99- DISKDIR=../${DISK}
62
	$(MAKE) $(MAKEFLAG_J) --directory=nh99 CC=$(CC) CXX=$(CXX) CXXFLAGS="$(CXXFLAGS) -DOPT_LIB $(CXXFLAGS_INCLUDES)" PREFIX_OBJ=../${LIBPATH}/optlp-nh99- ADMB_CONFIGURE=${ADMB_CONFIGURE} DISKDIR=../${DISK}
63
	$(MAKE) $(MAKEFLAG_J) --directory=tools99 CXX=$(CXX) CXXFLAGS="$(CXXFLAGS) -DOPT_LIB $(CXXFLAGS_INCLUDES)" PREFIX_OBJ=../${LIBPATH}/optlp-tools99- DISKDIR=../${DISK}
68 64
	rm -vf ${DISK}/lib/libadmb.a
69 65
	$(AR) -rs ${DISK}/lib/libadmb.a ../build/objects/dist/saflp-linad99-*.obj
70 66
	$(AR) -rs ${DISK}/lib/libadmb.a ../build/objects/dist/saflp-df1b2-separable-*.obj
......
74 70
admbopt:
75 71
	mkdir -p ${DISK}/lib
76 72
	mkdir -p ${LIBPATH}
77
	$(MAKE) --directory=df1b2-separable CC=$(CC) CXX=$(CXX) CXXFLAGS="$(CXXFLAGS) -DOPT_LIB $(CXXFLAGS_INCLUDES)" PREFIX_OBJ=../${LIBPATH}/optlp-df1b2-separable- DISKDIR=../${DISK}
78
	$(MAKE) --directory=linad99 CXX=$(CXX) CXXFLAGS="$(CXXFLAGS) -DOPT_LIB $(CXXFLAGS_INCLUDES)" PREFIX_OBJ=../${LIBPATH}/optlp-linad99- DISKDIR=../${DISK}
79
	$(MAKE) --directory=nh99 CC=$(CC) CXX=$(CXX) CXXFLAGS="$(CXXFLAGS) -DOPT_LIB $(CXXFLAGS_INCLUDES)" PREFIX_OBJ=../${LIBPATH}/optlp-nh99- ADMB_CONFIGURE=${ADMB_CONFIGURE} DISKDIR=../${DISK}
80
	$(MAKE) --directory=tools99 CXX=$(CXX) CXXFLAGS="$(CXXFLAGS) -DOPT_LIB $(CXXFLAGS_INCLUDES)" PREFIX_OBJ=../${LIBPATH}/optlp-tools99- DISKDIR=../${DISK}
73
	$(MAKE) $(MAKEFLAG_J) --directory=df1b2-separable CC=$(CC) CXX=$(CXX) CXXFLAGS="$(CXXFLAGS) -DOPT_LIB $(CXXFLAGS_INCLUDES)" PREFIX_OBJ=../${LIBPATH}/optlp-df1b2-separable- DISKDIR=../${DISK}
74
	$(MAKE) $(MAKEFLAG_J) --directory=linad99 CXX=$(CXX) CXXFLAGS="$(CXXFLAGS) -DOPT_LIB $(CXXFLAGS_INCLUDES)" PREFIX_OBJ=../${LIBPATH}/optlp-linad99- DISKDIR=../${DISK}
75
	$(MAKE) $(MAKEFLAG_J) --directory=nh99 CC=$(CC) CXX=$(CXX) CXXFLAGS="$(CXXFLAGS) -DOPT_LIB $(CXXFLAGS_INCLUDES)" PREFIX_OBJ=../${LIBPATH}/optlp-nh99- ADMB_CONFIGURE=${ADMB_CONFIGURE} DISKDIR=../${DISK}
76
	$(MAKE) $(MAKEFLAG_J) --directory=tools99 CXX=$(CXX) CXXFLAGS="$(CXXFLAGS) -DOPT_LIB $(CXXFLAGS_INCLUDES)" PREFIX_OBJ=../${LIBPATH}/optlp-tools99- DISKDIR=../${DISK}
81 77
	rm -vf ${DISK}/lib/libadmbo.a
82 78
	$(AR) -rs ${DISK}/lib/libadmbo.a ../build/objects/dist/optlp-linad99-*.obj
83 79
	$(AR) -rs ${DISK}/lib/libadmbo.a ../build/objects/dist/optlp-df1b2-separable-*.obj
......
120 116
	cp ../scripts/admb/adlink ${DISK}/bin
121 117
	rm -f ${DISK}/bin/admb-cfg.sh
122 118
	echo "CXX=$(CXX)" > ${DISK}/bin/admb-cfg.sh
119
	$(MAKE) --directory=df1b2-separable CC=$(CC) DISKDIR=../${DISK} bins
120
	$(MAKE) --directory=nh99 CC=$(CC) DISKDIR=../${DISK} bins
123 121

  
124 122
bins2:
125 123
ifeq ($(SHELL),sh.exe)
trunk/src/nh99/GNUmakefile (revision 897)
6 6
OBJECTS = $(OBJ0) $(OBJ1) $(OBJ2) $(OBJ3)
7 7
endif
8 8

  
9
all: $(sort $(addprefix $(PREFIX_OBJ), $(OBJECTS)))
9 10

  
10
all: $(addprefix $(PREFIX_OBJ), $(OBJECTS)) $(DISKDIR)/bin/tpl2cpp
11
bins: $(DISKDIR)/bin/tpl2cpp
11 12

  
12 13
$(DISKDIR)/bin/tpl2cpp: tpl2cpp.c
13 14
ifeq ("$(CC)","cc")
trunk/src/linad99/GNUmakefile (revision 897)
1 1
include objects.lst
2 2

  
3
all: $(addprefix $(PREFIX_OBJ), $(OBJ0) $(OBJ1) $(OBJ2) $(OBJ3)) $(PREFIX_OBJ)hs_sparse.obj
3
all: $(sort $(addprefix $(PREFIX_OBJ), $(OBJ0) $(OBJ1) $(OBJ2) $(OBJ3))) $(PREFIX_OBJ)hs_sparse.obj
4 4

  
5 5
$(PREFIX_OBJ)hs_sparse.obj: ../sparse/hs_sparse.cpp
6 6
	$(CXX) -c $(CXXFLAGS) -o $@ $<
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff