Squelch some warnings, and move a bit of code around to make some future
[Samba/gebeck_regimport.git] / examples / libsmbclient / Makefile
blob5fe9977c0ae1bc0885bb06683dd8a2fdad88e1de
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 -L/usr/local/lib
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 *~