2009-10-27 06:16:00 +05:30
|
|
|
TOPDIR = ../..
|
|
|
|
include $(TOPDIR)/vars.mk
|
|
|
|
|
2009-12-18 17:51:39 +05:30
|
|
|
CFLAGS += -Wno-unused-macros -Wno-conversion -Wno-stack-protector
|
2009-10-27 06:16:00 +05:30
|
|
|
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
|
|
|
|
|
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
|
2009-11-18 14:35:45 +05:30
|
|
|
all: $(INCS) $(GEN) $(OBJS)
|
2009-10-27 06:16:00 +05:30
|
|
|
|
|
|
|
%.o: %.c $(INCS) $(GEN)
|
2009-11-19 10:33:37 +05:30
|
|
|
@echo " [CC] $@"
|
|
|
|
@$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
|
2009-11-18 14:35:45 +05:30
|
|
|
$(SHAREDLIB_CFLAGS) -c $<
|
2009-10-27 06:16:00 +05:30
|
|
|
|
|
|
|
ftperr.h: ftp.errors
|
2009-11-19 10:33:37 +05:30
|
|
|
@echo " [GEN] $@"
|
|
|
|
@./errlist.sh ftp_errlist FTP ftp.errors > $@
|
2009-10-27 06:16:00 +05:30
|
|
|
|
|
|
|
httperr.h: http.errors
|
2009-11-19 10:33:37 +05:30
|
|
|
@echo " [GEN] $@"
|
|
|
|
@./errlist.sh http_errlist HTTP http.errors > $@
|
2009-10-27 06:16:00 +05:30
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
-rm -f $(GEN) $(OBJS)
|