mirror of
https://github.com/rclone/rclone.git
synced 2024-12-19 09:13:43 +08:00
18 lines
358 B
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
|