This commit is contained in:
ramiro%netscape.com 1998-11-02 16:06:50 +00:00
Родитель 87b0b54c1a
Коммит 4ebaded613
2 изменённых файлов: 92 добавлений и 45 удалений

Просмотреть файл

@ -19,33 +19,61 @@ DEPTH=../../..
include $(DEPTH)/config/config.mk include $(DEPTH)/config/config.mk
ifeq ($(USE_NGLAYOUT_GTK),1)
TOOLKIT_GFX_LIB = -lgfxgtk
TOOLKIT_WIDGET_LIB = -lwidgetgtk
TOOLKIT_BASE_LIB = -lgmbasegtk
TOOLKIT_CFLAGS = \
-DWIDGET_DLL=\"libwidgetgtk.so\" \
-DGFXWIN_DLL=\"libgfxgtk.so\"
TOOLKIT_CPPSRCS = \
nsGTKMain.cpp \
nsGTKMenu.cpp
TOOLKIT_INCLUDES = $(shell gtk-config --cflags)
else
TOOLKIT_GFX_LIB = -lgfxmotif
TOOLKIT_WIDGET_LIB = -lwidgetmotif
TOOLKIT_BASE_LIB = -lgmbasemotif
TOOLKIT_CFLAGS = \
-DWIDGET_DLL=\"libwidgetmotif.so\" \
-DGFXWIN_DLL=\"libgfxmotif.so\"
TOOLKIT_CPPSRCS = \
nsMotifMenu.cpp \
nsUnixMain.cpp
endif
CPPSRCS = \ CPPSRCS = \
$(TOOLKIT_CPPSRCS) \
nsBrowserWindow.cpp \ nsBrowserWindow.cpp \
nsEditorMode.cpp \ nsEditorMode.cpp \
nsEditorInterfaces.cpp \ nsEditorInterfaces.cpp \
nsMotifMenu.cpp \
nsSetupRegistry.cpp \ nsSetupRegistry.cpp \
nsUnixMain.cpp \
nsViewerApp.cpp \ nsViewerApp.cpp \
nsWebCrawler.cpp \ nsWebCrawler.cpp \
nsStubs.cpp \ nsStubs.cpp \
$(NULL) $(NULL)
INCLUDES+= -I$(PUBLIC)/raptor -I$(PUBLIC)/xpcom -I$(PUBLIC)/dom \ INCLUDES += \
-I$(PUBLIC)/netlib -I$(PUBLIC)/js -I$(PUBLIC)/pref -I$(PUBLIC)/network -I$(PUBLIC)/xp -I$(PUBLIC)/raptor \
-I$(PUBLIC)/xpcom \
-I$(PUBLIC)/dom \
-I$(PUBLIC)/netlib \
-I$(PUBLIC)/js \
-I$(PUBLIC)/pref \
-I$(PUBLIC)/network \
-I$(PUBLIC)/xp
OBJS = $(CPPSRCS:.cpp=.o) OBJS = $(CPPSRCS:.cpp=.o)
ifeq ($(USE_NGLAYOUT_GTK),1)
GFX_LIB = -lgfxgtk
WIDGET_LIB = -lwidgetgtk
BASE_DSO_FLAGS = -lgmbasegtk
else
GFX_LIB = -lgfxmotif
WIDGET_LIB = -lwidgetmotif
BASE_DSO_FLAGS = -lgmbasemotif
endif
ifdef MOZ_OJI ifdef MOZ_OJI
JSJ_LIB = -ljsj JSJ_LIB = -ljsj
endif endif
@ -56,12 +84,12 @@ EX_LIBS = \
-lpng \ -lpng \
-lpref \ -lpref \
-lraptorbase \ -lraptorbase \
$(WIDGET_LIB) \ $(TOOLKIT_WIDGET_LIB) \
-lraptorgfx \ -lraptorgfx \
$(GFX_LIB) \ $(TOOLKIT_GFX_LIB) \
-lraptorhtml \ -lraptorhtml \
$(DIST)/lib/libraptorhtmlforms_s.a \ $(DIST)/lib/libraptorhtmlforms_s.a \
$(BASE_DSO_FLAGS) \ $(TOOLKIT_BASE_LIB) \
-lraptorhtmlpars \ -lraptorhtmlpars \
-lraptorview \ -lraptorview \
-lreg \ -lreg \

Просмотреть файл

