9905682e68646c86b338ebcccf8796180fba27a2
[bluesky.git] / nfs3 / Makefile
1 LIBS3_PATH=$(HOME)/scratch/libs3-1.4/build
2 PACKAGES=glib-2.0 gthread-2.0
3 DEBUG=-g
4 CFLAGS=-Wall -D_FILE_OFFSET_BITS=64 $(DEBUG) -I.. \
5         $(shell pkg-config --cflags $(PACKAGES))
6 LDFLAGS=$(DEBUG) $(shell pkg-config --libs $(PACKAGES))
7
8 SRCS=nfsd.c rpc.c mount.c nfs3.c mount_prot_xdr.c nfs3_prot_xdr.c
9 OBJS=$(SRCS:.c=.o)
10
11 nfsproxy : $(OBJS)
12         $(CXX) $(LDFLAGS) -o $@ $^ ../bluesky.a -Wl,-rpath=$(LIBS3_PATH)/lib -L$(LIBS3_PATH)/lib -ls3
13
14 clean :
15         rm -f $(OBJS) nfsproxy
16
17 dep :
18         touch Makefile.dep
19         makedepend -fMakefile.dep $(SRCS)
20
21 .PHONY : clean dep
22
23 -include *.dep