Add makefile for mnetftpc
This commit is contained in:
parent
d41c65d27e
commit
dda1223870
5
.gitignore
vendored
5
.gitignore
vendored
@ -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
|
||||
|
21
utils/mnetftpc/Makefile
Normal file
21
utils/mnetftpc/Makefile
Normal 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
|
Reference in New Issue
Block a user