freebsd-dev/crypto/kerberosIV/lib/sl/Makefile.in

140 lines
3.1 KiB
Makefile
Raw Normal View History

#
1999-09-19 14:19:32 +00:00
# $Id: Makefile.in,v 1.31 1999/03/10 19:01:17 joda Exp $
#
SHELL = /bin/sh
srcdir = @srcdir@
VPATH = @srcdir@
1999-09-19 14:19:32 +00:00
top_builddir=../..
CC = @CC@
1999-09-19 14:19:32 +00:00
LINK = @LINK@
AR = ar
RANLIB = @RANLIB@
1999-09-19 14:19:32 +00:00
LN_S = @LN_S@
DEFS = @DEFS@ -DROKEN_RENAME
CFLAGS = @CFLAGS@ $(WFLAGS)
WFLAGS = @WFLAGS@
LD_FLAGS = @LD_FLAGS@
YACC = @YACC@
LEX = @LEX@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
1999-09-19 14:19:32 +00:00
bindir = @bindir@
includedir = @includedir@
LIB_DEPS = @lib_deps_yes@ @LIB_readline@ -lc
build_symlink_command = @build_symlink_command@
install_symlink_command = @install_symlink_command@
install_symlink_command2 = @install_symlink_command2@
PICFLAGS = @PICFLAGS@
1999-09-19 14:19:32 +00:00
EXECSUFFIX = @EXECSUFFIX@
LIBEXT = @LIBEXT@
SHLIBEXT = @SHLIBEXT@
LIBPREFIX = @LIBPREFIX@
1999-09-19 14:19:32 +00:00
LIBNAME = $(LIBPREFIX)sl
sl_LIB = $(LIBNAME).$(LIBEXT)
LIB = $(sl_LIB)
LIBNAME2 = $(LIBPREFIX)ss
ss_LIB = $(LIBNAME2).$(LIBEXT)
LIB2 = $(ss_LIB)
LDSHARED = @LDSHARED@
1999-09-19 14:19:32 +00:00
PROGS = mk_cmds$(EXECSUFFIX)
LIB_SOURCES = sl.c ss.c
EXTRA_SOURCES = strtok_r.c snprintf.c
SOURCES = $(LIB_SOURCES) make_cmds.c $(EXTRA_SOURCES)
1999-09-19 14:19:32 +00:00
LIBADD = strtok_r.o snprintf.o
1999-09-19 14:19:32 +00:00
LIB_OBJECTS = sl.o ss.o $(LIBADD)
1999-09-19 14:19:32 +00:00
mk_cmds_OBJECTS = make_cmds.o parse.o lex.o snprintf.o
1999-09-19 14:19:32 +00:00
OBJECTS = $(LIB_OBJECTS) $(mk_cmds_OBJECTS)
1999-09-19 14:19:32 +00:00
all: $(sl_LIB) $(PROGS)
Wall:
make CFLAGS="-g -Wall -Wno-comment -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__"
.c.o:
1999-09-19 14:19:32 +00:00
$(CC) -c $(DEFS) -I../../include -I. -I$(srcdir) -I$(srcdir)/../des $(CFLAGS) $(CPPFLAGS) $(PICFLAGS) $<
install: all
1999-09-19 14:19:32 +00:00
$(MKINSTALLDIRS) $(DESTDIR)$(includedir)/ss
$(INSTALL_DATA) $(srcdir)/ss.h $(DESTDIR)$(includedir)/ss/ss.h
$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
$(INSTALL) -m 555 $(sl_LIB) $(DESTDIR)$(libdir)/$(sl_LIB)
$(INSTALL) -m 555 $(sl_LIB) $(DESTDIR)$(libdir)/$(ss_LIB)
@install_symlink_command@
@install_symlink_command2@
$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
$(INSTALL) -m 0555 $(PROGS) $(DESTDIR)$(bindir)/$(PROGS)
uninstall:
1999-09-19 14:19:32 +00:00
rm -f $(DESTDIR)$(includedir)/ss/ss.h
rm -f $(DESTDIR)$(libdir)/$(sl_LIB) $(DESTDIR)$(libdir)/$(ss_LIB)
rm -f $(DESTDIR)$(bindir)/$(PROGS)
TAGS: $(SOURCES)
etags $(SOURCES)
check:
clean:
1999-09-19 14:19:32 +00:00
rm -f $(sl_LIB) $(PROGS) lex.c parse.c parse.h *.o *.a *.so *.so.* so_locations
mostlyclean: clean
distclean: clean
rm -f Makefile *~
realclean: distclean
rm -f TAGS
$(LIBNAME).a: $(LIB_OBJECTS)
rm -f $@
$(AR) cr $@ $(LIB_OBJECTS)
-$(RANLIB) $@
$(LIBNAME).$(SHLIBEXT): $(LIB_OBJECTS)
rm -f $@
1999-09-19 14:19:32 +00:00
$(LDSHARED) -o $@ $(LIB_OBJECTS) $(LIB_DEPS)
@build_symlink_command@
$(OBJECTS): ../../include/config.h
1999-09-19 14:19:32 +00:00
$(mk_cmds_OBJECTS): parse.h
mk_cmds$(EXECSUFFIX): $(mk_cmds_OBJECTS)
$(LINK) $(CFLAGS) -o $@ $(mk_cmds_OBJECTS) -L../roken -lroken
parse.c: parse.h
parse.h: $(srcdir)/parse.y
$(YACC) -d $(srcdir)/parse.y
mv -f y.tab.h parse.h
mv -f y.tab.c parse.c
lex.c: $(srcdir)/lex.l
$(LEX) $(srcdir)/lex.l
mv -f lex.yy.c lex.c
strtok_r.c:
$(LN_S) $(srcdir)/../roken/strtok_r.c .
snprintf.c:
$(LN_S) $(srcdir)/../roken/snprintf.c .
.PHONY: all Wall install uninstall check clean mostlyclean distclean realclean