Remove port 445 so NBT works correctly.
[Samba.git] / examples / libsmbclient / Makefile
blobbe383aea671c53347ae68a8d706f7af71de4ec09
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
10 DEFS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
11 CFLAGS = -O0 -g -I$(SAMBA_INCL) $(EXTLIB_INCL) $(DEFS)
13 LDFLAGS = -L/usr/local/samba/lib \
14 -lldap -lkrb5 -lgssapi_krb5
15 #LIBSMBCLIENT = /usr/local/samba/lib/libsmbclient.so
16 LIBSMBCLIENT = ../../source/bin/libsmbclient.a -ldl -lresolv
18 TESTS= testsmbc \
19 testacl \
20 testacl2 \
21 testbrowse \
22 testbrowse2 \
23 teststat \
24 teststat2 \
25 testchmod \
26 testutime \
27 testread
29 # tree \
31 all: $(TESTS) smbsh
33 testsmbc: testsmbc.o
34 @echo Linking testsmbc
35 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT)
37 tree: tree.o
38 @echo Linking tree
39 $(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ $< `gtk-config --libs` $(LIBSMBCLIENT)
41 testacl: testacl.o
42 @echo Linking testacl
43 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
45 testacl2: testacl2.o
46 @echo Linking testacl2
47 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
49 testbrowse: testbrowse.o
50 @echo Linking testbrowse
51 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
53 testbrowse2: testbrowse2.o
54 @echo Linking testbrowse2
55 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
57 teststat: teststat.o
58 @echo Linking teststat
59 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
61 teststat2: teststat2.o
62 @echo Linking teststat2
63 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
65 testchmod: testchmod.o
66 @echo Linking testchmod
67 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
69 testutime: testutime.o
70 @echo Linking testutime
71 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
73 testread: testread.o
74 @echo Linking testread
75 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
77 smbsh:
78 make -C smbwrapper
80 clean:
81 @rm -f *.o *~ $(TESTS)
82 @make -C smbwrapper clean