blob: aea729575a32399d89c0714024c3736cde681563 (
plain)
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
88
89
|
#! /bin/sh
# /*@@
# @file cygwin
# @date Thu Jun 24 22:56:51 1999
# @author Tom Goodale
# @desc
# First stab at a know architecture file for cygwin from
# examination of Joan's changes.
# @enddesc
# @version $Header$
# @@*/
if test "$CCTK_CONFIG_STAGE" = "preferred-compilers" ; then
if test -z "$CC"; then
echo Setting C compiler to cl
CC="cl"
fi
if test -z "$CXX"; then
echo Setting C++ compiler to cl
CXX="cl"
fi
if test -z "$LD"; then
echo Setting linker to f90
LD="f90"
fi
else
# /Gd means use __cdecl, it's /Gz for __stdcall
if test -z "$CFLAGS"; then
CFLAGS="/nologo /Oxy- /Gd"
fi
if test -z "$CXXFLAGS" ; then
CXXFLAGS="/nologo /TP /Oxy- /Gd"
fi
if test -z "$F90FLAGS" ; then
F90FLAGS="/fast /iface:cref"
fi
CCOMPILEONLY="/c /Fo"
FCOMPILEONLY="/compile_only /object:"
CREATEEXE="-exe:"
SYS_INC_DIRS="/PROGRA~/MICROS~1/VC98/INCLUDE"
DIRSEP="\\\\"
OPTIONSEP="# not even a single a single space under cygwin"
# Convert //a to a:
GET_WD="pwd | sed 's,^//\(.\)/,\1:/,' | sed 's,/,\\\\\\,g' "
C_DEPEND='$(CPP) -E -MM -nostdinc $(CPPFLAGS) '
CXX_DEPEND='$(CPP) -E -MM -nostdinc $(CPPFLAGS) '
MKDIR="mkdir "
MKDIRFLAGS=" -p "
CACTUSLIBLINKLINE='$(addsuffix .a,$(addprefix $(subst /,$(DIRSEP),$(CCTK_LIBDIR))$(DIRSEP)lib,$(notdir $(ALLCACTUSLIBS))))'
# Windows libraries have to explicitly appear on the link line with full name
# So ignore the LIBDIRS variable and don't put flags on.
GENERAL_LIBRARIES='$(LIBS)'
# The Windows file system requires perl backup files to be made when
# doing inplace editing
PERL_BACKUP_NECESSARY='yes'
cat >> cctk_archdefs.h <<EOF;
/* WIN stuff */
#define WIN32
EOF
fi
|