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
SAMBA_INCL = ../../source/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
2001-05-17 06:29:00 +04:00
2005-03-30 06:39:22 +04:00
DEFS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS= 64 -D_GNU_SOURCE
CFLAGS = -O0 -g -I$( SAMBA_INCL) $( EXTLIB_INCL) $( DEFS)
2001-05-17 06:29:00 +04:00
2005-03-30 06:39:22 +04:00
LDFLAGS = -L/usr/local/samba/lib
2001-05-17 06:29:00 +04:00
2005-03-31 20:26:15 +04:00
TESTS = testsmbc \
tree \
testacl \
testbrowse \
teststat \
testchmod \
testutime
all : $( TESTS ) smbsh
2001-05-17 06:29:00 +04:00
testsmbc : testsmbc .o
@echo Linking testsmbc
2005-03-30 06:39:22 +04:00
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $< -lsmbclient
2001-06-30 08:01:51 +04:00
2001-05-17 06:29:00 +04:00
tree : tree .o
@echo Linking tree
@$( CC) ` gtk-config --cflags` $( CFLAGS) $( LDFLAGS) -o $@ ` gtk-config --libs` -lsmbclient $<
2003-10-25 00:24:05 +04:00
testacl : testacl .o
@echo Linking testacl
@$( CC) ` gtk-config --cflags` $( CFLAGS) $( LDFLAGS) -o $@ ` gtk-config --libs` -lsmbclient -lpopt $<
2004-03-19 20:48:08 +03:00
testbrowse : testbrowse .o
@echo Linking testbrowse
@$( CC) $( CFLAGS) $( LDFLAGS) -o $@ -lsmbclient -lpopt $<
2005-03-30 06:39:22 +04:00
teststat : teststat .o
@echo Linking teststat
@$( CC) $( CFLAGS) $( LDFLAGS) -o $@ /usr/local/samba/lib/libsmbclient.so -lpopt $<
2005-03-31 20:26:15 +04:00
testchmod : testchmod .o
@echo Linking testchmod
@$( CC) $( CFLAGS) $( LDFLAGS) -o $@ /usr/local/samba/lib/libsmbclient.so -lpopt $<
testutime : testutime .o
@echo Linking testutime
@$( CC) $( CFLAGS) $( LDFLAGS) -o $@ /usr/local/samba/lib/libsmbclient.so -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