1# $Id: Makefile.am,v 1.29 2002/08/13 13:48:17 joda Exp $ 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 9INCLUDES += $(ROKEN_RENAME) 10 11YFLAGS = -d 12 13include_HEADERS = sl.h 14 15lib_LTLIBRARIES = libsl.la libss.la 16libsl_la_LDFLAGS = -version-info 1:2:1 17libss_la_LDFLAGS = -version-info 1:4:1 18 19libsl_la_LIBADD = @LIB_readline@ 20libss_la_LIBADD = @LIB_readline@ @LIB_com_err@ 21 22libsl_la_SOURCES = sl_locl.h sl.c $(ES) 23libss_la_SOURCES = $(libsl_la_SOURCES) ss.c ss.h 24 25# install these? 26 27bin_PROGRAMS = mk_cmds 28 29mk_cmds_SOURCES = make_cmds.c make_cmds.h parse.y lex.l 30mk_cmds_LDADD = libsl.la $(LDADD) 31 32ssincludedir = $(includedir)/ss 33ssinclude_HEADERS = ss.h 34 35CLEANFILES = lex.c parse.c parse.h snprintf.c strtok_r.c strdup.c strupr.c getprogname.c 36 37$(mk_cmds_OBJECTS): parse.h parse.c 38 39LDADD = \ 40 $(LIB_roken) \ 41 $(LEXLIB) 42 43strtok_r.c: 44 $(LN_S) $(srcdir)/../roken/strtok_r.c . 45snprintf.c: 46 $(LN_S) $(srcdir)/../roken/snprintf.c . 47strdup.c: 48 $(LN_S) $(srcdir)/../roken/strdup.c . 49strupr.c: 50 $(LN_S) $(srcdir)/../roken/strupr.c . 51getprogname.c: 52 $(LN_S) $(srcdir)/../roken/getprogname.c . 53