[go: up one dir, main page]

File: Makefile.am

package info (click to toggle)
foxeye 0.12.1-5.1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,936 kB
  • sloc: ansic: 62,635; sh: 5,228; makefile: 740; yacc: 291; tcl: 239; sed: 16
file content (85 lines) | stat: -rw-r--r-- 2,850 bytes parent folder | download | duplicates (6)
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 produce Makefile.in
## Use aclocal; automake --foreign

# soname: ABI version and age/revision
ABIVER = 0
AGEVER = 0.0

localedir = $(datadir)/locale
helpdir = $(pkglibdir)/help

transform = s/foxeye/@PACKAGE@-@VERSION@/
bin_PROGRAMS = foxeye

foxeye_SUBLIB = libfoxeye.so
SUBLIB_SONAME = $(foxeye_SUBLIB).$(ABIVER)
SUBLIB_TARGET = $(SUBLIB_SONAME).$(AGEVER)
sublib_SOURCES = direct.c dispatcher.c help.c init.c lib.c modules.c \
	sheduler.c socket.c list.c wtmp.c conversion.c connchain.c
sublib_OBJS = $(sublib_SOURCES:.c=.o)
sublib_LLIBS = $(ALL_LIBADD) $(LIBS) @ADD_LC@ \
	-Wl,-@SONAME_KEY@,@SONAME_PREFIX@$(SUBLIB_SONAME)
$(SUBLIB_TARGET): $(sublib_OBJS) $(top_builddir)/tree/libtree.a
	@CCLIB@ $(AM_CFLAGS) $(CFLAGS) @LIB_LDFLAGS@ -o $@ $(sublib_OBJS) $(sublib_LLIBS)
$(foxeye_SUBLIB): $(SUBLIB_TARGET)
	@LN_S@ $(SUBLIB_TARGET) $@ 2>/dev/null || true

foxeye_SOURCES = main.c

$(top_builddir)/tree/libtree.a:
	@cd $(top_builddir)/tree; $(MAKE) libtree.a

ALL_LIBADD = $(LIBOBJS) $(INTLOBJS) $(LTLIBINTL) $(LIBICONV) \
	-L$(top_builddir)/tree -ltree $(LIBIDN_LIBS)
foxeye_LDADD = @LD_MODS@ @STATICLIBS@
foxeye_DEPENDENCIES = $(LIBOBJS) $(INTLOBJS)

if STATICBUILD
foxeye_SOURCES += $(sublib_SOURCES)
foxeye_LDADD += $(ALL_LIBADD)
else
foxeye_DEPENDENCIES += $(foxeye_SUBLIB)
foxeye_LDADD += $(LTLIBINTL) -L$(top_builddir)/core -lfoxeye
foxeye_LDFLAGS = -Wl,-rpath,$(pkglibdir)
endif

AM_CPPFLAGS = @ICONV_INCLUDES@ -I$(top_srcdir)/tree $(LIBIDN_CFLAGS)
DEFS = @DEFS@ -DLOCALEDIR=\"$(localedir)\" -DMODULESDIR=\"$(pkglibdir)/modules\" \
	-DHELPDIR=\"$(helpdir)\"

libfoxeyeincdir = $(includedir)/foxeye
libfoxeyeinc_HEADERS = direct.h foxeye.h modules.h protos.h sheduler.h socket.h list.h \
	wtmp.h formats.default conversion.h inlines.h init.h
EXTRA_DIST = $(libfoxeyeinc_HEADERS)

CLEANFILES = static.h $(SUBLIB_TARGET) $(foxeye_SUBLIB)

install-exec-local:
if ! STATICBUILD
	$(MKDIR_P) $(DESTDIR)$(pkglibdir)
	@echo Installing the common library and symlinks.
	@$(INSTALL) $(SUBLIB_TARGET) $(DESTDIR)$(pkglibdir)/$(SUBLIB_TARGET)
	@for p in $(SUBLIB_SONAME) $(foxeye_SUBLIB); do \
		test -L $(DESTDIR)$(pkglibdir)/$$p || \
		@LN_S@ $(SUBLIB_TARGET) $(DESTDIR)$(pkglibdir)/$$p; \
	done
endif
	@if test -h $(DESTDIR)$(bindir)/@PACKAGE@; then \
		echo Removing symlink to archival @PACKAGE@ binary.; \
		rm -f $(DESTDIR)$(bindir)/@PACKAGE@; \
	fi
	@echo Copying new \'@PACKAGE@\' executable and creating symlink.
	@LN_S@ @PACKAGE@-@VERSION@ $(DESTDIR)$(bindir)/@PACKAGE@

uninstall-local:
if ! STATICBUILD
	rm -f $(DESTDIR)$(pkglibdir)/$(SUBLIB_TARGET)
	@for p in $(SUBLIB_SONAME) $(foxeye_SUBLIB); do \
		if test -L $(DESTDIR)$(pkglibdir)/$$p; then \
			rm -f $(DESTDIR)$(pkglibdir)/$$p; \
		fi; \
	done
endif
	@if test -L $(DESTDIR)$(bindir)/@PACKAGE@; then \
		rm -f $(DESTDIR)$(bindir)/@PACKAGE@; \
	fi