2009-10-27 06:16:00 +05:30
|
|
|
TOPDIR = ../..
|
|
|
|
include $(TOPDIR)/vars.mk
|
|
|
|
|
|
|
|
CFLAGS += -Wno-unused-macros -Wno-conversion
|
|
|
|
CPPFLAGS += -DFTP_COMBINE_CWDS -DNETBSD -I$(TOPDIR)/include
|
|
|
|
|
2009-10-30 16:47:26 +05:30
|
|
|
ifdef WITH_INET6
|
|
|
|
CPPFLAGS += -DINET6
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef WITH_SSL
|
|
|
|
CPPFLAGS += -DWITH_SSL
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef STATIC
|
|
|
|
CFLAGS += -static
|
|
|
|
endif
|
|
|
|
|
2009-10-27 06:16:00 +05:30
|
|
|
OBJS= fetch.o common.o ftp.o http.o file.o
|
|
|
|
INCS= common.h
|
|
|
|
GEN = ftperr.h httperr.h
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: $(OBJS)
|
|
|
|
|
|
|
|
%.o: %.c $(INCS) $(GEN)
|
2009-10-30 16:47:26 +05:30
|
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -c $<
|
2009-10-27 06:16:00 +05:30
|
|
|
|
|
|
|
ftperr.h: ftp.errors
|
|
|
|
./errlist.sh ftp_errlist FTP ftp.errors > $@
|
|
|
|
|
|
|
|
httperr.h: http.errors
|
|
|
|
./errlist.sh http_errlist HTTP http.errors > $@
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
-rm -f $(GEN) $(OBJS)
|