r588: Some fixes from coolo ...
[Samba/gebeck_regimport.git] / examples / libsmbclient / Makefile
blobfcd5ef290030f940ed7de979af8af99ce0ef8340
2 CC = gcc
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
9 CFLAGS = -I$(SAMBA_INCL) $(EXTLIB_INCL)
11 LDFLAGS = -L/usr/lib
13 all: testsmbc tree testacl testbrowse
15 testsmbc: testsmbc.o
16 @echo Linking testsmbc
17 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lsmbclient -L/usr/local/lib
19 testsmbc-static: testsmbc.o
20 @echo Linking testsmbc
21 @$(CC) $(CFLAGS) -static $(LDFLAGS) -o $@ $< -lsmbclient -ldl -lnsl
23 tree: tree.o
24 @echo Linking tree
25 @$(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ `gtk-config --libs` -lsmbclient $<
27 testacl: testacl.o
28 @echo Linking testacl
29 @$(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ `gtk-config --libs` -lsmbclient -lpopt $<
31 testbrowse: testbrowse.o
32 @echo Linking testbrowse
33 @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ -lsmbclient -lpopt $<
35 clean:
36 @rm -f *.o *~