source: branches/samba-3.5.x/examples/libsmbclient/Makefile

Last change on this file was 414, checked in by Herwig Bauernfeind, 15 years ago

Samba 3.5.0: Initial import

File size: 2.8 KB
Line 
1#
2CC = gcc
3
4SAMBA_INCL = -I/usr/local/samba/include
5EXTLIB_INCL = -I/usr/include/gtk-1.2 \
6 -I/usr/include/glib-1.2 \
7 -I/usr/lib/glib/include
8EXTLIB_INCL = `gtk-config --cflags`
9
10DEFS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
11CFLAGS = -O0 -g $(SAMBA_INCL) $(EXTLIB_INCL) $(DEFS)
12
13LDFLAGS = -L/usr/local/samba/lib \
14 -lldap -lkrb5 -lgssapi_krb5
15#LIBSMBCLIENT = /usr/local/samba/lib/libsmbclient.so
16LIBSMBCLIENT = -lwbclient -lsmbclient -ltalloc -ltdb -ldl -lresolv
17
18TESTS= 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
34
35# tree \
36
37all: $(TESTS) smbsh
38
39testsmbc: testsmbc.o
40 @echo Linking testsmbc
41 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT)
42
43tree: tree.o
44 @echo Linking tree
45 $(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ $< `gtk-config --libs` $(LIBSMBCLIENT)
46
47testacl: testacl.o
48 @echo Linking testacl
49 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
50
51testacl2: testacl2.o
52 @echo Linking testacl2
53 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
54
55testacl3: testacl3.o
56 @echo Linking testacl3
57 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
58
59testbrowse: testbrowse.o
60 @echo Linking testbrowse
61 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
62
63testbrowse2: testbrowse2.o
64 @echo Linking testbrowse2
65 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
66
67teststat: teststat.o
68 @echo Linking teststat
69 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
70
71teststat2: teststat2.o
72 @echo Linking teststat2
73 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
74
75teststat3: teststat3.o
76 @echo Linking teststat3
77 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
78
79teststatvfs: teststatvfs.o
80 @echo Linking teststatvfs
81 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
82
83testfstatvfs: testfstatvfs.o
84 @echo Linking testfstatvfs
85 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
86
87testtruncate: testtruncate.o
88 @echo Linking testtruncate
89 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
90
91testchmod: testchmod.o
92 @echo Linking testchmod
93 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
94
95testutime: testutime.o
96 @echo Linking testutime
97 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
98
99testread: testread.o
100 @echo Linking testread
101 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
102
103testwrite: testwrite.o
104 @echo Linking testwrite
105 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
106
107testctx: testctx.o
108 @echo Linking testctx
109 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
110
111smbsh:
112 make -C smbwrapper
113
114clean:
115 @rm -f *.o *~ $(TESTS)
116 @make -C smbwrapper clean
Note: See TracBrowser for help on using the repository browser.