db9ae90dd4
Also always build the static bins so that it's done in one pass, that means that objects are PIC and built with SSP. --HG-- extra : convert_revision : xtraeme%40gmail.com-20091119050337-hkdksjqxy9n7vy7m
38 lines
710 B
Makefile
38 lines
710 B
Makefile
TOPDIR = ../..
|
|
include $(TOPDIR)/vars.mk
|
|
|
|
CFLAGS += -Wno-unused-macros -Wno-conversion
|
|
CPPFLAGS += -DFTP_COMBINE_CWDS -DNETBSD -I$(TOPDIR)/include
|
|
|
|
ifdef WITH_INET6
|
|
CPPFLAGS += -DINET6
|
|
endif
|
|
|
|
ifdef WITH_SSL
|
|
CPPFLAGS += -DWITH_SSL
|
|
endif
|
|
|
|
OBJS= fetch.o common.o ftp.o http.o file.o
|
|
INCS= common.h
|
|
GEN = ftperr.h httperr.h
|
|
|
|
.PHONY: all
|
|
all: $(INCS) $(GEN) $(OBJS)
|
|
|
|
%.o: %.c $(INCS) $(GEN)
|
|
@echo " [CC] $@"
|
|
@$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
|
|
$(SHAREDLIB_CFLAGS) -c $<
|
|
|
|
ftperr.h: ftp.errors
|
|
@echo " [GEN] $@"
|
|
@./errlist.sh ftp_errlist FTP ftp.errors > $@
|
|
|
|
httperr.h: http.errors
|
|
@echo " [GEN] $@"
|
|
@./errlist.sh http_errlist HTTP http.errors > $@
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
-rm -f $(GEN) $(OBJS)
|