- #!make
- ################################################################################
- # Copyright (c) 1996 Netscape Communications. All rights reserved.
- ################################################################################
- #
- # Template plugin makefile
- # This makefile contains some of our defines for the compiler:
- #
- # XP_UNIX This needs to get defined for npapi.h on unix platforms.
- # PLUGIN_TRACE Enable this define to get debug prints whenever the plugin
- # api gets control.
- CC= gcc
- CXX= g++
- CFLAGS= -Wall -g -O2 -I/usr/X11R6/include -g -O2 -DXP_UNIX -DMOZ_X11 -I/usr/include/mozilla-1.7.8/java -I/usr/include/mozilla-1.7.8/plugin -I/usr/include/mozilla-1.7.8 -I/usr/include/mozilla-1.7.8/xpcom -I/usr/include/mozilla-1.7.8/string -I/usr/include/mozilla-1.7.8/nspr -I/usr/include/mozilla-1.7.8 -Iinclude -fPIC -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DGTK_ENABLED
- LDFLAGS= -L/usr/X11R6/lib -lX11 -lSM -lICE -lXext -lX11 -lXpm -lXt -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -pthread -lgthread-2.0 -lglib-2.0
- LIBOBJS=
- OBJ= plugin.o nsScriptablePeer.o npp_gate.o np_entry.o npn_gate.o
- plugin-support.o plugin-setup.o plugin-list.o plugin-ui.o
- plugin-threads.o strlcpy.o strlcat.o $(LIBOBJS)
- OBJ_WMP= plugin.o nsScriptablePeer.o npp_gate.o np_entry.o npn_gate.o
- plugin-support.o plugin-setup-wmp.o plugin-list.o plugin-ui.o
- plugin-threads.o strlcpy.o strlcat.o $(LIBOBJS)
- OBJ_QT= plugin.o nsScriptablePeer.o npp_gate.o np_entry.o npn_gate.o
- plugin-support.o plugin-setup-qt.o plugin-list.o plugin-ui.o
- plugin-threads.o strlcpy.o strlcat.o $(LIBOBJS)
- OBJ_RM= plugin.o nsScriptablePeer.o npp_gate.o np_entry.o npn_gate.o
- plugin-support.o plugin-setup-rm.o plugin-list.o plugin-ui.o
- plugin-threads.o strlcpy.o strlcat.o $(LIBOBJS)
- OBJ_GMP= plugin.o nsScriptablePeer.o npp_gate.o np_entry.o npn_gate.o
- plugin-support.o plugin-setup-gmp.o plugin-list.o plugin-ui.o
- plugin-threads.o strlcpy.o strlcat.o $(LIBOBJS)
- OBJ_DVX= plugin.o nsScriptablePeer.o npp_gate.o np_entry.o npn_gate.o
- plugin-support.o plugin-setup-dvx.o plugin-list.o plugin-ui.o
- plugin-threads.o strlcpy.o strlcat.o $(LIBOBJS)
- INSTALL = /usr/bin/install -c
- SHAREDTARGET=downloadplug-in
- NP_HEADERS= include/npplat.h include/pluginbase.h
- SUBDIR= languages
- INSTALL_SUBDIR= install-languages
- prefix=/usr/local
- exec_prefix=${prefix}
- sysconfdir=${prefix}/etc
- libdir=${exec_prefix}/lib
- datadir=${prefix}/share
- LOCALEDIR=$(datadir)/locale
- MOZILLA_HOME=
- PIXMAPS=pixmaps/logo.xpm pixmaps/progress_left.xpm pixmaps/progress_right.xpm
- pixmaps/progress_fill.xpm pixmaps/progress_middle.xpm
- HEADERS=config.h $(NP_HEADERS)
- SCRIPTABLEHEADERS=Source/nsScriptablePeer.h Source/plugin.h config.h
- Source/plugin-setup.h Source/nsIScriptabledownloadPlugin.h $(HEADERS)
- default all: downloadplug-in languages
- $(SHAREDTARGET): $(OBJ)
- $(CXX) -shared -o $(SHAREDTARGET).so $(OBJ) $(CFLAGS) $(LDFLAGS)
- cp Source/nsIScriptabledownloadPlugin.xpt downloadplug-in.xpt
- $(SHAREDTARGET)-wmp: $(OBJ_WMP)
- $(CXX) -shared -o $(SHAREDTARGET)-wmp.so $(OBJ_WMP) $(CFLAGS) $(LDFLAGS)
- cp Source/nsIScriptabledownloadPlugin.xpt downloadplug-in-wmp.xpt
- $(SHAREDTARGET)-qt: $(OBJ_QT)
- $(CXX) -shared -o $(SHAREDTARGET)-qt.so $(OBJ_QT) $(CFLAGS) $(LDFLAGS)
- cp Source/nsIScriptabledownloadPlugin.xpt downloadplug-in-qt.xpt
- $(SHAREDTARGET)-rm: $(OBJ_RM)
- $(CXX) -shared -o $(SHAREDTARGET)-rm.so $(OBJ_RM) $(CFLAGS) $(LDFLAGS)
- cp Source/nsIScriptabledownloadPlugin.xpt downloadplug-in-rm.xpt
- $(SHAREDTARGET)-gmp: $(OBJ_GMP)
- $(CXX) -shared -o $(SHAREDTARGET)-gmp.so $(OBJ_GMP) $(CFLAGS) $(LDFLAGS)
- cp Source/nsIScriptabledownloadPlugin.xpt downloadplug-in-gmp.xpt
- $(SHAREDTARGET)-dvx: $(OBJ_DVX)
- $(CXX) -shared -o $(SHAREDTARGET)-dvx.so $(OBJ_DVX) $(CFLAGS) $(LDFLAGS)
- cp Source/nsIScriptabledownloadPlugin.xpt downloadplug-in-dvx.xpt
- np_entry.o: plugingate/np_entry.cpp
- $(CXX) -c -o $@ $(CFLAGS) plugingate/np_entry.cpp
- npp_gate.o: plugingate/npp_gate.cpp
- $(CXX) -c -o $@ $(CFLAGS) plugingate/npp_gate.cpp
- npn_gate.o: plugingate/npn_gate.cpp
- $(CXX) -c -o $@ $(CFLAGS) plugingate/npn_gate.cpp
- plugin.o: Source/plugin.cpp $(SCRIPTABLEHEADERS)
- $(CXX) -c -o $@ $(CFLAGS) $(LIBS) Source/plugin.cpp
- plugin-setup.o: Source/plugin-setup.cpp $(SCRIPTABLEHEADERS)
- $(CXX) -c -o $@ $(CFLAGS) $(LIBS) -DSTD Source/plugin-setup.cpp
- plugin-setup-wmp.o: Source/plugin-setup.cpp $(SCRIPTABLEHEADERS)
- $(CXX) -c -o $@ $(CFLAGS) $(LIBS) -DWMP Source/plugin-setup.cpp
- plugin-setup-qt.o: Source/plugin-setup.cpp $(SCRIPTABLEHEADERS)
- $(CXX) -c -o $@ $(CFLAGS) $(LIBS) -DQT Source/plugin-setup.cpp
- plugin-setup-rm.o: Source/plugin-setup.cpp $(SCRIPTABLEHEADERS)
- $(CXX) -c -o $@ $(CFLAGS) $(LIBS) -DRM Source/plugin-setup.cpp
- plugin-setup-gmp.o: Source/plugin-setup.cpp $(SCRIPTABLEHEADERS)
- $(CXX) -c -o $@ $(CFLAGS) $(LIBS) -DGMP Source/plugin-setup.cpp
- plugin-setup-dvx.o: Source/plugin-setup.cpp $(SCRIPTABLEHEADERS)
- $(CXX) -c -o $@ $(CFLAGS) $(LIBS) -DDVX Source/plugin-setup.cpp
- plugin-support.o: Source/plugin-support.cpp $(SCRIPTABLEHEADERS)
- $(CXX) -c -o $@ $(CFLAGS) $(LIBS) Source/plugin-support.cpp
- plugin-list.o: Source/plugin-list.cpp $(SCRIPTABLEHEADERS)
- $(CXX) -c -o $@ $(CFLAGS) $(LIBS) Source/plugin-list.cpp
- plugin-ui.o: Source/plugin-ui.cpp $(SCRIPTABLEHEADERS) $(PIXMAPS)
- $(CXX) -c -o $@ $(CFLAGS) Source/plugin-ui.cpp
- plugin-threads.o: Source/plugin-threads.cpp $(SCRIPTABLEHEADERS)
- $(CXX) -c -o $@ $(CFLAGS) Source/plugin-threads.cpp
- nsScriptablePeer.o: Source/nsScriptablePeer.cpp $(SCRIPTABLEHEADERS)
- $(CXX) -c -o $@ $(CFLAGS) Source/nsScriptablePeer.cpp
- memmem.o: extras/memmem.c $(HEADERS)
- $(CC) -c -o $@ $(CFLAGS) extras/memmem.c
- strlcat.o: extras/strlcat.c $(HEADERS)
- $(CC) -c -o $@ $(CFLAGS) extras/strlcat.c
- strlcpy.o: extras/strlcpy.c $(HEADERS)
- $(CC) -c -o $@ $(CFLAGS) extras/strlcpy.c
- clean:
- $(RM) $(OBJ) $(OBJ_WMP) $(OBJ_QT) $(OBJ_RM) $(OBJ_GMP) $(OBJ_DVX) $(SHAREDTARGET)*.so $(SHAREDTARGET)*.xpt
- make -C po clean
- install: all
- ./install.sh $(DESTDIR)
- languages:
- make -C po
- uninstall:
- ./uninstall.sh