summaryrefslogtreecommitdiff
path: root/examples/libsmbclient/Makefile
blob: 5fe9977c0ae1bc0885bb06683dd8a2fdad88e1de (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
#
CC = gcc

SAMBA_INCL = ../../source/include

CFLAGS = -I$(SAMBA_INCL)

LDFLAGS = -L/usr/lib

all: testsmbc tree

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 $<

clean:
	@rm -f *.o *~