Debian Codegraph @

nemesis/forbind/Imakefile

raw
1 # Copyright (c) 1998 Sandia Corporation. Under the terms of Contract
2 # DE-AC04-94AL85000 with Sandia Corporation, the U.S. Governement
3 # retains certain rights in this software.
4 #
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are
7 # met:
8 #
9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer.
11 #
12 # * Redistributions in binary form must reproduce the above
13 # copyright notice, this list of conditions and the following
14 # disclaimer in the documentation and/or other materials provided
15 # with the distribution.
16 #
17 # * Neither the name of Sandia Corporation nor the names of its
18 # contributors may be used to endorse or promote products derived
19 # from this software without specific prior written permission.
20 #
21 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 #
33
34 /* Use local include/XXX.h files instead of installed *.h files */
35 ALTINC = IncRef-I../
36
37 F77CPPFLAGS = F77CppFlags
38
39 SRCS = ne_jack.c
40 SRCSF = addrwrpn.F
41
42 OBJS = ${SRCS:.c=.o} ${SRCSF:.F=.o}
43 LibraryTargetSubdirsCopy(libnemIf.a,$(OBJS),../)
44 CleanupCapF(addrwrpn.f)
45
46 #if Build64BitAccess == YES
47 /* Need to compile ne_jack.c without the -DBuild64 option
48 * real* -> float* (actually void* since it handles both float* and double*)
49 */
50 ne_jack32.o: ne_jack.c
51 $(CC) -o ne_jack32.o -c $(CFLAGS) -DDEFAULT_REAL_INT ne_jack.c
52
53 all:: libnemIf32.a
54 libnemIf32.a: ne_jack32.o
55 $(AR) $@ $?
56 $(_NULLCMD_)
57 $(_NULLCMD_)
58 $(CP) $@ ../
59 #endif
60
61 /*
62 * 32-bit build:
63 * Compile ne_jack.c and put in libexoIIv2for.a archive.
64 *
65 * 64-bit build: (using 8-byte integer/real)
66 * Compile addrwrap.F (contains main api name 'func'; calls 'func4' name)
67 * Compile ne_jack.c with -DBuild64 (adds 4_ to function names)
68 * -- put above two object files into libnemIf.a
69 *
70 */
71
72 DependTarget()
73