1
mirror of https://github.com/rclone/rclone synced 2024-11-27 05:23:40 +01:00
rclone/librclone/ctest/Makefile

18 lines
358 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
test: ctest
./ctest
clean:
rm -f tmp ctest *.o *.a *.h *.gch