This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
[kai/samba.git] / examples / libsmbclient / Makefile
1 #
2 CC = gcc
3
4 SAMBA_INCL = ../../source/include
5
6 CFLAGS = -I$(SAMBA_INCL)
7
8 LDFLAGS = -L/usr/lib
9
10 all: testsmbc tree
11
12 testsmbc: testsmbc.o 
13         @echo Linking testsmbc
14         @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lsmbclient
15
16 testsmbc-static: testsmbc.o 
17         @echo Linking testsmbc
18         @$(CC) $(CFLAGS) -static $(LDFLAGS) -o $@ $< -lsmbclient -ldl -lnsl
19
20 tree: tree.o
21         @echo Linking tree
22         @$(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ `gtk-config --libs` -lsmbclient $<
23
24 clean:
25         @rm -f *.o *~