Add a static linking target to the examples Makefile so I can test out static linking ...
[kai/samba.git] / examples / libsmbclient / Makefile
1 #
2
3 SAMBA_INCL = ../../source/include
4
5 CFLAGS = -I$(SAMBA_INCL)
6
7 LDFLAGS = -L/usr/lib
8
9 all: testsmbc tree
10
11 testsmbc: testsmbc.o 
12         @echo Linking testsmbc
13         @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lsmbclient
14
15 testsmbc-static: testsmbc.o 
16         @echo Linking testsmbc
17         @$(CC) $(CFLAGS) -static $(LDFLAGS) -o $@ $< -lsmbclient -ldl -lnsl
18
19 tree: tree.o
20         @echo Linking tree
21         @$(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ `gtk-config --libs` -lsmbclient $<
22
23 clean:
24         @rm -f *.o *~