I have to admit that I'm not very good at writing Makefiles.
authorChristopher R. Hertel <crh@samba.org>
Fri, 10 Oct 1997 16:12:27 +0000 (16:12 +0000)
committerChristopher R. Hertel <crh@samba.org>
Fri, 10 Oct 1997 16:12:27 +0000 (16:12 +0000)
This one will simply create an object file from each of the .c files
in the directory.  These could be linked into a static library, but
I'm not sure that this is worthwhile.  If anyone wants to improved on
what I've got here, please do!  crh -)-----

source/ubiqx/Makefile [new file with mode: 0644]

diff --git a/source/ubiqx/Makefile b/source/ubiqx/Makefile
new file mode 100644 (file)
index 0000000..16fb454
--- /dev/null
@@ -0,0 +1,32 @@
+###########################################################################
+# Makefile for ubiqx libraries under Samba.
+# Copyright Chris Hertel & the Samba Team 1997
+###########################################################################
+
+.SUFFIXES:
+.SUFFIXES: .c .o .h
+
+all:   ubi_AVLtree.o ubi_BinTree.o ubi_SplayTree.o ubi_dLinkList.o
+
+ubi_BinTree.o: ubi_BinTree.h
+       @echo Compiling $*.c
+       @$(CC) $(CFLAGS) -c $*.c
+
+ubi_AVLtree.o: ubi_AVLtree.h ubi_BinTree.h
+       @echo Compiling $*.c
+       @$(CC) $(CFLAGS) -c $*.c
+
+ubi_SplayTree.o: ubi_SplayTree.h ubi_BinTree.h
+       @echo Compiling $*.c
+       @$(CC) $(CFLAGS) -c $*.c
+
+ubi_dLinkList.o: ubi_dLinkList.h
+       @echo Compiling $*.c
+       @$(CC) $(CFLAGS) -c $*.c
+
+.c.o:
+       @echo Compiling $*.c
+       @$(CC) $(CFLAGS) -c $*.c
+
+clean:
+       rm -f core *.o *~