Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # |
michael@0 | 2 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 5 | |
michael@0 | 6 | SHELL = /bin/sh |
michael@0 | 7 | .SUFFIXES: |
michael@0 | 8 | .SUFFIXES: .c .o .h .in .a .so |
michael@0 | 9 | |
michael@0 | 10 | srcdir = @srcdir@ |
michael@0 | 11 | VPATH = @srcdir@ |
michael@0 | 12 | prefix = @prefix@ |
michael@0 | 13 | exec_prefix = @exec_prefix@ |
michael@0 | 14 | includedir = @includedir@ |
michael@0 | 15 | bindir = @bindir@ |
michael@0 | 16 | @SET_MAKE@ |
michael@0 | 17 | INSTALL = @INSTALL@ |
michael@0 | 18 | RANLIB = @RANLIB@ |
michael@0 | 19 | AR = @AR@ |
michael@0 | 20 | CC = @CC@ |
michael@0 | 21 | LD = @LD@ |
michael@0 | 22 | RM = @RM@ |
michael@0 | 23 | TAR = @TAR@ |
michael@0 | 24 | |
michael@0 | 25 | CPPFLAGS = @CPPFLAGS@ |
michael@0 | 26 | CFLAGS = @CFLAGS@ |
michael@0 | 27 | LDFLAGS = @LDFLAGS@ |
michael@0 | 28 | LIBS = @LIBS@ |
michael@0 | 29 | |
michael@0 | 30 | INSTALL_PROGRAM = $(INSTALL) -m 0500 |
michael@0 | 31 | |
michael@0 | 32 | all:: program |
michael@0 | 33 | |
michael@0 | 34 | # Standard Netscape/Mozilla targets: |
michael@0 | 35 | # import import_xp export private_export libs program install all clobber |
michael@0 | 36 | # clobber_all release release_xp alltags |
michael@0 | 37 | |
michael@0 | 38 | # Standard GNU targets: |
michael@0 | 39 | # all install uninstall install-strip clean distclean mostlyclean |
michael@0 | 40 | # maintainer-clean TAGS info dvi dist check installcheck installdirs |
michael@0 | 41 | |
michael@0 | 42 | # === The actual targets and the real commands that make them === |
michael@0 | 43 | program:: trivial |
michael@0 | 44 | |
michael@0 | 45 | trivial: trivial.c config.h Makefile |
michael@0 | 46 | $(CC) -I. -I${srcdir} $(CFLAGS) $(CPPFLAGS) $< -o $@ $(LDFLAGS) $(LIBS) |
michael@0 | 47 | |
michael@0 | 48 | # Now, various standard targets, some that do stuff, some that are no-ops |
michael@0 | 49 | |
michael@0 | 50 | import:: |
michael@0 | 51 | |
michael@0 | 52 | export:: install |
michael@0 | 53 | |
michael@0 | 54 | private_export:: |
michael@0 | 55 | |
michael@0 | 56 | program:: |
michael@0 | 57 | |
michael@0 | 58 | clobber:: clean |
michael@0 | 59 | |
michael@0 | 60 | clobber_all:: maintainer-clean |
michael@0 | 61 | |
michael@0 | 62 | alltags:: TAGS |
michael@0 | 63 | |
michael@0 | 64 | RESULTS = \ |
michael@0 | 65 | $(DESTDIR)$(bindir)/trivial \ |
michael@0 | 66 | $(NULL) |
michael@0 | 67 | |
michael@0 | 68 | install:: $(RESULTS) |
michael@0 | 69 | |
michael@0 | 70 | $(DESTDIR)$(bindir)/trivial: trivial |
michael@0 | 71 | $(INSTALL_PROGRAM) trivial $(DESTDIR)$(bindir)/trivial |
michael@0 | 72 | |
michael@0 | 73 | # "rm -f" with no arguments bites on some platforms. |
michael@0 | 74 | # There should be an autoconf check and maybe a more |
michael@0 | 75 | # general $(FORCEDREMOVE) command |
michael@0 | 76 | |
michael@0 | 77 | uninstall:: |
michael@0 | 78 | $(RM) -f $(RESULTS) |
michael@0 | 79 | |
michael@0 | 80 | install-strip:: |
michael@0 | 81 | $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s ' install |
michael@0 | 82 | |
michael@0 | 83 | clean:: |
michael@0 | 84 | $(RM) -f *~ core trivial.o trivial |
michael@0 | 85 | |
michael@0 | 86 | distclean:: clean |
michael@0 | 87 | $(RM) -f Makefile config.cache config.h config.log config.status stamp-h stamp-h.in |
michael@0 | 88 | |
michael@0 | 89 | mostlyclean:: clean |
michael@0 | 90 | |
michael@0 | 91 | maintainer-clean:: distclean |
michael@0 | 92 | $(RM) -f TAGS trivial*.tar.gz |
michael@0 | 93 | |
michael@0 | 94 | TAGS:: |
michael@0 | 95 | |
michael@0 | 96 | DISTFILES = \ |
michael@0 | 97 | .cvsignore \ |
michael@0 | 98 | README.txt \ |
michael@0 | 99 | Makefile.in \ |
michael@0 | 100 | acconfig.h \ |
michael@0 | 101 | config.h.in \ |
michael@0 | 102 | configure \ |
michael@0 | 103 | configure.in \ |
michael@0 | 104 | install-sh \ |
michael@0 | 105 | trivial.c \ |
michael@0 | 106 | $(NULL) |
michael@0 | 107 | |
michael@0 | 108 | dist:: trivial.tar.gz |
michael@0 | 109 | |
michael@0 | 110 | # There must be an easier and more portable way of doing this.. |
michael@0 | 111 | trivial.tar.gz: $(DISTFILES) |
michael@0 | 112 | echo $(DISTFILES) | tr ' ' '\n' | sed "s^.*^`( cd ${srcdir}; pwd ) | xargs basename`/&^" | xargs tar czf $@ -C ${srcdir}/.. |
michael@0 | 113 | |
michael@0 | 114 | # other "standard" but irrelevant targets |
michael@0 | 115 | info:: |
michael@0 | 116 | |
michael@0 | 117 | dvi:: |
michael@0 | 118 | |
michael@0 | 119 | check:: |
michael@0 | 120 | |
michael@0 | 121 | installcheck:: |
michael@0 | 122 | |
michael@0 | 123 | installdirs:: |
michael@0 | 124 | |
michael@0 | 125 | # Include dependancies |
michael@0 | 126 | |
michael@0 | 127 | |
michael@0 | 128 | # autoheader might not change config.h.in, so touch a stamp file |
michael@0 | 129 | ${srcdir}/config.h.in: stamp-h.in |
michael@0 | 130 | ${srcdir}/stamp-h.in: configure.in acconfig.h |
michael@0 | 131 | cd ${srcdir} && autoheader |
michael@0 | 132 | echo timestamp > ${srcdir}/stamp-h.in |
michael@0 | 133 | |
michael@0 | 134 | # Remake the configuration |
michael@0 | 135 | ${srcdir}/configure: configure.in |
michael@0 | 136 | cd ${srcdir} && autoconf |
michael@0 | 137 | |
michael@0 | 138 | config.h: stamp-h |
michael@0 | 139 | stamp-h: config.h.in config.status |
michael@0 | 140 | ./config.status |
michael@0 | 141 | |
michael@0 | 142 | Makefile: Makefile.in config.status |
michael@0 | 143 | ./config.status |
michael@0 | 144 | |
michael@0 | 145 | config.status: configure |
michael@0 | 146 | ./config.status --recheck |