@ -24,7 +24,40 @@ include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/config.mk include $(topsrcdir)/config/config.mk
ifeq ($(USE_NGLAYOUT_GTK),1)
TOOLKIT_GFX_LIB = -lgfxgtk
TOOLKIT_WIDGET_LIB = -lwidgetgtk
TOOLKIT_BASE_LIB = -lgmbasegtk
TOOLKIT_CFLAGS = \
-DWIDGET_DLL=\"libwidgetgtk.so\" \
-DGFXWIN_DLL=\"libgfxgtk.so\"
TOOLKIT_CPPSRCS = \
nsGTKMain.cpp \
nsGTKMenu.cpp
TOOLKIT_INCLUDES = $(shell gtk-config --cflags)
else
TOOLKIT_GFX_LIB = -lgfxmotif
TOOLKIT_WIDGET_LIB = -lwidgetmotif
TOOLKIT_BASE_LIB = -lgmbasemotif
TOOLKIT_CFLAGS = \
-DWIDGET_DLL=\"libwidgetmotif.so\" \
-DGFXWIN_DLL=\"libgfxmotif.so\"
TOOLKIT_CPPSRCS = \
nsMotifMenu.cpp \
nsUnixMain.cpp
endif
CPPSRCS = \ CPPSRCS = \
$(TOOLKIT_CPPSRCS) \
nsBrowserWindow.cpp \ nsBrowserWindow.cpp \
nsEditorMode.cpp \ nsEditorMode.cpp \
nsEditorInterfaces.cpp \ nsEditorInterfaces.cpp \
@ -34,36 +67,22 @@ CPPSRCS = \
nsStubs.cpp \ nsStubs.cpp \
$(NULL) $(NULL)
ifeq ($(USE_NGLAYOUT_GTK),1) CFLAGS += $(TOOLKIT_CFLAGS)
CPPSRCS += nsGTKMain.cpp \
nsGTKMenu.cpp
CFLAGS += -DWIDGET_DLL=\"libwidgetgtk.so\" -DGFXWIN_DLL=\"libgfxgtk.so\"
else
CPPSRCS += nsMotifMenu.cpp \
nsUnixMain.cpp
endif
INCLUDES+= -I$(PUBLIC)/raptor -I$(PUBLIC)/xpcom -I$(PUBLIC)/dom \ INCLUDES += \
-I$(PUBLIC)/netlib -I$(PUBLIC)/js -I$(PUBLIC)/pref -I$(PUBLIC)/network -I$(PUBLIC)/xp -I$(PUBLIC)/raptor \
-I$(PUBLIC)/xpcom \
-I$(PUBLIC)/dom \
-I$(PUBLIC)/netlib \
-I$(PUBLIC)/js \
-I$(PUBLIC)/pref \
-I$(PUBLIC)/network \
-I$(PUBLIC)/xp
INCLUDES += $(FE_X_CFLAGS) INCLUDES += $(FE_X_CFLAGS) $(TOOLKIT_INCLUDES)
ifeq ($(USE_NGLAYOUT_GTK),1)
INCLUDES += $(shell gtk-config --cflags)
endif
OBJS = $(CPPSRCS:.cpp=.o) OBJS = $(CPPSRCS:.cpp=.o)
ifeq ($(USE_NGLAYOUT_GTK),1)
GFX_LIB = -lgfxgtk
WIDGET_LIB = -lwidgetgtk
BASE_DSO_FLAGS = -lgmbasegtk
else
GFX_LIB = -lgfxmotif
WIDGET_LIB = -lwidgetmotif
BASE_DSO_FLAGS = -lgmbasemotif
endif
ifdef MOZ_OJI ifdef MOZ_OJI
JSJ_LIB = -ljsj JSJ_LIB = -ljsj
endif endif
@ -74,12 +93,12 @@ EX_LIBS = \
-lpng \ -lpng \
-lpref \ -lpref \
-lraptorbase \ -lraptorbase \
$(WIDGET_LIB) \ $(TOOLKIT_WIDGET_LIB) \
-lraptorgfx \ -lraptorgfx \
$(GFX_LIB) \ $(TOOLKIT_GFX_LIB) \
-lraptorhtml \ -lraptorhtml \
$(DIST)/lib/libraptorhtmlforms_s.a \ $(DIST)/lib/libraptorhtmlforms_s.a \
$(BASE_DSO_FLAGS) \ $(TOOLKIT_BASE_LIB) \
-lraptorhtmlpars \ -lraptorhtmlpars \
-lraptorview \ -lraptorview \
-lreg \ -lreg \