summaryrefslogtreecommitdiff
path: root/lib/Makefile.in
blob: f305185c0625141d4cfe34d00bad1eedf0bd3f43 (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
86
87
88
89
90
91
92
93
94
95
SHELL = /bin/sh

VPATH = @srcdir@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ..

PACKAGE = @PACKAGE@
VERSION = @VERSION@
distdir = $(top_srcdir)/$(PACKAGE)-$(VERSION)

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

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@

RANLIB = @RANLIB@

CC = @CC@
INCLUDES = -I. -I$(srcdir) \
	-I$(top_builddir)/include/sane -I$(top_srcdir)/include
CPPFLAGS = @CPPFLAGS@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
DEFS = @DEFS@

COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)

@SET_MAKE@

LIBLIB_OBJS	= alloca.o getopt.o getopt1.o strndup.o \
		  strdup.o strsep.o snprintf.o usleep.o isfdtype.o \
		  vsyslog.o getenv.o
LIBLIB_LTOBJS	= alloca.lo getopt.lo getopt1.lo strndup.lo \
		  strdup.lo strsep.lo snprintf.lo usleep.lo isfdtype.lo \
		  vsyslog.lo getenv.lo

TARGETS = $(LIBLIB_OBJS)
TARGETS = liblib.a

DISTFILES = Makefile.in alloca.c getenv.c getopt.c getopt1.c isfdtype.c \
  snprintf.c strdup.c strndup.c strsep.c usleep.c vsyslog.c 

.PHONY: all check clean depend dist distclean install uninstall

.SUFFIXES:
.SUFFIXES: .c .o
.c.o:
	$(COMPILE) $<
	@test -f $@ || $(COMPILE) $<

all:	$(TARGETS)

liblib.a: $(LIBLIB_OBJS)
	ar r $@ $(LIBLIB_OBJS)
	$(RANLIB) $@

install: all

uninstall:

check:

depend:
	makedepend -I. -I../include *.c

clean:
	rm -f *.out *.o *.lo *~ *.a *.bak $(TESTPROGRAMS)
	rm -rf .libs

distclean: clean
	rm -f Makefile

dist: $(DISTFILES)
	for file in $(DISTFILES); do \
	  ln $$file $(distdir)/lib 2> /dev/null \
	    || cp -p $$file $(distdir)/lib ; \
	done