Makefile 961 B

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