Hook NFS proxy together with BlueSky core.
[bluesky.git] / Makefile
index 386cc23..7f5b123 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,11 +3,19 @@ DEBUG=-g
 CFLAGS=-O -Wall -D_FILE_OFFSET_BITS=64 $(DEBUG) \
        $(shell pkg-config --cflags $(PACKAGES))
 LDFLAGS=$(DEBUG) $(shell pkg-config --libs $(PACKAGES))
+SUBDIRS=nfs3
 
-SRCS=dir.c inode.c main.c
+SRCS=dir.c inode.c
 OBJS=$(SRCS:.c=.o)
 
-bluesky : $(OBJS)
+all : bluesky
+       for d in $(SUBDIRS); do $(MAKE) -C $$d; done
+
+bluesky.a : $(OBJS)
+       $(AR) -r $@ $(OBJS)
+       ranlib $@
+
+bluesky : main.o bluesky.a
        $(CC) $(LDFLAGS) -o $@ $^
 
 clean :
@@ -17,6 +25,6 @@ dep :
        touch Makefile.dep
        makedepend -fMakefile.dep $(SRCS)
 
-.PHONY : clean dep
+.PHONY : all clean dep
 
 -include *.dep