~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/extras/FreeType/contrib/ttf2pk/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for ttf2pk -- loyer@enst.fr, wl@gnu.org
 
2
#
 
3
# This Makefile assumes that you've already built and installed
 
4
# the FreeType library.
 
5
 
 
6
VPATH = @srcdir@
 
7
srcdir = @srcdir@
 
8
 
 
9
RM = @RM@
 
10
RMF = @RM@ -f
 
11
RMDIR = @RMDIR@
 
12
 
 
13
INSTALL = @INSTALL@
 
14
INSTALL_DATA = @INSTALL_DATA@
 
15
INSTALL_PROGRAM = @INSTALL_PROGRAM@
 
16
 
 
17
CC = @CC@
 
18
CPP = @CPP@
 
19
 
 
20
LIBTOOL = ../../libtool
 
21
MKINSTALLDIRS = $(srcdir)/../../mkinstalldirs
 
22
 
 
23
include MakeSub
 
24
 
 
25
CFLAGS = @CFLAGS@ @XX_CFLAGS@
 
26
CPPFLAGS = @CPPFLAGS@ @DEFS@
 
27
FT_CFLAGS = $(CFLAGS) $(CPPFLAGS)
 
28
LDFLAGS = @LDFLAGS@ @LIBS@
 
29
LIBDIR = ../../lib
 
30
 
 
31
SRC = $(srcdir)/case.c     \
 
32
      $(srcdir)/errormsg.c \
 
33
      $(srcdir)/filesrch.c \
 
34
      $(srcdir)/ligkern.c  \
 
35
      $(srcdir)/newobj.c   \
 
36
      $(srcdir)/parse.c    \
 
37
      $(srcdir)/pklib.c    \
 
38
      $(srcdir)/subfont.c  \
 
39
      $(srcdir)/texenc.c   \
 
40
      $(srcdir)/tfmaux.c   \
 
41
      $(srcdir)/ttf2pk.c   \
 
42
      $(srcdir)/ttf2tfm.c  \
 
43
      $(srcdir)/ttfaux.c   \
 
44
      $(srcdir)/ttfenc.c   \
 
45
      $(srcdir)/ttflib.c   \
 
46
      $(srcdir)/vplaux.c
 
47
 
 
48
ttf2pkobjs = errormsg.o filesrch.o ligkern.o newobj.o parse.o pklib.o \
 
49
             subfont.o texenc.o ttf2pk.o ttfenc.o ttflib.o
 
50
ttf2tfmobjs = case.o errormsg.o filesrch.o ligkern.o newobj.o parse.o \
 
51
              subfont.o texenc.o tfmaux.o ttf2tfm.o ttfaux.o ttfenc.o \
 
52
              vplaux.o
 
53
 
 
54
 
 
55
.c.o:
 
56
        $(CC) -c $(FT_CFLAGS) $<
 
57
 
 
58
 
 
59
PROGRAMS = ttf2pk ttf2tfm
 
60
 
 
61
default all: $(PROGRAMS)
 
62
 
 
63
ttf2pk: $(ttf2pkobjs) $(LIBDIR)/libttf.la
 
64
        $(LIBTOOL) --mode=link $(CC) $(FT_CFLAGS) -o ttf2pk $(ttf2pkobjs) \
 
65
                                     $(LIBDIR)/libttf.la $(LDFLAGS)
 
66
 
 
67
ttf2tfm: $(ttf2tfmobjs) $(LIBDIR)/libttf.la
 
68
        $(LIBTOOL) --mode=link $(CC) $(FT_CFLAGS) -o ttf2tfm $(ttf2tfmobjs) \
 
69
                                     $(LIBDIR)/libttf.la $(LDFLAGS)
 
70
 
 
71
install: $(PROGRAMS)
 
72
        $(MKINSTALLDIRS) $(bindir) $(mandir)/man1
 
73
        for P in $(PROGRAMS) ; do \
 
74
          $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$P $(bindir)/$$P ; \
 
75
          $(INSTALL_DATA) $(srcdir)/$$P.1 $(mandir)/man1 ; \
 
76
        done
 
77
 
 
78
uninstall:
 
79
        -for P in $(PROGRAMS) ; do \
 
80
          $(LIBTOOL) --mode=uninstall $(RM) $(bindir)/$$P ; \
 
81
          $(RMF) $(mandir)/man1/$$P.1 ; \
 
82
        done
 
83
 
 
84
clean: do_clean
 
85
 
 
86
distclean: do_clean
 
87
        -$(RMF) dep.end $(PROGRAMS)
 
88
        -$(RMF) *~ *.orig core *.core
 
89
        -$(RMF) config.cache config.log config.status Makefile MakeSub
 
90
        -$(RMF) .libs/*
 
91
        -$(RMDIR) .libs
 
92
 
 
93
do_clean:
 
94
        -$(RMF) *.o
 
95
 
 
96
 
 
97
depend:
 
98
        (echo '/^#.* PUT NO STUFF BELOW/,$$d' ; echo w ; echo q) | \
 
99
         ed - Makefile
 
100
        echo '# Dependencies generated by make depend: PUT NO STUFF BELOW' \
 
101
          >> Makefile
 
102
        for file in $(SRC) ; do \
 
103
          $(CPP) $(CPPFLAGS) $$file | \
 
104
           sed -n -e 's|^# [1-9][0-9]* "\([^/].*\.h\)".*|\1|p' \
 
105
                  -e 's|^# [1-9][0-9]* "\($(srcdir)/.*\.h\)".*|\1|p' | \
 
106
           sed -e 's|/\./|.|g' -e "s/^/`basename $$file .c`.o: /" ; \
 
107
        done | \
 
108
         sort -u | \
 
109
         awk '{ if (LINE == 1) \
 
110
                  { line = last = $$1 } \
 
111
                else if ($$1 != last) \
 
112
                  { print line ; line = last = $$1 } \
 
113
                line = line " " $$2 } \
 
114
              END { print line }' >> Makefile
 
115
 
 
116
# Dependencies generated by make depend: PUT NO STUFF BELOW