build the right files for --enable-nglayout=gtk

This commit is contained in:
shaver%netscape.com 1998-11-01 07:48:25 +00:00
Родитель 10c06c1b72
Коммит df859b1cc4
1 изменённых файлов: 21 добавлений и 3 удалений

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

@ -28,19 +28,28 @@ CPPSRCS = \
nsBrowserWindow.cpp \
nsEditorMode.cpp \
nsEditorInterfaces.cpp \
nsMotifMenu.cpp \
nsSetupRegistry.cpp \
nsUnixMain.cpp \
nsViewerApp.cpp \
nsWebCrawler.cpp \
nsStubs.cpp \
$(NULL)
ifeq ($(USE_NGLAYOUT_GTK),1)
CPPSRCS += nsGTKMain.cpp
else
CPPSRCS += nsMotifMenu.cpp \
nsUnixMain.cpp
endif
INCLUDES+= -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)
ifeq ($(USE_NGLAYOUT_GTK),1)
INCLUDES += $(shell gtk-config --cflags)
endif
OBJS = $(CPPSRCS:.cpp=.o)
EX_LIBS = \
@ -50,7 +59,6 @@ EX_LIBS = \
$(DIST)/bin/libraptorbase.so \
$(DIST)/bin/libwidgetunix.so \
$(DIST)/bin/libraptorgfx.so \
$(DIST)/bin/libgfxunix.so \
$(DIST)/bin/libraptorhtml.so \
$(DIST)/bin/libgmbaseunix.so \
$(DIST)/bin/libraptorhtmlpars.so \
@ -69,6 +77,12 @@ ifdef MOZ_OJI
EX_LIBS += $(DIST)/bin/libjsj.so
endif
ifeq ($(USE_NGLAYOUT_GTK),1)
EX_LIBS += $(DIST)/bin/libgfxgtk.so
else
EX_LIBS += $(DIST)/bin/libgfxunix.so
endif
EX_LIBS += \
$(DIST)/bin/libmimetype.so \
$(DIST)/bin/libnetcache.so \
@ -112,6 +126,10 @@ PROGS = main
TARGETS = $(PROGS)
ifeq ($(USE_NGLAYOUT_GTK),1)
XLIBS += $(shell gtk-config --libs)
endif
include $(topsrcdir)/config/rules.mk
$(PROGS): $(OBJS) $(EX_LIBS)