librpc: Shorten dcerpc_binding_handle_call a bit
[Samba/gebeck_regimport.git] / examples / libsmbclient / Makefile
blob08ff19a2b27245ef09c5cb41c9199b500148b84b
2 CC = gcc
4 SAMBA_INCL = -I/usr/local/samba/include
5 EXTLIB_INCL = -I/usr/include/gtk-1.2 \
6 -I/usr/include/glib-1.2 \
7 -I/usr/lib/glib/include
8 EXTLIB_INCL = `gtk-config --cflags`
10 DEFS = -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
11 CFLAGS = -O0 -g $(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 = -lwbclient -lsmbclient -ltalloc -ltdb -ldl -lresolv
18 TESTS= testsmbc \
19 testacl \
20 testacl2 \
21 testacl3 \
22 testbrowse \
23 testbrowse2 \
24 teststat \
25 teststat2 \
26 teststat3 \
27 teststatvfs \
28 testfstatvfs \
29 testtruncate \
30 testchmod \
31 testutime \
32 testread \
33 testwrite
35 # tree \
37 all: $(TESTS) smbsh
39 testsmbc: testsmbc.o
40 @echo Linking testsmbc
41 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT)
43 tree: tree.o
44 @echo Linking tree
45 $(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ $< `gtk-config --libs` $(LIBSMBCLIENT)
47 testacl: testacl.o
48 @echo Linking testacl
49 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
51 testacl2: testacl2.o
52 @echo Linking testacl2
53 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
55 testacl3: testacl3.o
56 @echo Linking testacl3
57 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
59 testbrowse: testbrowse.o
60 @echo Linking testbrowse
61 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
63 testbrowse2: testbrowse2.o
64 @echo Linking testbrowse2
65 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
67 teststat: teststat.o
68 @echo Linking teststat
69 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
71 teststat2: teststat2.o
72 @echo Linking teststat2
73 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
75 teststat3: teststat3.o
76 @echo Linking teststat3
77 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
79 teststatvfs: teststatvfs.o
80 @echo Linking teststatvfs
81 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
83 testfstatvfs: testfstatvfs.o
84 @echo Linking testfstatvfs
85 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
87 testtruncate: testtruncate.o
88 @echo Linking testtruncate
89 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
91 testchmod: testchmod.o
92 @echo Linking testchmod
93 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
95 testutime: testutime.o
96 @echo Linking testutime
97 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
99 testread: testread.o
100 @echo Linking testread
101 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
103 testwrite: testwrite.o
104 @echo Linking testwrite
105 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
107 testctx: testctx.o
108 @echo Linking testctx
109 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
111 smbsh:
112 make -C smbwrapper
114 clean:
115 @rm -f *.o *~ $(TESTS)
116 @make -C smbwrapper clean