summaryrefslogtreecommitdiff
path: root/source3/Makefile.lib
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-30 15:42:40 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-30 15:42:40 +0000
commitf1093ad693d1650bcc50b5c7dd9b5a0356088cde (patch)
tree62fa6697b96798f7d95a6290671940454de3e136 /source3/Makefile.lib
parent397e1d64d7cfe7381b561ebae57dbceeb87b07ea (diff)
downloadsamba-f1093ad693d1650bcc50b5c7dd9b5a0356088cde.tar.gz
samba-f1093ad693d1650bcc50b5c7dd9b5a0356088cde.tar.bz2
samba-f1093ad693d1650bcc50b5c7dd9b5a0356088cde.zip
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)
Diffstat (limited to 'source3/Makefile.lib')
-rw-r--r--source3/Makefile.lib32
1 files changed, 32 insertions, 0 deletions
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