summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorChristopher R. Hertel <crh@samba.org>1997-10-10 16:12:27 +0000
committerChristopher R. Hertel <crh@samba.org>1997-10-10 16:12:27 +0000
commit5e521438292472c816527d4ee7c6dff7e3c217ea (patch)
tree603c0d8d701fbc7bb343d978a2d59c73b27fe442 /source
parent87a0a944855a673d693d934e446bdc231b1c7f02 (diff)
downloadsamba-5e521438292472c816527d4ee7c6dff7e3c217ea.tar.gz
samba-5e521438292472c816527d4ee7c6dff7e3c217ea.tar.xz
samba-5e521438292472c816527d4ee7c6dff7e3c217ea.zip
I have to admit that I'm not very good at writing Makefiles.
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 -)-----
Diffstat (limited to 'source')
-rw-r--r--source/ubiqx/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/source/ubiqx/Makefile b/source/ubiqx/Makefile
new file mode 100644
index 00000000000..16fb454e77d
--- /dev/null
+++ b/source/ubiqx/Makefile
@@ -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 *~