From dda1223870e78cb9502bc41635a0f2cb9781c077 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 27 May 2018 09:42:41 +1000 Subject: [PATCH] Add makefile for mnetftpc --- .gitignore | 5 +++++ utils/mnetftpc/Makefile | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 utils/mnetftpc/Makefile diff --git a/.gitignore b/.gitignore index ff05ec6..0461a46 100644 --- a/.gitignore +++ b/.gitignore @@ -97,3 +97,8 @@ utils/mnetsubunsub/mnetsubunsub deps/libuuid/autom4te.cache utils/mnetftpd/mnetftpd utils/mnetftpc/mnetftpc +deps/ftplib-4.0-1/src/qftp.static +deps/ftplib-4.0-1/src/libftp.so +deps/ftplib-4.0-1/src/libftp.so.4 +deps/ftplib-4.0-1/src/libftp.so.4.0 +deps/ftplib-4.0-1/src/qftp diff --git a/utils/mnetftpc/Makefile b/utils/mnetftpc/Makefile new file mode 100644 index 0000000..b2bc60c --- /dev/null +++ b/utils/mnetftpc/Makefile @@ -0,0 +1,21 @@ +CC=cc +CFLAGS=-I/usr/local/include -I../../deps/ +DEPS = mnetftpc.c +LIBFTP = ../../deps/ftplib-4.0-1/src/libftp.a +OBJ = mnetftpc.o + +all: mnetftpc + +%.o: %.c $(DEPS) + $(CC) -c -o $@ $< $(CFLAGS) + +$(LIBFTP): + cd ../../deps/ftplib-4.0-1/src && $(MAKE) + +mnetftpc: $(OBJ) $(LIBFTP) + $(CC) -o mnetftpc $^ $(CFLAGS) -L/usr/local/lib + +.PHONY: clean + +clean: + rm -f $(OBJ) mnetftpc \ No newline at end of file