2001-05-17 06:29:00 +04:00
#
2001-06-30 15:08:06 +04:00
CC = gcc
2001-05-17 06:29:00 +04:00
2008-03-04 02:13:33 +03:00
SAMBA_INCL = -I/usr/local/samba/include
2003-10-25 00:24:05 +04:00
EXTLIB_INCL = -I/usr/include/gtk-1.2 \
-I/usr/include/glib-1.2 \
-I/usr/lib/glib/include
2008-01-10 13:13:23 +03:00
EXTLIB_INCL = ` gtk-config --cflags`
2006-09-03 04:50:34 +04:00
2012-03-28 03:40:02 +04:00
DEFS = -D_FILE_OFFSET_BITS= 64 -D_GNU_SOURCE
2008-03-04 02:13:33 +03:00
CFLAGS = -O0 -g $( SAMBA_INCL) $( EXTLIB_INCL) $( DEFS)
2001-05-17 06:29:00 +04:00
2007-08-14 07:02:34 +04:00
LDFLAGS = -L/usr/local/samba/lib \
-lldap -lkrb5 -lgssapi_krb5
2007-04-08 20:41:24 +04:00
#LIBSMBCLIENT = /usr/local/samba/lib/libsmbclient.so
2008-05-30 18:24:55 +04:00
LIBSMBCLIENT = -lwbclient -lsmbclient -ltalloc -ltdb -ldl -lresolv
2001-05-17 06:29:00 +04:00
2005-03-31 20:26:15 +04:00
TESTS = testsmbc \
testacl \
2007-05-15 23:10:29 +04:00
testacl2 \
2008-01-17 19:46:41 +03:00
testacl3 \
2005-03-31 20:26:15 +04:00
testbrowse \
2005-12-06 20:09:44 +03:00
testbrowse2 \
2005-03-31 20:26:15 +04:00
teststat \
2005-12-25 05:00:35 +03:00
teststat2 \
2008-01-17 17:26:36 +03:00
teststat3 \
2009-02-12 18:39:17 +03:00
teststatvfs \
testfstatvfs \
2008-02-27 05:46:08 +03:00
testtruncate \
2005-03-31 20:26:15 +04:00
testchmod \
2005-10-17 23:27:19 +04:00
testutime \
2008-01-17 17:26:36 +03:00
testread \
testwrite
2005-03-31 20:26:15 +04:00
2007-08-14 07:02:34 +04:00
# tree \
2005-03-31 20:26:15 +04:00
all : $( TESTS ) smbsh
2001-05-17 06:29:00 +04:00
testsmbc : testsmbc .o
@echo Linking testsmbc
2006-09-03 04:50:34 +04:00
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $< $( LIBSMBCLIENT)
2001-06-30 08:01:51 +04:00
2001-05-17 06:29:00 +04:00
tree : tree .o
@echo Linking tree
2007-04-08 20:41:24 +04:00
$( CC) ` gtk-config --cflags` $( CFLAGS) $( LDFLAGS) -o $@ $< ` gtk-config --libs` $( LIBSMBCLIENT)
2001-05-17 06:29:00 +04:00
2003-10-25 00:24:05 +04:00
testacl : testacl .o
@echo Linking testacl
2007-08-14 07:02:34 +04:00
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $< $( LIBSMBCLIENT) -lpopt
2003-10-25 00:24:05 +04:00
2007-05-15 23:10:29 +04:00
testacl2 : testacl 2.o
@echo Linking testacl2
2007-08-14 07:02:34 +04:00
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $< $( LIBSMBCLIENT) -lpopt
2007-05-15 23:10:29 +04:00
2008-01-17 19:46:41 +03:00
testacl3 : testacl 3.o
@echo Linking testacl3
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $< $( LIBSMBCLIENT) -lpopt
2004-03-19 20:48:08 +03:00
testbrowse : testbrowse .o
@echo Linking testbrowse
2007-04-08 20:41:24 +04:00
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $< $( LIBSMBCLIENT) -lpopt
2004-03-19 20:48:08 +03:00
2005-12-06 20:09:44 +03:00
testbrowse2 : testbrowse 2.o
@echo Linking testbrowse2
2007-04-08 20:41:24 +04:00
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $< $( LIBSMBCLIENT) -lpopt
2005-12-06 20:09:44 +03:00
2005-03-30 06:39:22 +04:00
teststat : teststat .o
@echo Linking teststat
2007-04-08 20:41:24 +04:00
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $< $( LIBSMBCLIENT) -lpopt
2005-03-30 06:39:22 +04:00
2005-12-25 05:00:35 +03:00
teststat2 : teststat 2.o
@echo Linking teststat2
2007-04-08 20:41:24 +04:00
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $< $( LIBSMBCLIENT) -lpopt
2005-12-25 05:00:35 +03:00
2008-01-17 17:26:36 +03:00
teststat3 : teststat 3.o
@echo Linking teststat3
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $< $( LIBSMBCLIENT) -lpopt
2009-02-12 18:39:17 +03:00
teststatvfs : teststatvfs .o
@echo Linking teststatvfs
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $< $( LIBSMBCLIENT) -lpopt
testfstatvfs : testfstatvfs .o
@echo Linking testfstatvfs
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $< $( LIBSMBCLIENT) -lpopt
2008-02-27 05:46:08 +03:00
testtruncate : testtruncate .o
@echo Linking testtruncate
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $< $( LIBSMBCLIENT) -lpopt
2005-03-31 20:26:15 +04:00
testchmod : testchmod .o
@echo Linking testchmod
2007-04-08 20:41:24 +04:00
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $< $( LIBSMBCLIENT) -lpopt
2005-03-31 20:26:15 +04:00
testutime : testutime .o
@echo Linking testutime
2007-04-08 20:41:24 +04:00
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $< $( LIBSMBCLIENT) -lpopt
2005-03-31 20:26:15 +04:00
2005-10-17 23:27:19 +04:00
testread : testread .o
@echo Linking testread
2007-04-08 20:41:24 +04:00
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $< $( LIBSMBCLIENT) -lpopt
2005-10-17 23:27:19 +04:00
2008-01-17 17:26:36 +03:00
testwrite : testwrite .o
@echo Linking testwrite
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $< $( LIBSMBCLIENT) -lpopt
2008-08-13 00:35:15 +04:00
testctx : testctx .o
@echo Linking testctx
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $< $( LIBSMBCLIENT) -lpopt
2005-03-29 04:42:51 +04:00
smbsh :
make -C smbwrapper
2001-05-17 06:29:00 +04:00
clean :
2005-03-31 20:26:15 +04:00
@rm -f *.o *~ $( TESTS)
2005-03-29 04:42:51 +04:00
@make -C smbwrapper clean