aboutsummaryrefslogtreecommitdiff
path: root/libssh/Makefile.in
blob: 5b28caaf26e3e198e2fd317803f95bba3daa0eac (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
OBJECTS= client.o packet.o dh.o crypt.o connect.o error.o buffer.o \
	string.o kex.o channels.o options.o keys.o auth.o base64.o \
        keyfiles.o misc.o gzip.o wrapper.o sftp.o server.o crc32.o \
	session.o messages.o channels1.o auth1.o sftpserver.o      \
	gcrypt_missing.o
SHELL = /bin/sh
VPATH = @srcdir@

top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
incldir= $(prefix)/include
infodir = $(prefix)/info
libdir = $(prefix)/lib/
mandir = $(prefix)/man/man1

CC = @CC@
CFLAGS = @CFLAGS@ -Wall -g -I../include/
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
INSTALL = @INSTALL@
LIBTOOL = @LIBTOOL@
LIBSSH_LDFLAGS = @LIBSSH_LDFLAGS@
LIBSSH_VERS = @LIBSSH_VERS@
LIBSSH_CURRENT = @LIBSSH_CURRENT@
LIBSSH_REVISION = @LIBSSH_REVISION@
LIBSSH_AGE = @LIBSSH_AGE@

.c.o:
	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $<

all: libssh.so

libssh.la: $(OBJECTS) libssh.vers
	$(LIBTOOL) --mode=link $(CC) -o libssh.la -export-dynamic -version-info $(LIBSSH_CURRENT):$(LIBSSH_REVISION):$(LIBSSH_AGE) -rpath $(libdir) $(OBJECTS:.o=.lo) $(LIBS) $(LIBSSH_LDFLAGS) $(LIBSSH_VERS) $(LDFLAGS)

libssh.so: libssh.la
libssh.a: libssh.la

install: all
	$(top_srcdir)/mkinstalldirs $(incldir)
	$(top_srcdir)/mkinstalldirs $(libdir)
	$(LIBTOOL) --mode=install $(INSTALL) libssh.la $(libdir)
clean:
	$(LIBTOOL) --mode=clean rm -f *~ libssh.la *.lo *.o
distclean: clean
	rm -f Makefile