Sync with HEAD. The -L/usr/local/lib bit looks a bit dodgy though.
[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 -L/usr/local/lib
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 *~