mirror of
https://github.com/rclone/rclone
synced 2024-11-24 01:26:25 +01: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
|