Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Makefile. Generated from Makefile.in by configure.
- # For building rpms
- root=
- # For installing
- prefix=/usr/local
- exec_prefix=${prefix}
- datarootdir=${prefix}/share
- #For building away from source directory
- srcdir=.
- PLUGINDIRS=/usr/lib/mozilla/plugins /usr/lib/mozilla/plugins
- # On 64 bit arch change libprefix to lib64
- libprefix=/lib
- #libprefix=/lib64
- #
- #
- RPMDIR=/usr/src/RPM
- # Choose compiler
- CC=gcc
- MKDIR=mkdir -p
- SOURCE_FILES=mozplugger.c \
- mozplugger-common.c \
- mozplugger-helper.c \
- mozplugger-controller.c \
- mozplugger-linker.c \
- mozplugger.spec \
- child.c \
- debug.c \
- mozplugger.h \
- child.h \
- debug.h \
- npn-get-helpers.h \
- npn-get-helpers.c \
- npapi/common/npunix.c \
- npapi/include/npapi.h \
- npapi/include/npupp.h \
- npapi/include/nptypes.h \
- npapi/include/npruntime.h \
- Makefile.in \
- Makefile.old \
- mozplugger.7 \
- README \
- COPYING \
- ChangeLog \
- mozpluggerrc \
- configure.ac \
- config.h.in \
- configure
- BIN_FILES=mozplugger.so \
- mozplugger-helper \
- mozplugger-controller \
- mozplugger-linker \
- Makefile \
- mozplugger.7 \
- README \
- COPYING \
- ChangeLog \
- mozpluggerrc \
- config.h
- DEFINES= -DHAVE_CONFIG_H -DSYSCONFDIR=\"${prefix}/etc\" #-D__amd64__
- INCLUDES= -I. -I$(srcdir) -I$(srcdir)/npapi/include
- COMMON_CFLAGS=$(INCLUDES) $(DEFINES)
- XLIBS=
- LDSHARED=gcc -shared
- LDFLAGS= -L/usr/lib
- CFLAGS=$(COMMON_CFLAGS) $(XCFLAGS) -fPIC -Wall -O2
- all: mozplugger.so mozplugger-helper mozplugger-controller mozplugger-linker
- mozplugger-helper: mozplugger-helper.o mozplugger-common.o child.o debug.o
- $(CC) $(LDFLAGS) -o mozplugger-helper mozplugger-helper.o mozplugger-common.o child.o debug.o $(XLIBS)
- mozplugger-helper.o: mozplugger-helper.c mozplugger.h child.h debug.h config.h
- $(CC) -c $(CFLAGS) -o mozplugger-helper.o '$(srcdir)/mozplugger-helper.c'
- mozplugger.so: mozplugger.o npunix.o mozplugger-common.o debug.o npn-get-helpers.o
- $(LDSHARED) $(LDFLAGS) -o mozplugger.so mozplugger.o mozplugger-common.o npunix.o debug.o npn-get-helpers.o $(XLIBS)
- mozplugger-common.o: mozplugger-common.c mozplugger.h config.h
- $(CC) -c $(CFLAGS) -o mozplugger-common.o '$(srcdir)/mozplugger-common.c'
- mozplugger.o: mozplugger.c mozplugger.h config.h npn-get-helpers.h
- $(CC) -c $(CFLAGS) -o mozplugger.o '$(srcdir)/mozplugger.c'
- npunix.o: $(srcdir)/npapi/common/npunix.c config.h
- $(CC) -c $(CFLAGS) -o npunix.o '$(srcdir)/npapi/common/npunix.c'
- child.o: child.c child.h debug.h mozplugger.h config.h
- $(CC) -c $(CFLAGS) -o child.o '$(srcdir)/child.c'
- debug.o: debug.c debug.h config.h
- $(CC) -c $(CFLAGS) -o debug.o '$(srcdir)/debug.c'
- npn-get-helpers.o: npn-get-helpers.c npn-get-helpers.h debug.h
- $(CC) -c $(CFLAGS) -o npn-get-helpers.o '$(srcdir)/npn-get-helpers.c'
- mozplugger-controller: mozplugger-controller.o mozplugger-common.o child.o debug.o
- $(CC) -o mozplugger-controller mozplugger-controller.o mozplugger-common.o child.o debug.o $(LDFLAGS) $(XLIBS)
- mozplugger-controller.o: mozplugger-controller.c mozplugger.h child.h debug.h config.h
- $(CC) -c $(CFLAGS) -o mozplugger-controller.o '$(srcdir)/mozplugger-controller.c'
- mozplugger-linker: mozplugger-linker.o mozplugger-common.o child.o debug.o
- $(CC) -o mozplugger-linker mozplugger-linker.o mozplugger-common.o child.o debug.o $(LDFLAGS) $(XLIBS)
- mozplugger-linker.o: mozplugger-linker.c mozplugger.h child.h debug.h config.h
- $(CC) -c $(CFLAGS) -o mozplugger-linker.o '$(srcdir)/mozplugger-linker.c'
- $(srcdir)/configure: configure.ac
- cd '$(srcdir)' && autoconf
- Makefile: Makefile.in config.status
- ./config.status
- config.h: config.h.in config.status
- ./config.status
- config.status: configure
- ./config.status --recheck
- clean:
- -rm -f *.o npapi/common/*.o *.gcda *.gcno *.so
- -rm -f mozplugger-helper mozplugger-controller mozplugger-linker
- distclean: clean
- -rm -f *~ core
- -rm -f config.h config.status config.log Makefile
- -rm -rf autom4te.cache
- -rm -rf rpmtmp
- localinstall: mozplugger.so mozplugger-helper mozplugger-controller mozplugger-linker
- -@$(MKDIR) $$HOME/$(BROWSERDIR)/plugins
- cp mozplugger.so $$HOME/$(BROWSERDIR)/plugins/
- cp mozplugger-helper $$HOME/$(BROWSERDIR)/
- cp mozplugger-controller $$HOME/$(BROWSERDIR)/
- cp mozplugger-linker $$HOME/$(BROWSERDIR)/
- if [ -f $$HOME/$(BROWSERDIR)/mozpluggerrc ]; then mv $$HOME/$(BROWSERDIR)/mozpluggerrc $$HOME/$(BROWSERDIR)/mozpluggerrc.old; fi
- cp mozpluggerrc $$HOME/$(BROWSERDIR)/
- localinstall_mozilla:
- make localinstall BROWSERDIR=.mozilla
- localinstall_netscape:
- make localinstall BROWSERDIR=.netscape
- localinstall_opera:
- make localinstall BROWSERDIR=.opera
- install:
- -@install -d ${exec_prefix}/bin
- -@install -d $(prefix)$(libprefix)/mozilla/plugins
- -@install -d ${datarootdir}/man/man7
- -@install -d ${prefix}/etc
- install mozplugger-helper ${exec_prefix}/bin
- install mozplugger-controller ${exec_prefix}/bin
- install mozplugger-linker ${exec_prefix}/bin
- for a in ${PLUGINDIRS}; do install mozplugger.so $$a ; done
- # cp mozplugger.so $(prefix)$(libprefix)/mozilla/plugins/
- install $(srcdir)/mozpluggerrc ${prefix}/etc
- install $(srcdir)/mozplugger.7 ${datarootdir}/man/man7/
- uninstall:
- rm -f ${datarootdir}/man/man7/mozplugger.7
- rm -f ${prefix}/etc/mozpluggerrc
- for target in ${PLUGINDIRS}; do rm -f $${target}/mozplugger.so; done
- rm -f ${exec_prefix}/bin/mozplugger-linker
- rm -f ${exec_prefix}/bin/mozplugger-controller
- rm -f ${exec_prefix}/bin/mozplugger-helper
- -rmdir ${prefix}/etc
- -rmdir ${datarootdir}/man/man7
- -rmdir ${datarootdir}/man
- -rmdir ${exec_prefix}/bin
- MOZ_PACKAGE=mozplugger-1.14.6
- ${MOZ_PACKAGE}.tar.gz: $(SOURCE_FILES)
- rm -rf ${MOZ_PACKAGE}
- mkdir -p ${MOZ_PACKAGE}/npapi/common
- mkdir -p ${MOZ_PACKAGE}/npapi/include
- for a in $(SOURCE_FILES); do cp ${srcdir}/$$a ${MOZ_PACKAGE}/$$a ; done
- tar -zcvf ${MOZ_PACKAGE}.tar.gz ${MOZ_PACKAGE}
- rm -rf ${MOZ_PACKAGE}
- dist: ${MOZ_PACKAGE}.tar.gz
- bin_export: mozplugger-bin.tar.gz
- echo_version:
- @echo 1.14.6
- rpm: $(RPMDIR)/SOURCES/mozplugger.tar.gz $(srcdir)/mozplugger.spec
- rm -rf rpmtmp ||:
- mkdir rpmtmp
- mkdir rpmtmp/usr
- mkdir rpmtmp/etc
- mkdir rpmtmp/opt
- mkdir rpmtmp/usr/local
- rpm -ba --buildroot `pwd`/rpmtmp mozplugger.spec
- cp $(RPMDIR)/SRPMS/mozplugger-1.src.rpm .
- cp $(RPMDIR)/RPMS/*/mozplugger-1.*.rpm .
- rm -rf rpmtmp
- $(RPMDIR)/SOURCES/mozplugger.tar.gz: ${MOZ_PACKAGE}.tar.gz
- cp ${MOZ_PACKAGE}.tar.gz $(RPMDIR)/SOURCES/mozplugger.tar.gz
- mozplugger-bin.tar.gz: $(SOURCE_FILES) $(BIN_FILES)
- @( DIR=`pwd`;\
- BASE=`basename $$DIR`;\
- cd .. ; \
- if [ "$$BASE" != "mozplugger" ]; then \
- ln -s "$$BASE" mozplugger ; \
- fi ;\
- tar cf - `for a in $(BIN_FILES); do echo mozplugger/$$a ; done` | gzip -9 >mozplugger/mozplugger-bin.tar.gz ;\
- if [ "$$BASE" != "mozplugger" ]; then \
- rm mozplugger ; \
- fi ;\
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement