I have to admit that I'm not very good at writing Makefiles.
[kai/samba.git] / source3 / ubiqx / Makefile
1 ###########################################################################
2 # Makefile for ubiqx libraries under Samba.
3 # Copyright Chris Hertel & the Samba Team 1997
4 ###########################################################################
5
6 .SUFFIXES:
7 .SUFFIXES: .c .o .h
8
9 all:    ubi_AVLtree.o ubi_BinTree.o ubi_SplayTree.o ubi_dLinkList.o
10
11 ubi_BinTree.o: ubi_BinTree.h
12         @echo Compiling $*.c
13         @$(CC) $(CFLAGS) -c $*.c
14
15 ubi_AVLtree.o: ubi_AVLtree.h ubi_BinTree.h
16         @echo Compiling $*.c
17         @$(CC) $(CFLAGS) -c $*.c
18
19 ubi_SplayTree.o: ubi_SplayTree.h ubi_BinTree.h
20         @echo Compiling $*.c
21         @$(CC) $(CFLAGS) -c $*.c
22
23 ubi_dLinkList.o: ubi_dLinkList.h
24         @echo Compiling $*.c
25         @$(CC) $(CFLAGS) -c $*.c
26
27 .c.o:
28         @echo Compiling $*.c
29         @$(CC) $(CFLAGS) -c $*.c
30
31 clean:
32         rm -f core *.o *~