source: trunk/samba/examples/libsmbclient/Makefile@ 39

Last change on this file since 39 was 39, checked in by Paul Smedley, 18 years ago

Upgrade source to 3.0.25a

File size: 2.0 KB
Line 
1#
2CC = gcc
3
4SAMBA_INCL = ../../source/include
5EXTLIB_INCL = -I/usr/include/gtk-1.2 \
6 -I/usr/include/glib-1.2 \
7 -I/usr/lib/glib/include
8
9
10DEFS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
11CFLAGS = -O0 -g -I$(SAMBA_INCL) $(EXTLIB_INCL) $(DEFS)
12
13LDFLAGS = -L/usr/local/samba/lib
14#LIBSMBCLIENT = /usr/local/samba/lib/libsmbclient.so
15LIBSMBCLIENT = ../../source/bin/libsmbclient.a -ldl -lresolv
16
17TESTS= testsmbc \
18 tree \
19 testacl \
20 testacl2 \
21 testbrowse \
22 testbrowse2 \
23 teststat \
24 teststat2 \
25 testchmod \
26 testutime \
27 testread
28
29all: $(TESTS) smbsh
30
31testsmbc: testsmbc.o
32 @echo Linking testsmbc
33 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT)
34
35tree: tree.o
36 @echo Linking tree
37 $(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ $< `gtk-config --libs` $(LIBSMBCLIENT)
38
39testacl: testacl.o
40 @echo Linking testacl
41 $(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ $< `gtk-config --libs` $(LIBSMBCLIENT) -lpopt
42
43testacl2: testacl2.o
44 @echo Linking testacl2
45 $(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ $< `gtk-config --libs` $(LIBSMBCLIENT) -lpopt
46
47testbrowse: testbrowse.o
48 @echo Linking testbrowse
49 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
50
51testbrowse2: testbrowse2.o
52 @echo Linking testbrowse2
53 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
54
55teststat: teststat.o
56 @echo Linking teststat
57 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
58
59teststat2: teststat2.o
60 @echo Linking teststat2
61 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
62
63testchmod: testchmod.o
64 @echo Linking testchmod
65 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
66
67testutime: testutime.o
68 @echo Linking testutime
69 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
70
71testread: testread.o
72 @echo Linking testread
73 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBSMBCLIENT) -lpopt
74
75smbsh:
76 make -C smbwrapper
77
78clean:
79 @rm -f *.o *~ $(TESTS)
80 @make -C smbwrapper clean
Note: See TracBrowser for help on using the repository browser.