123456789101112131415161718192021222324252627282930313233 |
- # Makefile for systems with GNU tools
- CC = gcc
- INSTALL = install
- IFLAGS = -idirafter dummyinc
- #CFLAGS = -g
- CFLAGS = -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 \
- -Wall -W -Wshadow -Werror -Wformat-security \
- -D_FORTIFY_SOURCE=2 \
- #-pedantic -Wconversion
- LIBS = `./vsf_findlibs.sh`
- LINK = -Wl,-s
- LDFLAGS = -fPIE -pie -Wl,-z,relro -Wl,-z,now
- OBJS = main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o \
- tunables.o ftpdataio.o secbuf.o ls.o \
- postprivparent.o logging.o str.o netstr.o sysstr.o strlist.o \
- banner.o filestr.o parseconf.o secutil.o \
- ascii.o oneprocess.o twoprocess.o privops.o standalone.o hash.o \
- tcpwrap.o ipaddrparse.o access.o features.o readwrite.o opts.o \
- ssl.o sslslave.o ptracesandbox.o ftppolicy.o sysutil.o sysdeputil.o \
- seccompsandbox.o
- .c.o:
- $(CC) -c $*.c $(CFLAGS) $(IFLAGS)
- ftpz: $(OBJS)
- $(CC) -o ftpz $(OBJS) $(LINK) $(LDFLAGS) $(LIBS)
- clean:
- rm -f *.o *.swp ftpz
|