21 lines
409 B
Makefile
21 lines
409 B
Makefile
CC=cc
|
|
CFLAGS=-I/usr/local/include -I../../deps/ -I../../deps/ftplib-4.0-1/src
|
|
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) libftp.a
|
|
|
|
mnetftpc: $(OBJ) $(LIBFTP)
|
|
$(CC) -o mnetftpc $^ $(CFLAGS) -L/usr/local/lib
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
rm -f $(OBJ) mnetftpc
|