File: Makefile.am

package info (click to toggle)
liboop 1.0.1-2
  • links: PTS
  • area: main
  • in suites: buster, sid
  • size: 2,108 kB
  • sloc: sh: 11,098; ansic: 2,533; makefile: 133
file content (85 lines) | stat: -rw-r--r-- 2,662 bytes parent folder | download
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
## Process this file with automake to generate Makefile.in

# Makefile.am, liboop, copyright 1999 Dan Egnor
#
# This is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License, version 2.1 or later.
# See the file COPYING for details.

AUTOMAKE_OPTIONS = foreign 1.7
lib_LTLIBRARIES = liboop.la
if WANT_ADNS
  lib_LTLIBRARIES += liboop-adns.la
endif
if WANT_GLIB
  lib_LTLIBRARIES += liboop-glib.la
endif
if WANT_GLIB2
  lib_LTLIBRARIES += liboop-glib2.la
endif
if WANT_TCL
  lib_LTLIBRARIES += liboop-tcl.la
endif
if WANT_WWW
  lib_LTLIBRARIES += liboop-www.la
endif
if WANT_READLINE
  lib_LTLIBRARIES += liboop-rl.la
endif

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = liboop.pc liboop-glib2.pc

# versions updated as of 1.0
liboop_la_LDFLAGS = -version-info 5:0:1 # version:revision:age
liboop_la_SOURCES = sys.c select.c signal.c alloc.c read.c read-fd.c read-mem.c

liboop_adns_la_LDFLAGS = -version-info 3:0:0 -rpath '$(libdir)'
liboop_adns_la_LIBADD = $(ADNS_LIBS)
liboop_adns_la_SOURCES = adns.c

liboop_glib_la_LDFLAGS = -version-info 1:0:1 -rpath '$(libdir)'
liboop_glib_la_LIBADD = $(GLIB_LIBS)
liboop_glib_la_CFLAGS = $(GLIB_INCLUDES)
liboop_glib_la_SOURCES = glib.c

liboop_glib2_la_LDFLAGS = -version-info 0:0:0 -rpath '$(libdir)'
liboop_glib2_la_LIBADD = $(GLIB2_LIBS)
liboop_glib2_la_CFLAGS = $(GLIB2_CFLAGS)
liboop_glib2_la_SOURCES = glib.c

liboop_tcl_la_LDFLAGS = -version-info 0:0:0 -rpath '$(libdir)'
liboop_tcl_la_LIBADD = $(TCL_LIBS)
liboop_tcl_la_CFLAGS = $(TCL_INCLUDES)
liboop_tcl_la_SOURCES = tcl.c

liboop_www_la_LDFLAGS = -version-info 0:0:0 -rpath '$(libdir)'
liboop_www_la_LIBADD = $(WWW_LIBS)
liboop_www_la_CFLAGS = $(WWW_INCLUDES)
liboop_www_la_SOURCES = www.c

liboop_rl_la_LDFLAGS = -version-info 0:0:0 -rpath '$(libdir)'
liboop_rl_la_LIBADD = $(READLINE_LIBS)
liboop_rl_la_SOURCES = readline.c

include_HEADERS = oop.h oop-adns.h oop-glib.h oop-tcl.h oop-www.h oop-rl.h oop-read.h

noinst_PROGRAMS = test-oop

test_oop_SOURCES = test-oop.c
test_oop_CFLAGS = $(GLIB2_CFLAGS) $(GLIB_INCLUDES) $(TCL_INCLUDES) $(WWW_INCLUDES)
test_oop_LDADD = $(lib_LTLIBRARIES) $(GLIB2_LIBS) $(ADNS_LIBS) $(TCL_LIBS) $(READLINE_LIBS)

release: dist
	gzip -dc $(PACKAGE)-$(VERSION).tar.gz | bzip2 -9 \
	> $(PACKAGE)-$(VERSION).tar.bz2
	if test -d /ofb/www/download/liboop ; then \
	cd /ofb/www/download/liboop && \
	mv "$(shell pwd)/$(PACKAGE)-$(VERSION)".* . && \
	ln -sf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE).tar.gz && \
	ln -sf $(PACKAGE)-$(VERSION).tar.bz2 $(PACKAGE).tar.bz2 ; \
	fi
	@echo '** NOW TAG THE CVS REPOSITORY! **'

install-exec-local:
	$(PROG_LDCONFIG) || true