mirror of
https://github.com/samba-team/samba.git
synced 2025-01-07 17:18:11 +03:00
9178d7591b
(This used to be commit 93c45024cd
)
26 lines
483 B
Makefile
26 lines
483 B
Makefile
#
|
|
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 *~
|