"Fossies" - the Fresh Open Source Software Archive

Member "mozplugger-2.1.6/Makefile.in" (17 Apr 2014, 9279 Bytes) of package /linux/www/old/mozplugger-2.1.6.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #
    2 # This file is part of mozplugger a fork of plugger, for list of developers
    3 # see the README file.
    4 #
    5 # This program is free software; you can redistribute it and/or modify
    6 # it under the terms of the GNU General Public License as published by
    7 # the Free Software Foundation; either version 2 of the License, or
    8 # (at your option) any later version.
    9 #
   10 # This program is distributed in the hope that it will be useful,
   11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
   12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13 # GNU General Public License for more details.
   14 #
   15 # You should have received a copy of the GNU General Public License
   16 # along with this program; if not, write to the Free Software
   17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
   18 #
   19 
   20 # @configure_input@
   21 
   22 # For building rpms
   23 root=
   24 
   25 # For installing
   26 prefix=@prefix@
   27 exec_prefix=@exec_prefix@
   28 datarootdir=@datarootdir@
   29 
   30 
   31 #For building away from source directory
   32 srcdir=@srcdir@
   33 VPATH=@srcdir@ @srcdir@/npapi
   34 PLUGINDIRS=@PLUGINDIRS@
   35 
   36 #
   37 RPMDIR=/usr/src/RPM
   38 
   39 # Choose tool set
   40 CC=@CC@
   41 LD=@CC@
   42 MKDEP=@CC@ -MM
   43 BIN2O=@BIN2O@
   44 
   45 SOURCE_FILES=mozplugger.c \
   46 	     scriptable_obj.c \
   47 	     scriptable_obj.h \
   48 	     mozplugger-helper.c \
   49 	     mozplugger-controller.c \
   50 	     mozplugger-linker.c \
   51 	     mozplugger.spec \
   52 	     child.c \
   53 	     debug.c \
   54 	     mozplugger.h \
   55 	     cmd_flags.h \
   56              pipe_msg.h \
   57 	     child.h \
   58 	     debug.h \
   59 	     widgets.h \
   60 	     widgets.c \
   61 	     npn-get-helpers.h \
   62 	     npn-get-helpers.c \
   63 	     npapi/npp_funcs.c \
   64 	     npapi/npp_funcs.h \
   65 	     npapi/npn_funcs.c \
   66 	     npapi/npn_funcs.h \
   67 	     npapi/npapi.h \
   68 	     npapi/np_funcs.h \
   69 	     npapi/npn_func_tab.h \
   70 	     npapi/npp_func_tab.h \
   71 	     npapi/npruntime.h \
   72 	     Makefile.in \
   73 	     mozplugger.7 \
   74 	     README \
   75 	     COPYING \
   76 	     ChangeLog \
   77 	     mozpluggerrc \
   78 	     configure.ac \
   79 	     config.h.in \
   80 	     configure \
   81 	     mozplugger-update.c \
   82 	     plugin_name.h \
   83 	     plugin_entry.c \
   84 	     plugin_entry.h
   85 
   86 HELPER_OBJS=mozplugger-helper.o \
   87 	    child.o \
   88 	    debug.o
   89 
   90 CONTROL_OBJS=mozplugger-controller.o \
   91 	     child.o \
   92 	     debug.o \
   93 	     widgets.o
   94 
   95 LINKER_OBJS=mozplugger-linker.o \
   96 	    child.o \
   97 	    debug.o \
   98 	    widgets.o
   99 
  100 MKCONFIG_OBJS=mozplugger-update.o @MOZPLUGGER_SO_BLOB@
  101 
  102 PLUGIN_OBJS=mozplugger.o \
  103 	    plugin_entry.o \
  104 	    scriptable_obj.o \
  105 	    npn_funcs.o \
  106 	    npp_funcs.o \
  107 	    debug.o \
  108 	    npn-get-helpers.o
  109 
  110 ALL_OBJS=$(sort $(PLUGIN_OBJS) $(MKCONFIG_OBJS) $(LINKER_OBJS) $(CONTROL_OBJS) $(HELPER_OBJS))
  111 
  112 EXE_FILES=mozplugger-helper \
  113 	  mozplugger-controller \
  114 	  mozplugger-linker \
  115 	  mozplugger-update
  116 
  117 
  118 BIN_FILES=mozplugger.so \
  119 	  $(EXE_FILES) \
  120 	  Makefile \
  121 	  mozplugger.7 \
  122 	  README \
  123 	  COPYING \
  124 	  ChangeLog \
  125 	  mozpluggerrc \
  126 	  config.h
  127 
  128 
  129 DEFINES= @DEFS@ @XCPPFLAGS@ -DCONFDIR=\"@sysconfdir@\" -DEXEDIR=\"@bindir@\" #-D__amd64__
  130 INCLUDES= -I. -I$(srcdir) -I$(srcdir)/npapi
  131 COMMON_CFLAGS=$(INCLUDES) $(DEFINES)
  132 
  133 XLIBS=@LIBS@
  134 
  135 LDSHARED=@LDSHARED@
  136 LDFLAGS=@LDFLAGS@
  137 CFLAGS=$(COMMON_CFLAGS) $(XCFLAGS) @XCFLAGS@
  138 
  139 .SUFFIXES:
  140 .SUFFIXES: .c .o
  141 
  142 all: mozplugger.so $(EXE_FILES)
  143 
  144 mozplugger-helper: $(HELPER_OBJS) Makefile
  145 	@echo "LD $@"
  146 	@$(LD) -o $@ $(HELPER_OBJS) $(LDFLAGS) $(XLIBS)
  147 
  148 mozplugger-controller: $(CONTROL_OBJS) Makefile
  149 	@echo "LD $@"
  150 	@$(LD) -o $@ $(CONTROL_OBJS) $(LDFLAGS) $(XLIBS)
  151 
  152 mozplugger-linker: $(LINKER_OBJS) Makefile
  153 	@echo "LD $@"
  154 	@$(LD) -o $@ $(LINKER_OBJS) $(LDFLAGS) $(XLIBS)
  155 
  156 mozplugger-update: $(MKCONFIG_OBJS) Makefile
  157 	@echo "LD $@"
  158 	@$(LD) -o $@ $(MKCONFIG_OBJS) $(LDFLAGS)
  159 
  160 mozplugger_so_blob.o: mozplugger.so
  161 	@echo "BIN2O $@"
  162 	@$(BIN2O) -o $@ $<
  163 
  164 mozplugger.so: $(PLUGIN_OBJS) Makefile
  165 	@echo "LD $@"
  166 	@$(LD) $(LDSHARED) $(LDFLAGS) -o $@ $(PLUGIN_OBJS) $(XLIBS)
  167 
  168 .c.o :
  169 	-@echo "CC $<"
  170 	@$(CC) -c $(CFLAGS) -o $@ '$<'
  171 	-@$(MKDEP) $(CFLAGS) -o $*.d '$<'
  172 
  173 #mozplugger-helper.o: mozplugger-helper.c cmd_flags.h child.h debug.h config.h \
  174 #    		     pipe_msg.h Makefile
  175 #	$(CC) -c $(CFLAGS) -o $@ '$(srcdir)/mozplugger-helper.c'
  176 #	$(MKDEP) $(CFLAGS) -o $*.d '$<'
  177 
  178 #plugin_entry.o: plugin_entry.c plugin_entry.h npruntime.h mozplugger.h debug.h config.h \
  179 #              npn-get-helpers.h cmd_flags.h scriptable_obj.h Makefile
  180 #	$(CC) -c $(CFLAGS) -o $@ '$(srcdir)/plugin_entry.c'
  181 
  182 #mozplugger.o: mozplugger.c npapi.h npruntime.h mozplugger.h debug.h config.h \
  183 #              npn-get-helpers.h cmd_flags.h scriptable_obj.h plugin_entry.h \
  184 #	      pipe_msg.h Makefile
  185 #	$(CC) -c $(CFLAGS) -o $@ '$(srcdir)/mozplugger.c'
  186 
  187 #scriptable_obj.o: scriptable_obj.c npapi.h npruntime.h npn_funcs.h mozplugger.h \
  188 #                  debug.h config.h scriptable_obj.h Makefile
  189 #	$(CC) -c $(CFLAGS) -o $@ '$(srcdir)/scriptable_obj.c'
  190 
  191 #npn_funcs.o: $(srcdir)/npapi/npn_funcs.c npapi.h npruntime.h npn_funcs.h npn_func_tab.h Makefile
  192 #	$(CC) -c $(CFLAGS) -o $@ '$(srcdir)/npapi/npn_funcs.c'
  193 
  194 #npp_funcs.o: $(srcdir)/npapi/npp_funcs.c npapi.h npruntime.h npp_funcs.h npp_func_tab.h Makefile
  195 #	$(CC) -c $(CFLAGS) -o $@ '$(srcdir)/npapi/npp_funcs.c'
  196 
  197 #child.o: child.c child.h debug.h cmd_flags.h config.h Makefile
  198 #	$(CC) -c $(CFLAGS) -o $@ '$(srcdir)/child.c'
  199 
  200 #debug.o: debug.c debug.h config.h Makefile
  201 #	$(CC) -c $(CFLAGS) -o $@ '$(srcdir)/debug.c'
  202 
  203 #widgets.o: widgets.c widgets.h config.h Makefile
  204 #	$(CC) -c $(CFLAGS) -o $@ '$(srcdir)/widgets.c'
  205 
  206 #npn-get-helpers.o: npn-get-helpers.c npn-get-helpers.h debug.h Makefile
  207 #	$(CC) -c $(CFLAGS) -o $@ '$(srcdir)/npn-get-helpers.c'
  208 
  209 
  210 #mozplugger-controller.o: mozplugger-controller.c cmd_flags.h child.h debug.h \
  211 #                         config.h pipe_msg.h widgets.h Makefile
  212 #	$(CC) -c $(CFLAGS) -o $@ '$(srcdir)/mozplugger-controller.c'
  213 
  214 
  215 #mozplugger-linker.o: mozplugger-linker.c cmd_flags.h child.h debug.h config.h \
  216 #                     pipe_msg.h widgets.h Makefile
  217 #	$(CC) -c $(CFLAGS) -o $@ '$(srcdir)/mozplugger-linker.c'
  218 
  219 #mozplugger-update.o: mozplugger-update.c cmd_flags.h config.h plugin_name.h Makefile
  220 #	$(CC) -c $(CFLAGS) -o $@ '$(srcdir)/mozplugger-update.c'
  221 
  222 $(srcdir)/configure: configure.ac
  223 	cd '$(srcdir)' && autoconf
  224 
  225 Makefile: Makefile.in config.status
  226 	-@echo "Creating Makefile"
  227 	./config.status
  228 	-@touch Makefile
  229 
  230 config.h: config.h.in config.status
  231 	-@echo "Creating config.h"
  232 	./config.status
  233 	-@touch config.h
  234 
  235 config.status: configure
  236 	-@echo "Creating config.status"
  237 	./config.status --recheck
  238 
  239 clean:
  240 	-rm -f *.o npapi/*.o *.gcda *.gcno *.so *.d
  241 	-rm -f $(EXE_FILES)
  242 
  243 distclean: clean
  244 	-rm -f *~ core
  245 	-rm -f config.h config.status config.log Makefile
  246 	-rm -rf autom4te.cache
  247 	-rm -rf rpmtmp
  248 
  249 localinstall: mozplugger.so $(EXE_FILES)
  250 	-@mkdir $$HOME/$(BROWSERDIR)
  251 	-@mkdir $$HOME/$(BROWSERDIR)/plugins
  252 	cp mozplugger.so $$HOME/$(BROWSERDIR)/plugins/
  253 	-mkdir $$HOME/.mozplugger
  254 	-mkdir $$HOME/.mozplugger/bin
  255 	for a in $(EXE_FILES); do cp $$a $$HOME/.mozplugger/bin ; done
  256 	if [ -f $$HOME/$(BROWSERDIR)/mozpluggerrc ]; then mv $$HOME/$(BROWSERDIR)/mozpluggerrc $$HOME/$(BROWSERDIR)/mozpluggerrc.old; fi
  257 	cp mozpluggerrc $$HOME/$(BROWSERDIR)/
  258 
  259 localinstall_mozilla:
  260 	make localinstall BROWSERDIR=.mozilla
  261 
  262 localinstall_netscape:
  263 	make localinstall BROWSERDIR=.netscape
  264 
  265 localinstall_opera:
  266 	make localinstall BROWSERDIR=.opera
  267 
  268 install:
  269 	-install -d @bindir@
  270 	install mozplugger-helper @bindir@
  271 	install mozplugger-controller @bindir@
  272 	install mozplugger-linker @bindir@
  273 	install mozplugger-update @bindir@
  274 	-for a in ${PLUGINDIRS}; do install -d $$a ; done
  275 	for a in ${PLUGINDIRS}; do install mozplugger.so $$a ; done
  276 	-install -d @sysconfdir@
  277 	install $(srcdir)/mozpluggerrc @sysconfdir@
  278 	-install -d @mandir@/man7
  279 	install $(srcdir)/mozplugger.7 @mandir@/man7/
  280 
  281 uninstall:
  282 	-rm -f @sysconfdir@/mozpluggerrc
  283 	-rmdir @sysconfdir@
  284 	-for a in ${PLUGINDIRS}; do rm -f $$a/mozplugger.so ; done
  285 	-rm -f @mandir@/man7/mozplugger.7
  286 	-rmdir @mandir@/man7
  287 	-rmdir @mandir@
  288 	rm -f @bindir@/mozplugger-helper
  289 	rm -f @bindir@/mozplugger-controller
  290 	rm -f @bindir@/mozplugger-linker
  291 	rm -f @bindir@/mozplugger-update
  292 	-rmdir @bindir@
  293 
  294 MOZ_PACKAGE=mozplugger-@PACKAGE_VERSION@
  295 
  296 ${MOZ_PACKAGE}.tar.gz: $(SOURCE_FILES)
  297 	rm -rf ${MOZ_PACKAGE}
  298 	mkdir ${MOZ_PACKAGE}
  299 	mkdir ${MOZ_PACKAGE}/npapi
  300 	for a in $(SOURCE_FILES); do cp ${srcdir}/$$a ${MOZ_PACKAGE}/$$a ; done
  301 	tar -zcvf $@ ${MOZ_PACKAGE}
  302 	rm -rf ${MOZ_PACKAGE}
  303 
  304 dist: ${MOZ_PACKAGE}.tar.gz
  305 
  306 bin_export: mozplugger-bin.tar.gz
  307 
  308 echo_version:
  309 	@echo @PACKAGE_VERSION@
  310 
  311 rpm: $(RPMDIR)/SOURCES/mozplugger.tar.gz $(srcdir)/mozplugger.spec
  312 	rm -rf rpmtmp ||:
  313 	mkdir rpmtmp
  314 	mkdir rpmtmp/usr
  315 	mkdir rpmtmp/etc
  316 	mkdir rpmtmp/opt
  317 	mkdir rpmtmp/usr/local
  318 	rpm -ba --buildroot `pwd`/rpmtmp mozplugger.spec
  319 	cp $(RPMDIR)/SRPMS/mozplugger-1.src.rpm .
  320 	cp $(RPMDIR)/RPMS/*/mozplugger-1.*.rpm .
  321 	rm -rf rpmtmp
  322 
  323 $(RPMDIR)/SOURCES/mozplugger.tar.gz: ${MOZ_PACKAGE}.tar.gz
  324 	cp ${MOZ_PACKAGE}.tar.gz $(RPMDIR)/SOURCES/mozplugger.tar.gz
  325 
  326 mozplugger-bin.tar.gz: $(BIN_FILES)
  327 	@( DIR=`pwd`;\
  328           BASE=`basename $$DIR`;\
  329 	  cd .. ; \
  330 	  if [ "$$BASE" != "mozplugger" ]; then \
  331 	    ln -s "$$BASE" mozplugger ; \
  332           fi ;\
  333 	  tar cf - `for a in $(BIN_FILES); do echo mozplugger/$$a ; done` | gzip -9 >mozplugger/mozplugger-bin.tar.gz ;\
  334           if [ "$$BASE" != "mozplugger" ]; then \
  335 	    rm mozplugger ; \
  336           fi ;\
  337 	)
  338 
  339 -include $(ALL_OBJS:%.o=%.d)