1# $Id: Makefile.am 21625 2007-07-17 07:48:26Z lha $ 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 libss.la 16libsl_la_LDFLAGS = -version-info 2:1:2 17libss_la_LDFLAGS = -version-info 1:6:1 18 19libsl_la_LIBADD = @LIB_readline@ 20libss_la_LIBADD = @LIB_readline@ @LIB_com_err@ 21 22dist_libsl_la_SOURCES = sl_locl.h sl.c roken_rename.h 23nodist_libsl_la_SOURCES = $(ES) 24dist_libss_la_SOURCES = $(dist_libsl_la_SOURCES) ss.c ss.h 25nodist_libss_la_SOURCES = $(ES) 26 27TESTS = test_sl 28check_PROGRAMS = $(TESTS) 29 30# install these? 31 32bin_PROGRAMS = mk_cmds 33noinst_PROGRAMS = slc 34 35mk_cmds_SOURCES = make_cmds.c make_cmds.h parse.y lex.l 36mk_cmds_LDADD = libsl.la $(LDADD) 37 38slc_SOURCES = slc-gram.y slc-lex.l slc.h 39 40ssincludedir = $(includedir)/ss 41ssinclude_HEADERS = ss.h 42 43CLEANFILES = snprintf.c strtok_r.c strdup.c strupr.c getprogname.c 44 45$(mk_cmds_OBJECTS): parse.h parse.c 46 47LDADD = \ 48 libsl.la \ 49 $(LIB_roken) \ 50 $(LEXLIB) 51 52strtok_r.c: 53 $(LN_S) $(srcdir)/../roken/strtok_r.c . 54snprintf.c: 55 $(LN_S) $(srcdir)/../roken/snprintf.c . 56strdup.c: 57 $(LN_S) $(srcdir)/../roken/strdup.c . 58strupr.c: 59 $(LN_S) $(srcdir)/../roken/strupr.c . 60getprogname.c: 61 $(LN_S) $(srcdir)/../roken/getprogname.c . 62 63slc-lex.c: slc-gram.h 64