26 lines
503 B
Makefile
26 lines
503 B
Makefile
|
TOPDIR = ../..
|
||
|
include $(TOPDIR)/vars.mk
|
||
|
|
||
|
CFLAGS += -Wno-unused-macros -Wno-conversion
|
||
|
CPPFLAGS += -DFTP_COMBINE_CWDS -DNETBSD -I$(TOPDIR)/include
|
||
|
|
||
|
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)
|
||
|
$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
|
||
|
|
||
|
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)
|