-
Notifications
You must be signed in to change notification settings - Fork 0
/
makeconfig.in
106 lines (91 loc) · 3.12 KB
/
makeconfig.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/usr/bin/perl
# $Id: makeconfig.in,v 1.2 2020/07/02 23:55:42 cvsuser Exp $
# -*- mode: perl; tabs: 8; indent-width: 4; -*-
# makelib configuration profiles
#
# This file is part of the WinRSH/WinSSH project.
#
# The WinRSH/WinSSH project is free software: you can redistribute it
# and/or modify it under the terms of the WinRSH/WinSSH project License.
#
# Redistributions of source code must retain the above copyright
# notice, and must be distributed with the license document above.
#
# Redistributions in binary form must reproduce the above copyright
# notice, and must include the license document above in
# the documentation and/or other materials provided with the
# distribution.
#
# The WinRSH/WinSSH project is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# License for more details.
# ==end==
#
# Standard usage
#
# #Configuration
# ifeq ("$(BUILD_TYPE)","") #default
# BUILD_TYPE= debug
# MAKEFLAGS+= BUILD_TYPE=debug
# endif
# ifneq ("$(BUILD_TYPE)","release")
# # MSVC Run-time suffix
# RTSUFFIX=d
# endif
#
# # Common flags
# XFLAGS=
# CFLAGS= @CFLAGS@
# CWARN= @CWARN@
# CDEBUG= @CDEBUG@
# CRELEASE= @CRELEASE@
# CXXFLAGS= @CXXFLAGS@
# CXXDEBUG= @CXXDEBUG@
# ifeq ("$(CXXDEBUG)","")
# CXXDEBUG= $(CDEBUG)
# endif
# CXXRELEASE= @CXXRELEASE@
# ifeq ("$(CXXRELEASE)","")
# CXXRELEASE= $(CRELEASE)
# endif
# LDDEBUG= @LDDEBUG@
# LDRELEASE= @LDRELEASE@
#
# CINCLUDE= <additional> @CINCLUDE@
# CEXTRA= @DEFS@ <additional>
#
# ifeq ("$(BUILD_TYPE)","release")
# CFLAGS+= $(CRELEASE) $(CWARN) $(CINCLUDE) $(CEXTRA) $(XFLAGS)
# CXXFLAGS+= $(CXXRELEASE) $(CWARN) $(CINCLUDE) @CXXINCLUDE@ $(CEXTRA) $(XFLAGS)
# LDFLAGS= $(LDRELEASE) @LDFLAGS@
# else
# CFLAGS+= $(CDEBUG) $(CWARN) $(CINCLUDE) $(CEXTRA) $(XFLAGS)
# CXXFLAGS+= $(CXXDEBUG) $(CWARN) $(CINCLUDE) @CXXINCLUDE@ $(CEXTRA) $(XFLAGS)
# LDFLAGS= $(LDDEBUG) @LDFLAGS@
# endif
# LDLIBS= -L$(D_LIB) @LDLIBS@ @LIBS@ @EXTRALIBS@
#
################################################################################
# Visual studio
if ($TOOLCHAIN =~ /^vs/) {
set_msvc_runtime('dynamic', '$(RTSUFFIX)');
remove_define('WIN32');
add_define('HAVE_CONFIG_H');
add_define('WIN32_WINNT=0x601');
add_define('LIBW32_STATIC');
add_xinclude('$(ROOT)/libw32'); # Extra includes; C and compiler tests.
add_xinclude('$(ROOT)/libw32/msvc'); # MSVC specials
add_application_library('libw32_static.lib');
}
################################################################################
# OpenWatcom
if ($TOOLCHAIN =~ /^owc/) {
remove_define('WIN32');
add_define('HAVE_CONFIG_H');
add_define('WIN32_WINNT=0x601');
add_define('LIBW32_STATIC');
add_xinclude('$(ROOT)/libw32'); # Extra includes; C and compiler tests.
add_application_library('libw32_static.lib');
}
1;