--- make_freebsd.mak.orig Wed Jan 4 08:43:21 2006 +++ make_freebsd.mak Wed Jan 4 08:44:07 2006 @@ -9,7 +9,7 @@ # IBM Corporation - initial API and implementation #******************************************************************************* -# Makefile for creating SWT libraries for Linux GTK +# Makefile for creating SWT libraries for FreeBSD GTK include make_common.mak @@ -61,32 +61,34 @@ -fPIC \ -I./ \ -I$(JAVA_HOME)/include \ - -I$(JAVA_HOME)/include/linux \ + -I$(JAVA_HOME)/include/freebsd \ ${GECKO_INCLUDES} \ - ${SWT_PTR_CFLAGS} + ${SWT_PTR_CFLAGS} \ + $(CFLAGS) MOZILLALIBS = -shared -s -Wl,--version-script=mozilla_exports -Bsymbolic ${GECKO_LIBS} SWT_OBJECTS = swt.o callback.o AWT_OBJECTS = swt_awt.o SWTPI_OBJECTS = swt.o os.o os_structs.o os_custom.o os_stats.o -CAIRO_OBJECTS = swt.o cairo.o cairo_structs.o cairo_stats.o cairo_custom.o +CAIRO_OBJECTS = swt.o cairo.o cairo_structs.o cairo_stats.o ATK_OBJECTS = swt.o atk.o atk_structs.o atk_custom.o atk_stats.o GNOME_OBJECTS = swt.o gnome.o gnome_structs.o gnome_stats.o MOZILLA_OBJECTS = swt.o xpcom.o xpcom_custom.o xpcom_structs.o xpcom_stats.o -CFLAGS = -O -Wall \ +CFLAGS += -Wall \ -DSWT_VERSION=$(SWT_VERSION) \ $(NATIVE_STATS) \ - -DLINUX -DGTK \ + -DFREEBSD -DGTK \ -I$(JAVA_HOME)/include \ - -I$(JAVA_HOME)/include/linux \ - -fpic \ + -I$(JAVA_HOME)/include/freebsd \ + -fpic -fPIC \ + -I$(X11BASE)/include \ ${SWT_PTR_CFLAGS} -LIBS = -shared -fpic -s +LIBS = -shared -fpic -fPIC -s -all: make_swt make_atk make_gnome make_awt +all: make_swt make_atk $(MAKE_GNOME) make_awt $(MAKE_MOZILLA) $(MAKE_CAIRO) # # SWT libs @@ -123,8 +125,6 @@ cairo.o: cairo.c cairo.h swt.h $(CC) $(CFLAGS) $(CAIROCFLAGS) -c cairo.c -cairo_custom.o: cairo_custom.c cairo_structs.h cairo.h swt.h - $(CC) $(CFLAGS) $(CAIROCFLAGS) -c cairo_custom.c cairo_structs.o: cairo_structs.c cairo_structs.h cairo.h swt.h $(CC) $(CFLAGS) $(CAIROCFLAGS) -c cairo_structs.c cairo_stats.o: cairo_stats.c cairo_structs.h cairo.h cairo_stats.h swt.h