Apply these patches as well ... not sure if they all build. They don't on
[Samba.git] / examples / libsmbclient / Makefile
blobe7c82a3aee6cab1884fc33585e5a224536e829bc
2 CC = gcc
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
9 CFLAGS = -I$(SAMBA_INCL) $(EXTLIB_INCL)
11 LDFLAGS = -L/usr/lib
13 all: testsmbc tree testacl
15 testsmbc: testsmbc.o
16 @echo Linking testsmbc
17 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lsmbclient -L/usr/local/lib
19 testsmbc-static: testsmbc.o
20 @echo Linking testsmbc
21 @$(CC) $(CFLAGS) -static $(LDFLAGS) -o $@ $< -lsmbclient -ldl -lnsl
23 tree: tree.o
24 @echo Linking tree
25 @$(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ `gtk-config --libs` -lsmbclient $<
27 testacl: testacl.o
28 @echo Linking testacl
29 @$(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ `gtk-config --libs` -lsmbclient -lpopt $<
31 clean:
32 @rm -f *.o *~