recipes

packages recipes for the <noname> package manager
Log | Files | Refs

Makefile (1130B)


      1 # Makefile for systems with GNU tools
      2 CC 	=	cc
      3 INSTALL	=	install
      4 IFLAGS  =	-Idummyinc -I$(libressl)/include
      5 CFLAGS	=	-O2 -fPIC -fPIE -fstack-protector --param=ssp-buffer-size=4 \
      6 		-Wall -W -Wshadow -Wformat-security \
      7 		-D_FORTIFY_SOURCE=2
      8 LIBS	=	-L$(libressl)/lib -lssl -lcrypto
      9 LINK	=	-Wl,-s -static
     10 LDFLAGS	=	-static -fPIE -pie -Wl,-z,relro -Wl,-z,now
     11 
     12 OBJS	=	main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o \
     13 		tunables.o ftpdataio.o secbuf.o ls.o \
     14 		postprivparent.o logging.o str.o netstr.o sysstr.o strlist.o \
     15 		banner.o filestr.o parseconf.o secutil.o \
     16 		ascii.o oneprocess.o twoprocess.o privops.o standalone.o hash.o \
     17 		tcpwrap.o ipaddrparse.o access.o features.o readwrite.o opts.o \
     18 		ssl.o sslslave.o ptracesandbox.o ftppolicy.o sysutil.o sysdeputil.o \
     19 		seccompsandbox.o
     20 
     21 .c.o:
     22 	$(CC) -c $*.c $(CFLAGS) $(IFLAGS)
     23 
     24 vsftpd: $(OBJS) 
     25 	$(CC) -o vsftpd $(OBJS) $(LINK) $(LDFLAGS) $(LIBS)
     26 
     27 install:
     28 	$(INSTALL) -m 755 vsftpd $(PREFIX)/bin/vsftpd
     29 	$(INSTALL) -m 644 vsftpd.8 $(PREFIX)/man/man8/vsftpd.8;
     30 	$(INSTALL) -m 644 vsftpd.conf.5 $(PREFIX)/man/man5/vsftpd.conf.5;
     31 
     32 clean:
     33 	rm -f *.o *.swp vsftpd