Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.99 KB | None | 0 0
  1. # Makefile. Generated from Makefile.in by configure.
  2.  
  3. # For building rpms
  4. root=
  5.  
  6. # For installing
  7. prefix=/usr/local
  8. exec_prefix=${prefix}
  9. datarootdir=${prefix}/share
  10.  
  11. #For building away from source directory
  12. srcdir=.
  13.  
  14. PLUGINDIRS=/usr/lib/mozilla/plugins /usr/lib/mozilla/plugins
  15.  
  16. # On 64 bit arch change libprefix to lib64
  17. libprefix=/lib
  18. #libprefix=/lib64
  19.  
  20. #
  21. #
  22. RPMDIR=/usr/src/RPM
  23.  
  24. # Choose compiler
  25. CC=gcc
  26. MKDIR=mkdir -p
  27.  
  28. SOURCE_FILES=mozplugger.c \
  29. mozplugger-common.c \
  30. mozplugger-helper.c \
  31. mozplugger-controller.c \
  32. mozplugger-linker.c \
  33. mozplugger.spec \
  34. child.c \
  35. debug.c \
  36. mozplugger.h \
  37. child.h \
  38. debug.h \
  39. npn-get-helpers.h \
  40. npn-get-helpers.c \
  41. npapi/common/npunix.c \
  42. npapi/include/npapi.h \
  43. npapi/include/npupp.h \
  44. npapi/include/nptypes.h \
  45. npapi/include/npruntime.h \
  46. Makefile.in \
  47. Makefile.old \
  48. mozplugger.7 \
  49. README \
  50. COPYING \
  51. ChangeLog \
  52. mozpluggerrc \
  53. configure.ac \
  54. config.h.in \
  55. configure
  56.  
  57.  
  58. BIN_FILES=mozplugger.so \
  59. mozplugger-helper \
  60. mozplugger-controller \
  61. mozplugger-linker \
  62. Makefile \
  63. mozplugger.7 \
  64. README \
  65. COPYING \
  66. ChangeLog \
  67. mozpluggerrc \
  68. config.h
  69.  
  70.  
  71. DEFINES= -DHAVE_CONFIG_H -DSYSCONFDIR=\"${prefix}/etc\" #-D__amd64__
  72. INCLUDES= -I. -I$(srcdir) -I$(srcdir)/npapi/include
  73. COMMON_CFLAGS=$(INCLUDES) $(DEFINES)
  74.  
  75. XLIBS=
  76.  
  77. LDSHARED=gcc -shared
  78. LDFLAGS= -L/usr/lib
  79. CFLAGS=$(COMMON_CFLAGS) $(XCFLAGS) -fPIC -Wall -O2
  80.  
  81. all: mozplugger.so mozplugger-helper mozplugger-controller mozplugger-linker
  82.  
  83. mozplugger-helper: mozplugger-helper.o mozplugger-common.o child.o debug.o
  84. $(CC) $(LDFLAGS) -o mozplugger-helper mozplugger-helper.o mozplugger-common.o child.o debug.o $(XLIBS)
  85.  
  86. mozplugger-helper.o: mozplugger-helper.c mozplugger.h child.h debug.h config.h
  87. $(CC) -c $(CFLAGS) -o mozplugger-helper.o '$(srcdir)/mozplugger-helper.c'
  88.  
  89. mozplugger.so: mozplugger.o npunix.o mozplugger-common.o debug.o npn-get-helpers.o
  90. $(LDSHARED) $(LDFLAGS) -o mozplugger.so mozplugger.o mozplugger-common.o npunix.o debug.o npn-get-helpers.o $(XLIBS)
  91.  
  92. mozplugger-common.o: mozplugger-common.c mozplugger.h config.h
  93. $(CC) -c $(CFLAGS) -o mozplugger-common.o '$(srcdir)/mozplugger-common.c'
  94.  
  95. mozplugger.o: mozplugger.c mozplugger.h config.h npn-get-helpers.h
  96. $(CC) -c $(CFLAGS) -o mozplugger.o '$(srcdir)/mozplugger.c'
  97.  
  98. npunix.o: $(srcdir)/npapi/common/npunix.c config.h
  99. $(CC) -c $(CFLAGS) -o npunix.o '$(srcdir)/npapi/common/npunix.c'
  100.  
  101. child.o: child.c child.h debug.h mozplugger.h config.h
  102. $(CC) -c $(CFLAGS) -o child.o '$(srcdir)/child.c'
  103.  
  104. debug.o: debug.c debug.h config.h
  105. $(CC) -c $(CFLAGS) -o debug.o '$(srcdir)/debug.c'
  106.  
  107. npn-get-helpers.o: npn-get-helpers.c npn-get-helpers.h debug.h
  108. $(CC) -c $(CFLAGS) -o npn-get-helpers.o '$(srcdir)/npn-get-helpers.c'
  109.  
  110. mozplugger-controller: mozplugger-controller.o mozplugger-common.o child.o debug.o
  111. $(CC) -o mozplugger-controller mozplugger-controller.o mozplugger-common.o child.o debug.o $(LDFLAGS) $(XLIBS)
  112.  
  113. mozplugger-controller.o: mozplugger-controller.c mozplugger.h child.h debug.h config.h
  114. $(CC) -c $(CFLAGS) -o mozplugger-controller.o '$(srcdir)/mozplugger-controller.c'
  115.  
  116. mozplugger-linker: mozplugger-linker.o mozplugger-common.o child.o debug.o
  117. $(CC) -o mozplugger-linker mozplugger-linker.o mozplugger-common.o child.o debug.o $(LDFLAGS) $(XLIBS)
  118.  
  119. mozplugger-linker.o: mozplugger-linker.c mozplugger.h child.h debug.h config.h
  120. $(CC) -c $(CFLAGS) -o mozplugger-linker.o '$(srcdir)/mozplugger-linker.c'
  121.  
  122. $(srcdir)/configure: configure.ac
  123. cd '$(srcdir)' && autoconf
  124.  
  125. Makefile: Makefile.in config.status
  126. ./config.status
  127.  
  128. config.h: config.h.in config.status
  129. ./config.status
  130.  
  131. config.status: configure
  132. ./config.status --recheck
  133.  
  134. clean:
  135. -rm -f *.o npapi/common/*.o *.gcda *.gcno *.so
  136. -rm -f mozplugger-helper mozplugger-controller mozplugger-linker
  137.  
  138. distclean: clean
  139. -rm -f *~ core
  140. -rm -f config.h config.status config.log Makefile
  141. -rm -rf autom4te.cache
  142. -rm -rf rpmtmp
  143.  
  144. localinstall: mozplugger.so mozplugger-helper mozplugger-controller mozplugger-linker
  145. -@$(MKDIR) $$HOME/$(BROWSERDIR)/plugins
  146. cp mozplugger.so $$HOME/$(BROWSERDIR)/plugins/
  147. cp mozplugger-helper $$HOME/$(BROWSERDIR)/
  148. cp mozplugger-controller $$HOME/$(BROWSERDIR)/
  149. cp mozplugger-linker $$HOME/$(BROWSERDIR)/
  150. if [ -f $$HOME/$(BROWSERDIR)/mozpluggerrc ]; then mv $$HOME/$(BROWSERDIR)/mozpluggerrc $$HOME/$(BROWSERDIR)/mozpluggerrc.old; fi
  151. cp mozpluggerrc $$HOME/$(BROWSERDIR)/
  152.  
  153. localinstall_mozilla:
  154. make localinstall BROWSERDIR=.mozilla
  155.  
  156. localinstall_netscape:
  157. make localinstall BROWSERDIR=.netscape
  158.  
  159. localinstall_opera:
  160. make localinstall BROWSERDIR=.opera
  161.  
  162. install:
  163. -@install -d ${exec_prefix}/bin
  164. -@install -d $(prefix)$(libprefix)/mozilla/plugins
  165. -@install -d ${datarootdir}/man/man7
  166. -@install -d ${prefix}/etc
  167. install mozplugger-helper ${exec_prefix}/bin
  168. install mozplugger-controller ${exec_prefix}/bin
  169. install mozplugger-linker ${exec_prefix}/bin
  170. for a in ${PLUGINDIRS}; do install mozplugger.so $$a ; done
  171. # cp mozplugger.so $(prefix)$(libprefix)/mozilla/plugins/
  172. install $(srcdir)/mozpluggerrc ${prefix}/etc
  173. install $(srcdir)/mozplugger.7 ${datarootdir}/man/man7/
  174.  
  175. uninstall:
  176. rm -f ${datarootdir}/man/man7/mozplugger.7
  177. rm -f ${prefix}/etc/mozpluggerrc
  178. for target in ${PLUGINDIRS}; do rm -f $${target}/mozplugger.so; done
  179. rm -f ${exec_prefix}/bin/mozplugger-linker
  180. rm -f ${exec_prefix}/bin/mozplugger-controller
  181. rm -f ${exec_prefix}/bin/mozplugger-helper
  182. -rmdir ${prefix}/etc
  183. -rmdir ${datarootdir}/man/man7
  184. -rmdir ${datarootdir}/man
  185. -rmdir ${exec_prefix}/bin
  186.  
  187. MOZ_PACKAGE=mozplugger-1.14.6
  188.  
  189. ${MOZ_PACKAGE}.tar.gz: $(SOURCE_FILES)
  190. rm -rf ${MOZ_PACKAGE}
  191. mkdir -p ${MOZ_PACKAGE}/npapi/common
  192. mkdir -p ${MOZ_PACKAGE}/npapi/include
  193. for a in $(SOURCE_FILES); do cp ${srcdir}/$$a ${MOZ_PACKAGE}/$$a ; done
  194. tar -zcvf ${MOZ_PACKAGE}.tar.gz ${MOZ_PACKAGE}
  195. rm -rf ${MOZ_PACKAGE}
  196.  
  197. dist: ${MOZ_PACKAGE}.tar.gz
  198.  
  199. bin_export: mozplugger-bin.tar.gz
  200.  
  201. echo_version:
  202. @echo 1.14.6
  203.  
  204. rpm: $(RPMDIR)/SOURCES/mozplugger.tar.gz $(srcdir)/mozplugger.spec
  205. rm -rf rpmtmp ||:
  206. mkdir rpmtmp
  207. mkdir rpmtmp/usr
  208. mkdir rpmtmp/etc
  209. mkdir rpmtmp/opt
  210. mkdir rpmtmp/usr/local
  211. rpm -ba --buildroot `pwd`/rpmtmp mozplugger.spec
  212. cp $(RPMDIR)/SRPMS/mozplugger-1.src.rpm .
  213. cp $(RPMDIR)/RPMS/*/mozplugger-1.*.rpm .
  214. rm -rf rpmtmp
  215.  
  216. $(RPMDIR)/SOURCES/mozplugger.tar.gz: ${MOZ_PACKAGE}.tar.gz
  217. cp ${MOZ_PACKAGE}.tar.gz $(RPMDIR)/SOURCES/mozplugger.tar.gz
  218.  
  219. mozplugger-bin.tar.gz: $(SOURCE_FILES) $(BIN_FILES)
  220. @( DIR=`pwd`;\
  221. BASE=`basename $$DIR`;\
  222. cd .. ; \
  223. if [ "$$BASE" != "mozplugger" ]; then \
  224. ln -s "$$BASE" mozplugger ; \
  225. fi ;\
  226. tar cf - `for a in $(BIN_FILES); do echo mozplugger/$$a ; done` | gzip -9 >mozplugger/mozplugger-bin.tar.gz ;\
  227. if [ "$$BASE" != "mozplugger" ]; then \
  228. rm mozplugger ; \
  229. fi ;\
  230. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement