merge from 3.0
[nivanova/samba-autobuild/.git] / examples / libsmbclient / Makefile
1 #
2 CC = gcc
3
4 SAMBA_INCL = ../../source/include
5 EXTLIB_INCL = -I/usr/include/gtk-1.2 \
6               -I/usr/include/glib-1.2 \
7               -I/usr/lib/glib/include
8
9 CFLAGS = -I$(SAMBA_INCL) $(EXTLIB_INCL)
10
11 LDFLAGS = -L/usr/lib
12
13 all: testsmbc tree testacl
14
15 testsmbc: testsmbc.o 
16         @echo Linking testsmbc
17         $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lsmbclient -L/usr/local/lib
18
19 testsmbc-static: testsmbc.o 
20         @echo Linking testsmbc
21         @$(CC) $(CFLAGS) -static $(LDFLAGS) -o $@ $< -lsmbclient -ldl -lnsl
22
23 tree: tree.o
24         @echo Linking tree
25         @$(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ `gtk-config --libs` -lsmbclient $<
26
27 testacl: testacl.o
28         @echo Linking testacl
29         @$(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ `gtk-config --libs` -lsmbclient -lpopt $<
30
31 clean:
32         @rm -f *.o *~