source: trunk/ADOL-C/src/Makefile.win @ 71

Last change on this file since 71 was 42, checked in by awalther, 10 years ago

set svn keywords property

  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1include ../winflags_dll
2SUFFIXES=.obj .c .cpp
3
4ADCOBJS=adalloc.obj malloc.obj \
5        adouble.obj avector.obj convolut.obj fortutils.obj forward_partx.obj \
6        fos_forward.obj fos_reverse.obj fov_forward.obj fov_reverse.obj \
7        hos_forward.obj hos_ov_reverse.obj hos_reverse.obj \
8        hov_forward.obj hov_reverse.obj hov_wk_forward.obj \
9        interfaces.obj interfacesf.obj \
10        taputil.obj taputilc.obj tayutil.obj tayutilc.obj zos_forward.obj
11DRVOBJS=drivers\drivers.obj drivers\driversf.obj drivers\odedrivers.obj \
12        drivers\odedriversf.obj drivers\taylor.obj
13SPAOBJS=sparse\int_forward_s.obj sparse\int_forward_t.obj \
14        sparse\int_reverse_s.obj sparse\int_reverse_t.obj \
15        sparse\jacutils.obj sparse\sparse.obj sparse\sparsedrivers.obj \
16        sparse\graph_hess.obj sparse\graph_jac.obj sparse\hessutils.obj
17TAPOBJS=tapedoc\tapedoc.obj
18
19%.obj: %.c
20        @echo CC  $<
21        @echo. >> error_out
22        @echo CC  $< >> error_out
23        @${CC} ${CFLAGS} $< >> error_out
24
25%.obj: %.cpp
26        @echo CXX $<
27        @echo. >> error_out
28        @echo CXX $< >> error_out
29        @${CXX} ${CXXFLAGS} $< >> error_out
30
31adolc.dll: $(ADCOBJS)
32        @if exist drivers\error_out del drivers\error_out
33        @make -C drivers -f Makefile.win library
34        @if exist sparse\error_out del sparse\error_out
35        @make -C sparse -f Makefile.win library
36        @if exist tapedoc\error_out del tapedoc\error_out
37        @make -C tapedoc -f Makefile.win library
38        @echo Creating shared library!
39        @echo. >> error_out
40        @echo Creating shared library! >> error_out
41        @if exist adolc.dll del adolc.dll
42        @${LD} ${LDFLAGS} $(DLLFLAGS) ${ADCOBJS} ${DRVOBJS} ${SPAOBJS} ${TAPOBJS} >> error_out
43ifeq "$(AR)" "CHANGE_ME"
44        @echo Not creating static library!
45        @echo Not creating static library! >> error_out
46else
47        @echo Creating static library!
48        @echo Creating static library! >> error_out
49        @${AR} ${ARFLAGS} ${ADCOBJS} ${DRVOBJS} ${SPAOBJS} ${TAPOBJS} >> error_out
50endif
51
52$(ADCOBJS): Makefile.win
53
54clean:
55        @if exist *.obj del *.obj
56        @if exist adolc.dll del adolc.dll
57        @if exist adolc.exp del adolc.exp
58        @if exist adolc.lib del adolc.lib
59        @if exist error_out del error_out
60        @if exist *~ del *~
61        @make -C drivers -f Makefile.win clean
62        @make -C sparse -f Makefile.win clean
63        @make -C tapedoc -f Makefile.win clean
64
Note: See TracBrowser for help on using the repository browser.