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
|
$ cat debhello-2.0/Makefile.am
# recursively process `Makefile.am` in SUBDIRS
SUBDIRS = lib src man
$ cat debhello-2.0/man/Makefile.am
# manpages (distributed in the source package)
dist_man_MANS = hello.1
$ cat debhello-2.0/lib/Makefile.am
# libtool librares to be produced
lib_LTLIBRARIES = libsharedlib.la
# source files used for lib_LTLIBRARIES
libsharedlib_la_SOURCES = sharedlib.c
# C pre-processor flags used for lib_LTLIBRARIES
#libsharedlib_la_CPPFLAGS =
# Headers files to be installed in <prefix>/include
include_HEADERS = sharedlib.h
# Versioning Libtool Libraries with version triplets
libsharedlib_la_LDFLAGS = -version-info 1:0:0
$ cat debhello-2.0/src/Makefile.am
# program executables to be produced
bin_PROGRAMS = hello
# source files used for bin_PROGRAMS
hello_SOURCES = hello.c
# C pre-processor flags used for bin_PROGRAMS
AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir)/lib
# Extra options for the linker for hello
# hello_LDFLAGS =
# Libraries the `hello` binary to be linked
hello_LDADD = $(top_srcdir)/lib/libsharedlib.la
|