forked from TrueCloudLab/rclone
5db88fed2b
- rename C exports to be namespaced with Rclone prefix - fix error handling in RcloneRPC - add more examples - add more docs - add README - simplify ctest Makefile
14 lines
336 B
Makefile
14 lines
336 B
Makefile
CFLAGS = -g -Wall
|
|
LDFLAGS = -L. -lrclone -lpthread -ldl
|
|
|
|
ctest: ctest.o librclone.a
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
|
|
|
ctest.o: ctest.c librclone.h
|
|
$(CC) $(CFLAGS) -c $^ $(LDFLAGS)
|
|
|
|
librclone.a librclone.h:
|
|
go build --buildmode=c-archive -o librclone.a github.com/rclone/rclone/librclone
|
|
|
|
clean:
|
|
rm -f tmp ctest *.o *.a *.h *.gch
|