projects
/
bluesky.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Link against libs3 for access to Amazon S3.
[bluesky.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
593f4d4
..
8d986f4
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,22
+1,32
@@
-PACKAGES=glib-2.0
+LIBS3_PATH=$(HOME)/scratch/libs3-1.4/build
+PACKAGES=glib-2.0 gthread-2.0
DEBUG=-g
DEBUG=-g
-CFLAGS=-O -Wall -D_FILE_OFFSET_BITS=64 $(DEBUG) \
+CFLAGS=-O -
std=gnu99 -
Wall -D_FILE_OFFSET_BITS=64 $(DEBUG) \
$(shell pkg-config --cflags $(PACKAGES))
LDFLAGS=$(DEBUG) $(shell pkg-config --libs $(PACKAGES))
$(shell pkg-config --cflags $(PACKAGES))
LDFLAGS=$(DEBUG) $(shell pkg-config --libs $(PACKAGES))
+SUBDIRS=nfs3
-SRCS=
nfsd.c rpc.c mount.c mount_prot_xdr
.c
+SRCS=
dir.c inode.c store
.c
OBJS=$(SRCS:.c=.o)
OBJS=$(SRCS:.c=.o)
-nfsproxy : $(OBJS)
- $(CC) $(LDFLAGS) -o $@ $^
+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 $@ $^ -Wl,-rpath=$(LIBS3_PATH)/lib -L$(LIBS3_PATH)/lib -ls3
clean :
clean :
- rm -f $(OBJS) nfsproxy
+ rm -f $(OBJS) bluesky
+ for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done
dep :
touch Makefile.dep
makedepend -fMakefile.dep $(SRCS)
dep :
touch Makefile.dep
makedepend -fMakefile.dep $(SRCS)
-.PHONY : clean dep
+.PHONY :
all
clean dep
-include *.dep
-include *.dep