rclone/librclone/ctest/Makefile
Nick Craig-Wood 5db88fed2b librclone: exports, errors, docs and examples #4891
- 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
2021-04-28 16:55:08 +01:00

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