aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 64d497656fec274676457ede64c323af5fbdded3 (plain) (blame)
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
# $Id: Makefile.am 21619 2007-07-17 07:34:00Z lha $

include $(top_srcdir)/Makefile.am.common

YFLAGS = -d

lib_LTLIBRARIES = libcom_err.la
libcom_err_la_LDFLAGS = -version-info 2:3:1

if versionscript
libcom_err_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
endif

bin_PROGRAMS = compile_et

include_HEADERS = com_err.h com_right.h

compile_et_SOURCES = compile_et.c compile_et.h parse.y lex.l lex.h

libcom_err_la_CPPFLAGS = $(ROKEN_RENAME)
dist_libcom_err_la_SOURCES = error.c com_err.c roken_rename.h

if do_roken_rename
nodist_libcom_err_la_SOURCES = snprintf.c strlcpy.c
endif

$(compile_et_OBJECTS): parse.h parse.c ## XXX broken automake 1.4s

compile_et_LDADD = \
	libcom_err.la \
	$(LIB_roken) \
	$(LEXLIB)

snprintf.c:
	$(LN_S) $(srcdir)/../roken/snprintf.c .
strlcpy.c:
	$(LN_S) $(srcdir)/../roken/strlcpy.c .

EXTRA_DIST = version-script.map