poppler: embed mktmpname() from the xpdf changes patch
[swftools.git] / Makefile.common.in
1 # --------------------- init --------------------------
2
3 # shells, skripts, tools etc.
4 SHELL = @SHELL@
5 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
6 @SET_MAKE@
7
8 # compiling
9 DEFS=@DEFS@
10 INCLUDES=
11 DEP=@CC@ -MM $(DEFS) $(INCLUDES) @CPPFLAGS@
12 C=@CC@ -c $(DEFS) $(INCLUDES) @CPPFLAGS@ @CFLAGS@
13 CC=@CXX@ -c $(DEFS) $(INCLUDES) @CPPFLAGS@ @CXXFLAGS@
14 L=@CC@ $(DEFS)
15 LL=@CXX@ $(DEFS)
16 AR=@AR@
17 LIBTOOL=@LIBTOOL@
18 SC=$(LIBTOOL) @CC@ -c $(DEFS) $(INCLUDES) @CPPFLAGS@ @CFLAGS@
19 SCC=$(LIBTOOL) @CXX@ -c $(DEFS) $(INCLUDES) @CPPFLAGS@ @CXXFLAGS@
20 SL=$(LIBTOOL) --mode=link @CC@ $(DEFS) -rpath $(libdir)
21 SLL=$(LIBTOOL) --mode=link @CXX@ $(DEFS) -rpath $(libdir)
22 LIBS= @LDFLAGS@ @LIBS@
23 CXXLIBS=@CXXLIBS@
24 transform = @program_transform_name@
25 CPPFLAGS=@CPPFLAGS@
26
27 PYTHON_LIB=@PYTHON_LIB@
28 PYTHON_INCLUDES=@PYTHON_INCLUDES@
29
30 RUBY_CPPFLAGS=@RUBY_CPPFLAGS@
31 RUBY_LDFLAGS=@RUBY_LDFLAGS@
32 RUBY_LIBS=@RUBY_LIBS@
33 RUBY_INSTALLDIR=@RUBY_INSTALLDIR@
34
35 # libtool stuff
36 OBJEXT=@OBJEXT@
37 EXEEXT=@EXEEXT@
38 AREXT=@AREXT@
39 SHARED=@SHARED@
40 E=$(EXEEXT)
41 O=$(OBJEXT)
42 A=$(AREXT)
43 SLEXT=@SLEXT@
44 ECHO=@ECHO@
45 RANLIB=@RANLIB@
46 STRIP=@STRIP@
47
48 # installing
49 LN_S = @LN_S@
50 PACKAGE = @PACKAGE@
51 INSTALL = @INSTALL@
52 INSTALL_DATA = @INSTALL_DATA@
53 UNINSTALL_DATA = rm -f
54 INSTALL_PROGRAM = @INSTALL_PROGRAM@
55 prefix = @prefix@
56 exec_prefix = @exec_prefix@
57 bindir = @bindir@
58 datadir = @datadir@
59 libdir = @libdir@
60 includedir = @includedir@
61 sysconfdir = @sysconfdir@
62 pkgdatadir = $(datadir)/@PACKAGE@
63
64 # man pages
65 mandir = @mandir@
66 man1dir = $(mandir)/man1
67
68 # ------------------- defines -------------------------
69
70 INSTALL_BIN = echo installing $$file to $(bindir);$(INSTALL_PROGRAM) $$file $(bindir)/`echo $$file|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`
71 UNINSTALL_BIN = ff=`echo $$file|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`;echo rm -f $(bindir)/$$ff;rm -f $(bindir)/$$ff
72 INSTALL_MAN1 = ff=$(srcdir)/$$file.1; inst=`echo $$file | sed '$(transform)'`.1; echo "$(INSTALL_DATA) $$ff $(man1dir)/$$inst"; $(INSTALL_DATA) $$ff $(man1dir)/$$inst
73 UNINSTALL_MAN1 = ff=$(srcdir)/$$file.1; inst=`echo $$file | sed '$(transform)'`.1; echo "rm -f $(man1dir)/$$inst"; rm -f $(man1dir)/$$inst
74
75 #%.o: %.c
76 #       $(C) $< -o $@
77
78 #%: %.o
79 #       $(L) $< -o $@ ../lib/librfxswf.a $(LIBS) 
80
81 #%.o: %.cc
82 #       $(CC) -DDATADIR=\"$(pkgdatadir)\" -I../lib -Ittf2pt1 -Ixpdf $< -o $@
83
84 # GNU Makefile stuff
85
86 .SUFFIXES: