summaryrefslogtreecommitdiff
path: root/examples/libsmbclient/Makefile
blob: 8c1def8a162a705fcc68f5bf79408a07f070e2a7 (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

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 *~