This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
magicka/utils/mnetftpc/Makefile

21 lines
409 B
Makefile
Raw Normal View History

2018-05-26 23:42:41 +00:00
CC=cc
2018-05-27 01:11:33 +00:00
CFLAGS=-I/usr/local/include -I../../deps/ -I../../deps/ftplib-4.0-1/src
2018-05-26 23:42:41 +00:00
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):
2018-05-27 01:16:45 +00:00
cd ../../deps/ftplib-4.0-1/src && $(MAKE) libftp.a
2018-05-26 23:42:41 +00:00
mnetftpc: $(OBJ) $(LIBFTP)
$(CC) -o mnetftpc $^ $(CFLAGS) -L/usr/local/lib
.PHONY: clean
clean:
rm -f $(OBJ) mnetftpc