pop3

Tiny pop3 client designed to be tunneled through ssh
git clone git://jacobedwards.org/pop3
Log | Files | Refs | README

Makefile (653B)


      1 name = pop3
      2 src = pop3.c
      3 compat = openbsd-compat/readpassphrase.c openbsd-compat/explicit_bzero.c
      4 obj = ${src:.c=.o} ${compat:.c=.o}
      5 
      6 prefix = /usr/local
      7 manprefix = ${prefix}/man
      8 
      9 cc = ${CC}
     10 cppflags = -I./openbsd-compat
     11 cflags = ${CFLAGS} -Wall -Wno-write-strings ${cppflags}
     12 ldflags = ${LDFLAGS}
     13 
     14 all: ${name}
     15 
     16 ${name}: ${obj}
     17 	${cc} -o $@ ${obj} ${ldflags}
     18 
     19 ${OBJ}: Makefile
     20 
     21 .c.o:
     22 	${cc} ${cflags} -c -o $@ $<
     23 
     24 clean:
     25 	rm -f ${name} ${obj}
     26 
     27 install: ${NAME}
     28 	cp -f ${name} ${prefix}/bin
     29 	cp -f ${name}.1 ${manprefix}/man1
     30 
     31 uninstall:
     32 	rm -f ${prefix}/bin/${name}
     33 	rm -f ${manprefix}/man1/${name}.1
     34 
     35 .SUFFIXES: .c .o
     36 .PHONY: clean install uninstall