summaryrefslogtreecommitdiff
path: root/examples/libsmbclient/Makefile
blob: 6c89fd431ec852b1c1e1daf01526a2a9082e942c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
CC = gcc

SAMBA_INCL = ../../source/include
EXTLIB_INCL = -I/usr/include/gtk-1.2 \
	      -I/usr/include/glib-1.2 \
	      -I/usr/lib/glib/include

CFLAGS = -I$(SAMBA_INCL) $(EXTLIB_INCL)

LDFLAGS = -L/usr/lib

all: testsmbc tree testacl testbrowse smbsh

testsmbc: testsmbc.o 
	@echo Linking testsmbc
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lsmbclient -L/usr/local/lib

testsmbc-static: testsmbc.o 
	@echo Linking testsmbc
	@$(CC) $(CFLAGS) -static $(LDFLAGS) -o $@ $< -lsmbclient -ldl -lnsl

tree: tree.o
	@echo Linking tree
	@$(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ `gtk-config --libs` -lsmbclient $<

testacl: testacl.o
	@echo Linking testacl
	@$(CC) `gtk-config --cflags` $(CFLAGS) $(LDFLAGS) -o $@ `gtk-config --libs` -lsmbclient -lpopt $<

testbrowse: testbrowse.o
	@echo Linking testbrowse
	@$(CC) $(CFLAGS) $(LDFLAGS) -o $@ -lsmbclient -lpopt $<

smbsh:
	make -C smbwrapper

clean:
	@rm -f *.o *~ testsmbc tree testacl testbrowse
	@make -C smbwrapper clean