preparing for release of 2.2.1
[Samba.git] / examples / libsmbclient / Makefile
blob8c1def8a162a705fcc68f5bf79408a07f070e2a7
2 CC = gcc
4 SAMBA_INCL = ../../source/include
6 CFLAGS = -I$(SAMBA_INCL)
8 LDFLAGS = -L/usr/lib
10 all: testsmbc tree
12 testsmbc: testsmbc.o
13 @echo Linking testsmbc
14 @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lsmbclient
16 testsmbc-static: testsmbc.o
17 @echo Linking testsmbc
18 @$(CC) $(CFLAGS) -static $(LDFLAGS) -o $@ $< -lsmbclient -ldl -lnsl
20 tree: tree.o
21 @echo Linking tree
22 @$(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ `gtk-config --libs` -lsmbclient $<
24 clean:
25 @rm -f *.o *~