2009-10-27 01:46:00 +01:00
|
|
|
TOPDIR = ../..
|
|
|
|
include $(TOPDIR)/vars.mk
|
|
|
|
|
2009-12-18 13:21:39 +01:00
|
|
|
CFLAGS += -Wno-unused-macros -Wno-conversion -Wno-stack-protector
|
2009-10-27 01:46:00 +01:00
|
|
|
CPPFLAGS += -DFTP_COMBINE_CWDS -DNETBSD -I$(TOPDIR)/include
|
2010-01-06 11:15:56 +01:00
|
|
|
CPPFLAGS += -DINET6 -DWITH_SSL
|
2009-10-30 12:17:26 +01:00
|
|
|
|
2009-10-27 01:46:00 +01:00
|
|
|
OBJS= fetch.o common.o ftp.o http.o file.o
|
|
|
|
INCS= common.h
|
|
|
|
GEN = ftperr.h httperr.h
|
|
|
|
|
|
|
|
.PHONY: all
|
2009-11-18 10:05:45 +01:00
|
|
|
all: $(INCS) $(GEN) $(OBJS)
|
2009-10-27 01:46:00 +01:00
|
|
|
|
|
|
|
%.o: %.c $(INCS) $(GEN)
|
2009-11-19 06:03:37 +01:00
|
|
|
@echo " [CC] $@"
|
2010-01-06 11:15:56 +01:00
|
|
|
@$(CC) $(CPPFLAGS) $(CFLAGS) $(SHAREDLIB_CFLAGS) $(LDFLAGS) -c $<
|
2009-10-27 01:46:00 +01:00
|
|
|
|
|
|
|
ftperr.h: ftp.errors
|
2009-11-19 06:03:37 +01:00
|
|
|
@echo " [GEN] $@"
|
|
|
|
@./errlist.sh ftp_errlist FTP ftp.errors > $@
|
2009-10-27 01:46:00 +01:00
|
|
|
|
|
|
|
httperr.h: http.errors
|
2009-11-19 06:03:37 +01:00
|
|
|
@echo " [GEN] $@"
|
|
|
|
@./errlist.sh http_errlist HTTP http.errors > $@
|
2009-10-27 01:46:00 +01:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
-rm -f $(GEN) $(OBJS)
|