forked from MDSplus/mdsplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
88 lines (65 loc) · 3.09 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
include @top_builddir@/Makefile.inc
LIBPREFIX=MdsLib
srcdir=@srcdir@
builddir=@builddir@
VPATH=@srcdir@
MKDIR_P=@MKDIR_P@
@AX_RECONFIGURE_TARGET@
@MINGW_TRUE@ IMPLIB_MdsLib=@[email protected]
@MINGW_TRUE@ IMPLIB_MdsLib_client=@MAKELIBDIR@MdsLib_client.dll.a
@MINGW_TRUE@ IMPLIB_MdsLib_fortran=@MAKELIBDIR@MdsLib_fortran.dll.a
LIBS = @LIBS@ @GLOBUS_LIBS@ $(LIBSOCKET) @LIBRESOLV@ @LIBM@
MDSLIB_LIBS=-lTdiShr -lTreeShr -lMdsShr
FFLAGS += $(FCFLAGS)
SOURCES = MdsLib.c
OBJECTS = $(SOURCES:.c=.o)
OBJECTS_CLIENT = MdsLib_client.o
OBJECTS_FORTRAN = MdsLib_fortran.o
all: \
@MAKEBINDIR@ @MAKELIBDIR@\
@MAKESHLIBDIR@@LIBPRE@MdsLib_client@SHARETYPE@ $(IMPLIB_MdsLib_Client)\
@MAKESHLIBDIR@@LIBPRE@MdsLib@SHARETYPE@ $(IMPLIB_MdsLib)\
@MAKESHLIBDIR@@LIBPRE@MdsLib_fortran@SHARETYPE@ $(IMPLIB_MdsLib_fortran)\
@MAKELIBDIR@@LIBPRE@MdsLib_client.a\
@MAKELIBDIR@@LIBPRE@MdsLib_fortran.a\
@MAKELIBDIR@@[email protected]
depend:
@makedepend -- $(CFLAGS) -- $(SOURCES)
clean:
@ $(RM) $(OBJECTS) $(OBJECTS_CLIENT)\
@MAKELIBDIR@@[email protected]\
@MAKELIBDIR@@LIBPRE@MdsLib_client.a\
@MAKELIBDIR@@LIBPRE@MdsLib_fortran.a\
@MAKESHLIBDIR@@LIBPRE@MdsLib@SHARETYPE@\
@MAKESHLIBDIR@@LIBPRE@MdsLib_client@SHARETYPE@\
@MAKESHLIBDIR@@LIBPRE@MdsLib_fortran@SHARETYPE@\
$(IMPLIB_MdsLib) $(IMPLIB_MdsLib_client) $(IMPLIB_MdsLib_fortran)
install: $(libdir)
$(MKDIR_P) $(libdir)
$(INSTALL) -m 644 @MAKELIBDIR@@[email protected] @MAKELIBDIR@@LIBPRE@MdsLib_client.a @MAKELIBDIR@@LIBPRE@MdsLib_fortran.a $(libdir)
$(INSTALL) -m 755 @MAKESHLIBDIR@@LIBPRE@MdsLib@SHARETYPE@ @MAKESHLIBDIR@@LIBPRE@MdsLib_client@SHARETYPE@ @MAKESHLIBDIR@@LIBPRE@MdsLib_fortran@SHARETYPE@ $(IMPLIB_MdsLib) $(IMPLIB_MdsLib_client) $(libdir)
MdsLib = @MAKESHLIBDIR@@LIBPRE@MdsLib@SHARETYPE@ $(IMPLIB_MdsLib)
@MINGW_TRUE@ MAKE_IMPLIB_MdsLib=-Wl,--out-implib,$(IMPLIB_MdsLib)
$(MdsLib): $(OBJECTS)
$(LINK.c) $(OUTPUT_OPTION) @LINKSHARED@ $^ -L@MAKELIBDIR@ -lMdsShr -lMdsIpShr -L@MAKESHLIBDIR@ $(MDSLIB_LIBS) $(LIBS) $(GLOBUS_LDFLAGS) $(MAKE_IMPLIB_MdsLib)
@MAKELIBDIR@@[email protected]: $(OBJECTS)
$(AR) -cr $@ $^
@RANLIB@ $@
@MINGW_TRUE@ MAKE_IMPLIB_MdsLib_client=-Wl,--out-implib,$(IMPLIB_MdsLib_client)
@MAKESHLIBDIR@@LIBPRE@MdsLib_client@SHARETYPE@ : $(OBJECTS_CLIENT)
$(LINK.c) $(OUTPUT_OPTION) @LINKSHARED@ $^ -L@MAKELIBDIR@ -lMdsShr -lMdsIpShr $(LIBS) $(GLOBUS_LDFLAGS) $(MAKE_IMPLIB_MdsLib_client)
@MAKELIBDIR@@LIBPRE@MdsLib_client.a : $(OBJECTS_CLIENT)
$(AR) -cr $@ $^
@RANLIB@ $@
@MINGW_TRUE@ MAKE_IMPLIB_MdsLib_fortran=-Wl,--out-implib,$(IMPLIB_MdsLib_fortran)
@MAKESHLIBDIR@@LIBPRE@MdsLib_fortran@SHARETYPE@ : $(OBJECTS_FORTRAN)
$(LINK.c) $(OUTPUT_OPTION) @LINKSHARED@ $^ -L@MAKELIBDIR@ -lMdsShr -lMdsIpShr -L@MAKESHLIBDIR@ $(MDSLIB_LIBS) $(LIBS) $(GLOBUS_LDFLAGS) $(MAKE_IMPLIB_MdsLib_fortran)
@MAKELIBDIR@@LIBPRE@MdsLib_fortran.a : $(OBJECTS_FORTRAN)
$(AR) -cr $@ $^
@RANLIB@ $@
MdsLib.o: MdsLib.c
$(COMPILE.c) $< $(OUTPUT_OPTION) -DFILENAME=MdsLib.c
MdsLib_client.o: MdsLib.c
$(COMPILE.c) $< $(OUTPUT_OPTION) -DFILENAME=MdsLib.c -D_CLIENT_ONLY
MdsLib_fortran.o: MdsLib.c
$(COMPILE.c) $< $(OUTPUT_OPTION) -DFILENAME=MdsLib.c -DOLD_FORTRAN_API