blob: 439369d1b0d3277768f61060524a0a6b9355cd67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
SHELL = /bin/sh
VPATH = @srcdir@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ..
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
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
MKINSTALLDIRS = @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 \
@GTK_CFLAGS@ @INCLUDES@ \
-DLOCALEDIR=\""$(datadir)/locale"\"
DEFS = @DEFS@
CPPFLAGS = @CPPFLAGS@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @INTLLIBS@ @LIBS@
GTK_LIBS = @GTK_LIBS@
GIMP_LIBS = @GIMP_LIBS@
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LINK = $(CC) $(LDFLAGS) -o $@
BINPROGS = @BINPROGS@
@SET_MAKE@
PROGRAMS = $(BINPROGS)
LIBLIB = ../lib/liblib.a
XSANE_OBJS = xsane-back-gtk.o xsane-front-gtk.o xsane-gamma.o xsane-preview.o \
xsane-rc-io.o xsane-device-preferences.o xsane-preferences.o \
xsane-setup.o xsane-save.o xsane-scan.o xsane-icons.o xsane.o
.c.o:
$(COMPILE) $<
all: $(PROGRAMS)
install: $(PROGRAMS)
$(MKINSTALLDIRS) $(bindir) $(sbindir) $(datadir) $(sanedatadir) $(sanedatadir)/xsane
@for program in $(BINPROGS); do \
$(INSTALL_PROGRAM) $${program} $(bindir)/$${program}; \
done
$(INSTALL_DATA) $(srcdir)/xsane-style.rc $(sanedatadir)/xsane/xsane-style.rc
$(INSTALL_DATA) $(srcdir)/xsane-logo.xpm $(sanedatadir)/xsane-logo.xpm
xsane: $(XSANE_OBJS) $(LIBLIB)
$(LINK) $(XSANE_OBJS) \
$(LIBLIB) $(GIMP_LIBS) $(GTK_LIBS) $(LIBS)
clean:
rm -f *.o *~ .*~ *.bak
rm -rf .libs
distclean: clean
rm -f Makefile $(PROGRAMS)
depend:
makedepend $(INCLUDES) *.c
.PHONY: all install depend clean distclean
|