libs3 is licensed as GPLv3.
+LIBS3_PATH=$(HOME)/scratch/libs3-1.4/build
PACKAGES=glib-2.0 gthread-2.0
DEBUG=-g
CFLAGS=-O -std=gnu99 -Wall -D_FILE_OFFSET_BITS=64 $(DEBUG) \
ranlib $@
bluesky : main.o bluesky.a
- $(CC) $(LDFLAGS) -o $@ $^
+ $(CC) $(LDFLAGS) -o $@ $^ -Wl,-rpath=$(LIBS3_PATH)/lib -L$(LIBS3_PATH)/lib -ls3
clean :
rm -f $(OBJS) bluesky
+LIBS3_PATH=$(HOME)/scratch/libs3-1.4/build
PACKAGES=glib-2.0 gthread-2.0
DEBUG=-g
CFLAGS=-Wall -D_FILE_OFFSET_BITS=64 $(DEBUG) -I.. \
OBJS=$(SRCS:.c=.o)
nfsproxy : $(OBJS)
- $(CC) $(LDFLAGS) -o $@ $^ ../bluesky.a
+ $(CC) $(LDFLAGS) -o $@ $^ ../bluesky.a -Wl,-rpath=$(LIBS3_PATH)/lib -L$(LIBS3_PATH)/lib -ls3
clean :
rm -f $(OBJS) nfsproxy
#include <netinet/in.h>
#include <glib.h>
+#include "libs3.h"
#include "bluesky.h"
void register_rpc();
g_thread_init(NULL);
register_rpc();
+ S3_initialize(NULL, S3_INIT_ALL);
+
fs = bluesky_new_fs("export");
BlueSkyInode *root;