kopia lustrzana https://gitlab.com/sane-project/frontends
120 wiersze
3.0 KiB
Makefile
120 wiersze
3.0 KiB
Makefile
SHELL = /bin/sh
|
|
|
|
VPATH = @srcdir@
|
|
srcdir = @srcdir@
|
|
top_srcdir = @top_srcdir@
|
|
top_builddir = ..
|
|
|
|
PACKAGE = @PACKAGE@
|
|
VERSION = @VERSION@
|
|
distdir = $(top_srcdir)/$(PACKAGE)-$(VERSION)
|
|
|
|
sane_prefix = @SANE_PREFIX@
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
bindir = @bindir@
|
|
libexecdir = @libexecdir@
|
|
datadir = @datadir@
|
|
sysconfdir = @sysconfdir@
|
|
sharedstatedir = @sharedstatedir@
|
|
localstatedir = @localstatedir@
|
|
libdir = @libdir@
|
|
infodir = @infodir@
|
|
mandir = @mandir@
|
|
includedir = @includedir@
|
|
oldincludedir = /usr/include
|
|
configdir = ${sysconfdir}/sane.d
|
|
sanedatadir = ${datadir}/sane
|
|
|
|
MKDIR = $(top_srcdir)/mkinstalldirs
|
|
INSTALL = @INSTALL@
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
CC = @CC@
|
|
INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include \
|
|
@INCLUDES@ @GTK_CFLAGS@ @GIMP_CFLAGS@
|
|
DEFS = @DEFS@
|
|
CPPFLAGS = @CPPFLAGS@
|
|
CFLAGS = @CFLAGS@ @SANE_CFLAGS@
|
|
LDFLAGS = @LDFLAGS@ @SANE_LDFLAGS@
|
|
LIBS = @LIBS@ @SANE_LIBS@
|
|
GTK_LIBS = @GTK_LIBS@
|
|
GTK_CFLAGS = @GTK_CFLAGS@
|
|
GIMP_LIBS = @GIMP_LIBS@
|
|
|
|
BINPROGS = @BINPROGS@
|
|
|
|
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(GTK_CFLAGS)
|
|
LINK = $(CC) $(LDFLAGS) -o $@
|
|
|
|
@SET_MAKE@
|
|
|
|
PROGRAMS = $(BINPROGS)
|
|
LIBSANEI = ../sanei/libsanei.a
|
|
|
|
XSCANIMAGE_OBJS = xscanimage.o progress.o preview.o preferences.o gtkglue.o
|
|
XCAM_OBJS = xcam.o preferences.o gtkglue.o
|
|
SCANADF_OBJS = scanadf.o
|
|
|
|
DISTFILES = Makefile.in gtkglue.c gtkglue.h preferences.c preferences.h \
|
|
preview.c preview.h progress.c progress.h sane-style.rc xcam.c \
|
|
xscanimage-gimp-1_0-compat.h xscanimage.c scanadf.c font_6x11.h
|
|
|
|
.PHONY: all clean depend dist distclean install uninstall
|
|
|
|
.c.o:
|
|
$(COMPILE) $<
|
|
|
|
all: $(PROGRAMS)
|
|
|
|
install: $(PROGRAMS)
|
|
@if test -z "$(BINPROGS)" ; then \
|
|
echo "*** The list of frontends to install is empty." ; \
|
|
echo "*** Check the output of configure and the file config.log," ; \
|
|
echo "*** maybe the GTK libraries weren't found?" ; \
|
|
exit 1 ; \
|
|
fi
|
|
$(MKDIR) $(DESTDIR)$(bindir) $(DESTDIR)$(datadir) $(DESTDIR)$(sanedatadir)
|
|
@for program in $(BINPROGS); do \
|
|
echo installing $${program} in $(bindir)/$${program}... ; \
|
|
$(INSTALL_PROGRAM) $${program} \
|
|
$(DESTDIR)$(bindir)/$${program}; \
|
|
done
|
|
$(INSTALL_DATA) $(srcdir)/sane-style.rc \
|
|
$(DESTDIR)$(sanedatadir)/sane-style.rc
|
|
|
|
uninstall:
|
|
@for program in $(BINPROGS); do \
|
|
echo removing $(bindir)/$${program}...; \
|
|
rm -f $(bindir)/$${program}; \
|
|
done
|
|
rm -f $(sanedatadir)/sane-style.rc
|
|
|
|
xscanimage: $(XSCANIMAGE_OBJS) $(LIBSANEI)
|
|
$(LINK) $(XSCANIMAGE_OBJS) $(LIBSANEI) \
|
|
$(GIMP_LIBS) $(GTK_LIBS) $(LIBS)
|
|
|
|
xcam: $(XCAM_OBJS) $(LIBSANEI)
|
|
$(LINK) $(XCAM_OBJS) $(LIBSANEI) \
|
|
$(GTK_LIBS) $(LIBS)
|
|
|
|
scanadf: $(SCANADF_OBJS)
|
|
$(LINK) $(SCANADF_OBJS) $(LIBS)
|
|
|
|
clean:
|
|
rm -f *.o *~ .*~ *.bak
|
|
rm -rf .libs
|
|
|
|
distclean: clean
|
|
rm -f Makefile $(PROGRAMS)
|
|
|
|
depend:
|
|
makedepend $(INCLUDES) *.c
|
|
|
|
dist: $(DISTFILES)
|
|
for file in $(DISTFILES); do \
|
|
ln $$file $(distdir)/src 2> /dev/null \
|
|
|| cp -p $$file $(distdir)/src ; \
|
|
done
|