Add makefile for mnetftpc

This commit is contained in:
Andrew Pamment
2018-05-27 09:42:41 +10:00
parent d41c65d27e
commit dda1223870
2 changed files with 26 additions and 0 deletions

21
utils/mnetftpc/Makefile Normal file
View File

@@ -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