summaryrefslogtreecommitdiff
path: root/Makefile
blob: 03c360c9811146d7b46bea78234ad2418a018990 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CC=gcc
CFLAGS=-O0 -g3 -Wall $(shell pkg-config --cflags smbclient)
LDLIBS=  $(shell pkg-config --libs smbclient) -lnetfs -lfshelp -liohelp -lpthread -lports -lihash -ldl -lshouldbeinlibc

smbfs: clean smb.o smbfs.o smbnetfs.o
	$(CC) smb.o smbfs.o smbnetfs.o -osmbfs $(LDLIBS)

smb.o:
	$(CC)  $(CFLAGS) smb.c  -I/local/samba/include/ -c  
        
smbfs.o:
	$(CC)   $(CFLAGS) smbfs.c  -I/local/samba/include/ -c  
        
smbnetfs.o:
	$(CC)   $(CFLAGS) smbnetfs.c  -I/local/samba/include/ -c  
        
clean:
	rm -rf *.o smbfs
        
all: smbfs