summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_lynxos.GNU
blob: 64dd4bff1afa5237f675a4ef69b9b5d34199eb86 (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
90
91
# $Id$
# LynxOS with g++

# NOTE:  with LynxOS 2.5.0-FCS version: 012797-G, you'll need to
#        apply this patch:
# ftp://ftp.lynx.com/pub/patches/v2.5-patches/v2.5-on-x86/000134-00.tar.Z
#
# And, you'll need to apply this patch to /usr/include/netinet/in.h:
# --- in.h.ORIGINAL	Sat Feb  8 09:58:28 1997
# +++ in.h	Wed Nov 26 15:41:04 1997
# @@ -278,8 +278,7 @@
#  	compiler, the macros are not defined:  Functions must be used.
#  */
#  static __inline__ unsigned short
# -htons(arg)
# -unsigned short arg;
# +htons(unsigned short arg)
#  {
#  	unsigned short retval;
#
# @@ -292,8 +291,7 @@
#  }
#
#  static __inline__ unsigned long
# -htonl(arg)
# -unsigned long arg;
# +htonl(unsigned long arg)
#  {
# 	unsigned long retval;
#
# And this patch to /usr/include/name.h:
# --- name.h.ORIGINAL	Sat Feb  8 09:57:36 1997
# +++ name.h	Wed Nov 26 22:38:28 1997
# @@ -112,7 +112,7 @@
#  static __inline__ int _name_fchmod(int nsid, mode_t mode)
#  { return _name_server(_NS_FCHMOD, nsid, mode); }
#
# -static __inline__ int _name_fchown(int nsid, uid_t owner, gid_t group)
# +static __inline__ int _name_fchown(int /* nsid */, uid_t owner, gid_t group)
#  { return _name_server(_NS_FCHOWN, owner, group); }
#
#  static __inline__ int _name_close(int nsid)
#
# And this patch to /usr/include/scsi.h:
# --- scsi.h.ORIGINAL	Sat Feb  8 09:57:43 1997
# +++ scsi.h	Mon Dec  1 09:13:13 1997
# @@ -166,7 +166,7 @@
#  ------------------------------------------------------------------------------
#  */
#  #define GET_DATA_BUFFER_STATUS          0x34	/* O     14.2.1 */
# -#define GET WINDOW                      0x25	/* O     14.2.2 */
# +#define GET_WINDOW                      0x25	/* O     14.2.2 */
#  #define OBJECT_POSITION                 0x31	/* O     14.2.3 */
#  #define SCAN                            0x1B	/* O     14.2.5 */
#  #define SET_WINDOW                      0x24	/* M     14.2.6 */
#
# And this patch to /usr/include/netdb.h:
# --- netdb.h.ORIGINAL	Sat Feb  8 09:57:36 1997
# +++ netdb.h	Mon Dec  1 10:57:15 1997
# @@ -95,6 +95,8 @@
#  extern struct protoent	*getprotobyname	_AP((char *));
#  extern struct protoent  *getprotobynumber _AP((int));
#  extern struct protoent  *getprotoent	_AP((void));
# +int sethostent _AP((int));
# +int endhostent _AP((void));
#
#  /*
#   * Error return codes from gethostbyname() and gethostbyaddr()


debug = 1
shared_libs =
static_libs = 1

CC              = gcc
CXX             = g++
CFLAGS          += -mthreads -pipe -ansi -Wall -Wpointer-arith -Winline
CCFLAGS         += $(CFLAGS) -fno-implicit-templates
DCFLAGS         += -g
DLD             = $(CXX)
LD              = $(CXX)
LIBS            += -lnetinet -lnsl
OCFLAGS         += -O2
AR              = ar
ARFLAGS         = ruv
RANLIB          = @true
PRELIB          = @true

# To save much disk space, strip all executables.  Comment the
# following line out if you want to debug.
POSTLINK        = ; strip $@