1# $Id$ 2 3include $(top_srcdir)/Makefile.am.common 4 5if do_roken_rename 6ES = strtok_r.c snprintf.c strdup.c strupr.c getprogname.c 7endif 8 9AM_CPPFLAGS += $(ROKEN_RENAME) 10 11YFLAGS = -d 12 13include_HEADERS = sl.h 14 15lib_LTLIBRARIES = libsl.la 16libsl_la_LDFLAGS = -version-info 2:1:2 17 18libsl_la_LIBADD = @LIB_readline@ 19 20dist_libsl_la_SOURCES = sl_locl.h sl.c roken_rename.h 21nodist_libsl_la_SOURCES = $(ES) 22 23TESTS = test_sl 24check_PROGRAMS = $(TESTS) 25 26# install these? 27 28libexec_heimdal_PROGRAMS = slc 29 30slc_SOURCES = slc-gram.y slc-lex.l slc.h 31 32CLEANFILES = snprintf.c strtok_r.c strdup.c strupr.c getprogname.c slc-lex.c 33 34LDADD = libsl.la $(LIB_roken) 35 36slc_LDADD = $(LEXLIB) $(LDADD) 37 38strtok_r.c: 39 $(LN_S) $(srcdir)/../roken/strtok_r.c . 40snprintf.c: 41 $(LN_S) $(srcdir)/../roken/snprintf.c . 42strdup.c: 43 $(LN_S) $(srcdir)/../roken/strdup.c . 44strupr.c: 45 $(LN_S) $(srcdir)/../roken/strupr.c . 46getprogname.c: 47 $(LN_S) $(srcdir)/../roken/getprogname.c . 48 49slc-lex.c: slc-gram.h 50 51EXTRA_DIST = NTMakefile 52