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_LARGEFILE64_SOURCE
-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
40 @echo Linking testsmbc
41 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$< $(LIBSMBCLIENT
)
45 $(CC
) `gtk-config --cflags` $(CFLAGS
) $(LDFLAGS
) -o
$@
$< `gtk-config --libs` $(LIBSMBCLIENT
)
49 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$< $(LIBSMBCLIENT
) -lpopt
52 @echo Linking testacl2
53 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$< $(LIBSMBCLIENT
) -lpopt
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
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
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
108 @echo Linking testctx
109 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$< $(LIBSMBCLIENT
) -lpopt
115 @
rm -f
*.o
*~
$(TESTS
)
116 @make
-C smbwrapper
clean