]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/com_err/Makefile.am
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / com_err / Makefile.am
1 # $Id: Makefile.am 21619 2007-07-17 07:34:00Z lha $
2
3 include $(top_srcdir)/Makefile.am.common
4
5 YFLAGS = -d
6
7 lib_LTLIBRARIES = libcom_err.la
8 libcom_err_la_LDFLAGS = -version-info 2:3:1
9
10 if versionscript
11 libcom_err_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
12 endif
13
14 bin_PROGRAMS = compile_et
15
16 include_HEADERS = com_err.h com_right.h
17
18 compile_et_SOURCES = compile_et.c compile_et.h parse.y lex.l lex.h
19
20 libcom_err_la_CPPFLAGS = $(ROKEN_RENAME)
21 dist_libcom_err_la_SOURCES = error.c com_err.c roken_rename.h
22
23 if do_roken_rename
24 nodist_libcom_err_la_SOURCES = snprintf.c strlcpy.c
25 endif
26
27 $(compile_et_OBJECTS): parse.h parse.c ## XXX broken automake 1.4s
28
29 compile_et_LDADD = \
30         libcom_err.la \
31         $(LIB_roken) \
32         $(LEXLIB)
33
34 snprintf.c:
35         $(LN_S) $(srcdir)/../roken/snprintf.c .
36 strlcpy.c:
37         $(LN_S) $(srcdir)/../roken/strlcpy.c .
38
39 EXTRA_DIST = version-script.map