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
|
2010-01-06 15:45:56 +05:30
|
|
|
CPPFLAGS += -DINET6 -DWITH_SSL
|
2009-10-30 16:47:26 +05:30
|
|
|
|
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] $@"
|
2010-01-06 15:45:56 +05:30
|
|
|
@$(CC) $(CPPFLAGS) $(CFLAGS) $(SHAREDLIB_CFLAGS) $(LDFLAGS) -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)
|