Lines 1-12
Link Here
|
1 |
--- make_freebsd.mak.orig 2009-06-11 16:10:54.000000000 -0500 |
1 |
--- make_freebsd.mak.orig 2018-03-01 07:35:22.000000000 +0100 |
2 |
+++ make_freebsd.mak 2009-07-11 08:37:19.000000000 -0500 |
2 |
+++ make_freebsd.mak 2018-06-27 11:33:21.105457000 +0200 |
3 |
@@ -1,5 +1,5 @@ |
|
|
4 |
#******************************************************************************* |
5 |
-# Copyright (c) 2000, 2007 IBM Corporation and others. |
6 |
+# Copyright (c) 2000, 2009 IBM Corporation and others. |
7 |
# All rights reserved. This program and the accompanying materials |
8 |
# are made available under the terms of the Eclipse Public License v1.0 |
9 |
# which accompanies this distribution, and is available at |
10 |
@@ -9,7 +9,7 @@ |
3 |
@@ -9,7 +9,7 @@ |
11 |
# IBM Corporation - initial API and implementation |
4 |
# IBM Corporation - initial API and implementation |
12 |
#******************************************************************************* |
5 |
#******************************************************************************* |
Lines 16-45
Link Here
|
16 |
|
9 |
|
17 |
include make_common.mak |
10 |
include make_common.mak |
18 |
|
11 |
|
19 |
@@ -46,7 +46,7 @@ |
12 |
@@ -43,7 +43,7 @@ |
20 |
|
13 |
|
21 |
# Do not use pkg-config to get libs because it includes unnecessary dependencies (i.e. pangoxft-1.0) |
14 |
# Do not use pkg-config to get libs because it includes unnecessary dependencies (i.e. pangoxft-1.0) |
22 |
GTKCFLAGS = `pkg-config --cflags gtk+-2.0` |
15 |
GTKCFLAGS = `pkg-config --cflags gtk+-2.0 gtk+-unix-print-$(GTK_VERSION)` |
23 |
-GTKLIBS = `pkg-config --libs-only-L gtk+-2.0 gthread-2.0` -lgtk-x11-2.0 -lgthread-2.0 -L/usr/X11R6/lib $(XLIB64) -lXtst |
16 |
-GTKLIBS = `pkg-config --libs-only-L gtk+-2.0 gthread-2.0` -lgtk-x11-2.0 -lgthread-2.0 -L/usr/X11R6/lib $(XLIB64) -lXtst |
24 |
+GTKLIBS = `pkg-config --libs-only-L gtk+-2.0 gthread-2.0` -lgtk-x11-2.0 -lgthread-2.0 -L$(LOCALBASE)/lib $(XLIB64) -lXtst |
17 |
+GTKLIBS = `pkg-config --libs-only-L gtk+-2.0 gthread-2.0` -lgtk-x11-2.0 -lgthread-2.0 -L$(LOCALBASE)/lib $(XLIB64) -lXtst |
25 |
|
18 |
|
26 |
CDE_LIBS = -L$(CDE_HOME)/lib -R$(CDE_HOME)/lib -lXt -lX11 -lDtSvc |
19 |
AWT_LFLAGS = -shared |
27 |
|
20 |
AWT_LIBS = -L$(AWT_LIB_PATH) -ljawt |
28 |
@@ -58,8 +58,8 @@ |
21 |
@@ -51,7 +51,8 @@ |
29 |
GNOMECFLAGS = `pkg-config --cflags gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0` |
22 |
ATKCFLAGS = `pkg-config --cflags atk gtk+-2.0 gtk+-unix-print-$(GTK_VERSION)` |
30 |
GNOMELIBS = `pkg-config --libs-only-L gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0` -lgnomevfs-2 -lgnome-2 -lgnomeui-2 |
23 |
ATKLIBS = `pkg-config --libs-only-L atk gtk+-2.0` -latk-1.0 -lgtk-x11-2.0 |
31 |
|
24 |
|
32 |
-GLXCFLAGS = |
25 |
-GLXLIBS = -L/usr/X11R6/lib -lGL -lGLU -lm |
33 |
-GLXLIBS = -shared -fPIC -L/usr/X11R6/lib -lGL -lGLU -lm |
|
|
34 |
+GLXCFLAGS = -I$(LOCALBASE)/include |
26 |
+GLXCFLAGS = -I$(LOCALBASE)/include |
35 |
+GLXLIBS = -shared -fPIC -L$(LOCALBASE)/lib -lGL -lGLU -lm |
27 |
+GLXLIBS = -L$(LOCALBASE)/lib -lGL -lGLU -lm |
36 |
|
28 |
|
37 |
# Uncomment for Native Stats tool |
29 |
# Uncomment for Native Stats tool |
38 |
#NATIVE_STATS = -DNATIVE_STATS |
30 |
#NATIVE_STATS = -DNATIVE_STATS |
39 |
@@ -78,7 +78,17 @@ |
31 |
@@ -70,14 +71,24 @@ |
40 |
-I$(JAVA_HOME)/include/freebsd \ |
32 |
-I$(JAVA_HOME)/include/freebsd \ |
41 |
${SWT_PTR_CFLAGS} |
33 |
${SWT_PTR_CFLAGS} |
42 |
MOZILLALIBS = -shared -Wl,--version-script=mozilla_exports -Bsymbolic |
34 |
MOZILLALFLAGS = -shared -Wl,--version-script=mozilla_exports -Bsymbolic |
43 |
- |
35 |
- |
44 |
+MOZILLAEXCLUDES = -DNO__1XPCOMGlueShutdown \ |
36 |
+MOZILLAEXCLUDES = -DNO__1XPCOMGlueShutdown \ |
45 |
+ -DNO__1XPCOMGlueStartup \ |
37 |
+ -DNO__1XPCOMGlueStartup \ |
Lines 53-70
Link Here
|
53 |
+XULRUNNEREXCLUDES = -DNO__1NS_1InitXPCOM2 |
45 |
+XULRUNNEREXCLUDES = -DNO__1NS_1InitXPCOM2 |
54 |
+ |
46 |
+ |
55 |
SWT_OBJECTS = swt.o c.o c_stats.o callback.o |
47 |
SWT_OBJECTS = swt.o c.o c_stats.o callback.o |
56 |
CDE_OBJECTS = swt.o cde.o cde_structs.o cde_stats.o |
|
|
57 |
AWT_OBJECTS = swt_awt.o |
48 |
AWT_OBJECTS = swt_awt.o |
58 |
@@ -87,7 +97,7 @@ |
49 |
SWTPI_OBJECTS = swt.o os.o os_structs.o os_custom.o os_stats.o |
|
|
50 |
CAIRO_OBJECTS = swt.o cairo.o cairo_structs.o cairo_stats.o |
59 |
ATK_OBJECTS = swt.o atk.o atk_structs.o atk_custom.o atk_stats.o |
51 |
ATK_OBJECTS = swt.o atk.o atk_structs.o atk_custom.o atk_stats.o |
60 |
GNOME_OBJECTS = swt.o gnome.o gnome_structs.o gnome_stats.o |
|
|
61 |
MOZILLA_OBJECTS = swt.o xpcom.o xpcom_custom.o xpcom_structs.o xpcom_stats.o |
52 |
MOZILLA_OBJECTS = swt.o xpcom.o xpcom_custom.o xpcom_structs.o xpcom_stats.o |
62 |
-XULRUNNER_OBJECTS = swt.o xpcomxul.o xpcomxul_custom.o xpcomxul_structs.o xpcomxul_stats.o xpcomxulglue.o xpcomxulglue_stats.o |
53 |
-XULRUNNER_OBJECTS = swt.o xpcomxul.o xpcomxul_custom.o xpcomxul_structs.o xpcomxul_stats.o xpcomxulglue.o xpcomxulglue_stats.o |
63 |
+XULRUNNER_OBJECTS = swt.o xpcomxul.o xpcomxul_custom.o xpcomxul_structs.o xpcomxul_stats.o |
54 |
+XULRUNNER_OBJECTS = swt.o xpcomxul.o xpcomxul_custom.o xpcomxul_structs.o xpcomxul_stats.o |
64 |
XPCOMINIT_OBJECTS = swt.o xpcominit.o xpcominit_structs.o xpcominit_stats.o |
55 |
XPCOMINIT_OBJECTS = swt.o xpcominit.o xpcominit_structs.o xpcominit_stats.o |
65 |
GLX_OBJECTS = swt.o glx.o glx_structs.o glx_stats.o |
56 |
GLX_OBJECTS = swt.o glx.o glx_structs.o glx_stats.o |
66 |
|
57 |
|
67 |
@@ -95,19 +105,20 @@ |
58 |
@@ -85,17 +96,18 @@ |
68 |
-DSWT_VERSION=$(SWT_VERSION) \ |
59 |
-DSWT_VERSION=$(SWT_VERSION) \ |
69 |
$(NATIVE_STATS) \ |
60 |
$(NATIVE_STATS) \ |
70 |
-DFREEBSD -DGTK \ |
61 |
-DFREEBSD -DGTK \ |
Lines 73-98
Link Here
|
73 |
-I$(JAVA_HOME)/include/freebsd \ |
64 |
-I$(JAVA_HOME)/include/freebsd \ |
74 |
-fPIC \ |
65 |
-fPIC \ |
75 |
${SWT_PTR_CFLAGS} |
66 |
${SWT_PTR_CFLAGS} |
76 |
LIBS = -shared -fPIC |
67 |
LFLAGS = -shared -fPIC |
77 |
|
68 |
|
78 |
-ifndef NO_STRIP |
69 |
-ifndef NO_STRIP |
79 |
- AWT_LIBS := $(AWT_LIBS) -s |
70 |
- AWT_LFLAGS := $(AWT_LFLAGS) -s |
80 |
- MOZILLALIBS := $(MOZILLALIBS) -s |
71 |
- MOZILLALFLAGS := $(MOZILLALFLAGS) -s |
81 |
- LIBS := $(LIBS) -s |
72 |
- LFLAGS := $(LFLAGS) -s |
82 |
-endif |
73 |
-endif |
83 |
+.ifndef NO_STRIP |
74 |
+.ifndef NO_STRIP |
84 |
+AWT_LIBS := $(AWT_LIBS) -s |
75 |
+AWT_LFLAGS := $(AWT_LFLAGS) -s |
85 |
+MOZILLALIBS := $(MOZILLALIBS) -s |
76 |
+MOZILLALFLAGS := $(MOZILLALFLAGS) -s |
86 |
+LIBS := $(LIBS) -s |
77 |
+LFLAGS := $(LFLAGS) -s |
87 |
+.endif |
78 |
+.endif |
88 |
|
79 |
|
89 |
-all: make_swt make_atk make_gnome make_glx |
80 |
all: make_swt make_atk make_glx |
90 |
+all: make_swt make_atk make_glx |
|
|
91 |
|
81 |
|
92 |
# |
82 |
@@ -173,16 +185,16 @@ |
93 |
# SWT libs |
83 |
$(CXX) -o $(MOZILLA_LIB) $(MOZILLA_OBJECTS) $(MOZILLALFLAGS) ${MOZILLA_LIBS} |
94 |
@@ -209,16 +220,16 @@ |
|
|
95 |
$(CXX) -o $(MOZILLA_LIB) $(MOZILLA_OBJECTS) $(MOZILLALIBS) ${MOZILLA_LIBS} |
96 |
|
84 |
|
97 |
xpcom.o: xpcom.cpp |
85 |
xpcom.o: xpcom.cpp |
98 |
- $(CXX) $(MOZILLACFLAGS) ${MOZILLA_INCLUDES} -c xpcom.cpp |
86 |
- $(CXX) $(MOZILLACFLAGS) ${MOZILLA_INCLUDES} -c xpcom.cpp |
Lines 112-119
Link Here
|
112 |
|
100 |
|
113 |
# |
101 |
# |
114 |
# XULRunner lib |
102 |
# XULRunner lib |
115 |
@@ -229,22 +240,16 @@ |
103 |
@@ -193,22 +205,16 @@ |
116 |
$(CXX) -o $(XULRUNNER_LIB) $(XULRUNNER_OBJECTS) $(MOZILLALIBS) ${XULRUNNER_LIBS} |
104 |
$(CXX) -o $(XULRUNNER_LIB) $(XULRUNNER_OBJECTS) $(MOZILLALFLAGS) ${XULRUNNER_LIBS} |
117 |
|
105 |
|
118 |
xpcomxul.o: xpcom.cpp |
106 |
xpcomxul.o: xpcom.cpp |
119 |
- $(CXX) -o xpcomxul.o $(MOZILLACFLAGS) ${XULRUNNER_INCLUDES} -c xpcom.cpp |
107 |
- $(CXX) -o xpcomxul.o $(MOZILLACFLAGS) ${XULRUNNER_INCLUDES} -c xpcom.cpp |