summaryrefslogtreecommitdiff
path: root/lib/make/known-architectures/cygwin
blob: 4f3b45c5ba5373eaa8a76b41f434ea02a2a294a7 (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
#! /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$
# @@*/


echo Setting compiler to cl
CC="cl"
CXX="cl"

echo Setting linker to f90
LD="f90"

# /Gd means use __cdecl, it's /Gz for __stdcall
CFLAGS="/nologo /Oxy- /Gd"
CXXFLAGS="/nologo /TP /Oxy- /Gd"

# Fortran routines called from C, and C routines called from Fortran
#  need __stdcall
FMODIFIER="__stdcall"

F90FLAGS="/fast"

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 -p"

CACTUSLIBLINKLINE='$(addsuffix .a,$(addprefix $(subst /,$(DIRSEP),$(CCTK_LIBDIR))$(DIRSEP)lib,$(notdir $(ALLCACTUSLIBS))))'