From f1093ad693d1650bcc50b5c7dd9b5a0356088cde Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Thu, 30 Oct 1997 15:42:40 +0000 Subject: Makefiles for libraries. the dependencies aren't quite right, and i don't know how to sort them. make proto in each library directory. over-ride the make proto for ubiqx, so that it doesn't happen, but throws up a warning instead. (This used to be commit 93df2c62cc32191e88c0c4e615ac6077ec2b07c3) --- source3/Makefile.lib | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 source3/Makefile.lib (limited to 'source3/Makefile.lib') diff --git a/source3/Makefile.lib b/source3/Makefile.lib new file mode 100644 index 0000000000..22102d7dfb --- /dev/null +++ b/source3/Makefile.lib @@ -0,0 +1,32 @@ +########################################################################### +# Library Makefile for Samba SMB client/server for unix +# Copyright (C) Andrew Tridgell 1992-1996 +# Copyright (C) John H Terpstra 1995-1997 +# Copyright (C) Luke Kenneth Casson Leighton 1996-1997 +########################################################################### + +all : $(THIS_LIB) + +.SUFFIXES: +.SUFFIXES: .c .o .h + +.c.o: $(INCLUDES) + @echo Compiling $*.c + @$(CC) $(CFLAGS) -c $*.c -o $*.o + +$(THIS_LIB): $(THIS_OBJ) $(LIB_INCS) + @echo Linking $@ + @$(AR) $@ $(THIS_OBJ) + @$(RANLIB) $@ + +clean: + rm -f core $(THIS_OBJ) $(THIS_LIB) *~ + +cleandir: clean + rm -f .depend tags + +realclean: clean + +proto: + @$(SHELL) ../checkos.sh $(FLAGSM) + $(AWK) -f ../mkproto.awk `echo $(THIS_PROTO_OBJ) | sed -e 's/\.o/\.c/g' | tr ' ' '\n' | sort | uniq` > $(LIBNAME)_proto.h -- cgit