summaryrefslogtreecommitdiff
path: root/examples/libsmbclient/Makefile
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2003-10-24 20:24:05 +0000
committerRichard Sharpe <sharpe@samba.org>2003-10-24 20:24:05 +0000
commit1f115c95d635377a36c0a3a1f56b4b8def04fd7e (patch)
tree32caa16f47d64fc5820b7c8f649ded6e2aef05b9 /examples/libsmbclient/Makefile
parent84e620e5ba65c040df1c0ebdcf39fa5648dd37d9 (diff)
downloadsamba-1f115c95d635377a36c0a3a1f56b4b8def04fd7e.tar.gz
Apply these patches as well ... not sure if they all build. They don't on
FreeBSD 4.3. They might on Linux.
Diffstat (limited to 'examples/libsmbclient/Makefile')
-rw-r--r--examples/libsmbclient/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/examples/libsmbclient/Makefile b/examples/libsmbclient/Makefile
index 5fe9977c0ae..e7c82a3aee6 100644
--- a/examples/libsmbclient/Makefile
+++ b/examples/libsmbclient/Makefile
@@ -2,16 +2,19 @@
CC = gcc
SAMBA_INCL = ../../source/include
+EXTLIB_INCL = -I/usr/include/gtk-1.2 \
+ -I/usr/include/glib-1.2 \
+ -I/usr/lib/glib/include
-CFLAGS = -I$(SAMBA_INCL)
+CFLAGS = -I$(SAMBA_INCL) $(EXTLIB_INCL)
LDFLAGS = -L/usr/lib
-all: testsmbc tree
+all: testsmbc tree testacl
testsmbc: testsmbc.o
@echo Linking testsmbc
- @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lsmbclient -L/usr/local/lib
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lsmbclient -L/usr/local/lib
testsmbc-static: testsmbc.o
@echo Linking testsmbc
@@ -21,5 +24,9 @@ tree: tree.o
@echo Linking tree
@$(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ `gtk-config --libs` -lsmbclient $<
+testacl: testacl.o
+ @echo Linking testacl
+ @$(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ `gtk-config --libs` -lsmbclient -lpopt $<
+
clean:
@rm -f *.o *~