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
|
--- cnf/mak/afnix-freebsd.mak.orig Wed Aug 31 21:59:00 2005
+++ cnf/mak/afnix-freebsd.mak Wed Aug 31 22:00:29 2005
@@ -1,6 +1,6 @@
# ----------------------------------------------------------------------------
-# - afnix-gcc-3 -
-# - afnix compiler configuration - gcc configuration -
+# - afnix-freebsd -
+# - afnix compiler configuration - FreeBSD system compiler configuration -
# ----------------------------------------------------------------------------
# - This program is free software; you can redistribute it and/or modify -
# - it provided that this copyright notice is kept intact. -
@@ -18,21 +18,21 @@
# - compiler and linker section -
# ----------------------------------------------------------------------------
-CC = g++
-LD = gcc
-LK = gcc
+CC = $(CXX)
+LD = $(CXX)
+LK = $(CXX)
AR = ar rc
STDCCFLAGS = -Wall -Werror -MMD -fno-builtin
STACCFLAGS =
DYNCCFLAGS = -fPIC
PLTCCFLAGS =
DEBUGFLAGS = -g
-OPTCCFLAGS = -O2
+OPTCCFLAGS =
PFLCCFLAGS = -g -pg
COVCCFLAGS = -g -fprofile-arcs -ftest-coverage
CPPCCFLAGS = -nostdinc -nostdinc++
CXXCCFLAGS =
-STDDEFINES = -D_REENTRANT
+STDDEFINES = $(PTHREAD_CFLAGS)
DBGDEFINES = -DDEBUG
OPTDEFINES =
STDINCLUDE =
@@ -68,8 +68,8 @@
# adjust for freebsd platform
ifeq ($(PLATNAME),freebsd)
-LD = g++
-LK = g++
+LD = $(CXX)
+LK = $(CXX)
LDFLAGS = -shared
AFXCPPLIBS =
ifeq ($(LKMODE),soname)
@@ -85,7 +85,7 @@
# adjust linker flags for freebsd
ifeq ($(PLATNAME),freebsd)
-LKFLAGS = -pthread
+LKFLAGS = $(PTHREAD_LIBS)
endif
# ----------------------------------------------------------------------------
@@ -102,13 +102,10 @@
# adjust intel processor
ifeq ($(PROCNAME)-$(PROCTYPE),ia-586)
-PLTCCFLAGS += -mcpu=i586
endif
ifeq ($(PROCNAME)-$(PROCTYPE),ia-686)
-PLTCCFLAGS += -mcpu=i686
endif
# adjust sparc processor
ifeq ($(PROCNAME)-$(PROCTYPE),sparc-ultra)
-PLTCCFLAGS += -mcpu=ultrasparc -mtune=ultrasparc
endif
|