mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-19 22:34:37 +00:00
3aae39405e
2002-06-08 Sven Neumann <sven@gimp.org> * app/base/Makefile.am * app/paint-funcs/Makefile.am: automake-1.6 seems to use yet another variable to pass flags to the assembler (bug #84514). Define AM_CCASFLAGS like AM_ASFLAGS to satisfy all versions of automake. * configure.in * all Makefiles: removed STRIP_BEGIN and STRIP_END since it's a GNU make extension that we don't really need and newer versions of automake don't seem to like it.
124 lines
2.8 KiB
Perl
Executable file
124 lines
2.8 KiB
Perl
Executable file
#!/usr/bin/perl -w
|
|
|
|
use lib '../../tools/pdbgen';
|
|
|
|
require 'util.pl';
|
|
|
|
*write_file = \&Gimp::CodeGen::util::write_file;
|
|
*FILE_EXT = \$Gimp::CodeGen::util::FILE_EXT;
|
|
|
|
$outmk = "Makefile.am$FILE_EXT";
|
|
$outignore = ".cvsignore$FILE_EXT";
|
|
open MK, "> $outmk";
|
|
open IGNORE, "> $outignore";
|
|
|
|
require 'plugin-defs.pl';
|
|
|
|
$bins = ""; $opts = "";
|
|
|
|
foreach (sort keys %plugins) {
|
|
$bins .= "\t";
|
|
if (exists $plugins{$_}->{optional}) {
|
|
$bins .= "\$(\U$_\E)";
|
|
$opts .= "\t$_ \\\n";
|
|
}
|
|
else {
|
|
$bins .= $_;
|
|
}
|
|
$bins .= " \\\n";
|
|
}
|
|
|
|
$extra = "";
|
|
foreach (@extra) { $extra .= "\t$_\t\\\n" }
|
|
if ($extra) {
|
|
$extra =~ s/\t\\\n$//s;
|
|
$extra = "\t\\\n$extra";
|
|
}
|
|
|
|
foreach ($bins, $opts) { s/ \\\n$//s }
|
|
|
|
print MK <<EOT;
|
|
## This file is autogenerated by mkgen.pl and plugin-defs.pl
|
|
|
|
libexecdir = \$(gimpplugindir)/plug-ins
|
|
|
|
EXTRA_DIST = \\
|
|
mkgen.pl \\
|
|
plugin-defs.pl$extra
|
|
|
|
INCLUDES = \\
|
|
-I\$(top_srcdir) \\
|
|
\$(GTK_CFLAGS) \\
|
|
-I\$(includedir)
|
|
|
|
libexec_PROGRAMS = \\
|
|
$bins
|
|
|
|
EXTRA_PROGRAMS = \\
|
|
$opts
|
|
|
|
install-\%: \%
|
|
\@\$(NORMAL_INSTALL)
|
|
\$(mkinstalldirs) \$(DESTDIRS)\$(libexecdir)
|
|
\@if test -f \$<; then \\
|
|
echo " \$(LIBTOOL) --mode=install \$(INSTALL_PROGRAM) \$< \$(DESTDIR)\$(libexecdir)/`echo \$<|sed 's/\$(EXEEXT)\$\$//'|sed '\$(transform)'|sed 's/\$\$/\$(EXEEXT)/'`"; \\
|
|
\$(LIBTOOL) --mode=install \$(INSTALL_PROGRAM) \$< \$(DESTDIR)\$(libexecdir)/`echo \$<|sed 's/\$(EXEEXT)\$\$//'|sed '\$(transform)'|sed 's/\$\$/\$(EXEEXT)/'`; \\
|
|
else :; fi
|
|
EOT
|
|
|
|
print IGNORE <<EOT;
|
|
Makefile
|
|
Makefile.in
|
|
.deps
|
|
.libs
|
|
EOT
|
|
|
|
foreach (sort keys %plugins) {
|
|
my $libgimp = "";
|
|
|
|
$libgimp .= "\$(top_builddir)/libgimp/libgimp-\$(LT_RELEASE).la";
|
|
if (exists $plugins{$_}->{ui}) {
|
|
$libgimp .= "\t\t\\\n\t$libgimp";
|
|
$libgimp =~ s/gimp-/gimpui-/;
|
|
|
|
$libgimp .= "\t\t\\\n\t\$(top_builddir)/libgimpwidgets/libgimpwidgets-\$(LT_RELEASE).la";
|
|
$libgimp .= "\t\\\n\t\$(top_builddir)/libgimpcolor/libgimpcolor-\$(LT_RELEASE).la";
|
|
$libgimp .= "\t\\\n\t\$(top_builddir)/libgimpbase/libgimpbase-\$(LT_RELEASE).la";
|
|
} else {
|
|
$libgimp .= "\t\t\\\n\t\$(top_builddir)/libgimpcolor/libgimpcolor-\$(LT_RELEASE).la";
|
|
$libgimp .= "\t\\\n\t\$(top_builddir)/libgimpbase/libgimpbase-\$(LT_RELEASE).la";
|
|
}
|
|
|
|
my $optlib = "";
|
|
if (exists $plugins{$_}->{optional}) {
|
|
my $name = exists $plugins{$_}->{libopt} ? $plugins{$_}->{libopt} : $_;
|
|
$optlib = "\n\t\$(LIB\U$name\E)\t\t\t\t\t\t\t\\";
|
|
}
|
|
|
|
if (exists $plugins{$_}->{libsupp}) {
|
|
my @lib = split(/:/, $plugins{$_}->{libsupp});
|
|
foreach $lib (@lib) {
|
|
$libgimp = "\$(top_builddir)/plug-ins/$lib/lib$lib.a\t\\\n\t$libgimp";
|
|
}
|
|
}
|
|
|
|
print MK <<EOT;
|
|
|
|
${_}_SOURCES = \\
|
|
$_.c
|
|
|
|
${_}_LDADD = \\
|
|
$libgimp \\$optlib
|
|
\$(\U$plugins{$_}->{libdep}\E_LIBS) \\
|
|
\$(INTLLIBS)
|
|
EOT
|
|
|
|
print IGNORE "$_\n";
|
|
}
|
|
|
|
close MK;
|
|
close IGNORE;
|
|
|
|
&write_file($outmk);
|
|
&write_file($outignore);
|