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
34 @echo Linking testsmbc
35 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$< $(LIBSMBCLIENT
)
39 $(CC
) `gtk-config --cflags` $(CFLAGS
) $(LDFLAGS
) -o
$@
$< `gtk-config --libs` $(LIBSMBCLIENT
)
43 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$< $(LIBSMBCLIENT
) -lpopt
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
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
74 @echo Linking testread
75 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$< $(LIBSMBCLIENT
) -lpopt
81 @
rm -f
*.o
*~
$(TESTS
)
82 @make
-C smbwrapper
clean