tttm

git clone https://orangeshoelaces.net/git/tttm.git

/Makefile

   1 CC      ?= cc
   2 CFLAGS  ?=
   3 PREFIX  ?= /usr/local
   4 BINDIR  ?= ${PREFIX}/bin
   5 MAN1DIR ?= ${PREFIX}/man/man1
   6 
   7 TTTMSRC = tttm.c errors.c parser.c imap.c
   8 TTTMOBJ = ${TTTMSRC:.c=.o}
   9 
  10 PSHADESSRC = pshades.c errors.c parser.c
  11 PSHADESOBJ = ${PSHADESSRC:.c=.o}
  12 
  13 .SUFFIXES: .c .o
  14 
  15 .c.o:
  16         ${CC} ${CFLAGS} -c $<
  17 
  18 all: tttm pshades
  19 
  20 tttm: ${TTTMOBJ}
  21         ${CC} ${CFLAGS} -o $@ ${TTTMOBJ}
  22 
  23 pshades: ${PSHADESOBJ}
  24         ${CC} ${CFLAGS} -o $@ ${PSHADESOBJ}
  25 
  26 clean:
  27         rm -f tttm pshades ${TTTMOBJ} ${PSHADESOBJ}
  28 
  29 install: tttm
  30         install -m 755 -D tttm ${BINDIR}
  31         install -m 444 -D tttm.1 ${MAN1DIR}
  32 
  33 uninstall:
  34         rm -f ${BINDIR}/tttm
  35         rm -f ${MAN1DIR}/tttm.1
  36 
  37 errors.o: errors.c errors.h
  38 
  39 parser.o: parser.c errors.h parser.h
  40 
  41 imap.o: imap.c errors.h parser.h imap.h
  42 
  43 pshades.o: pshades.c errors.h parser.h
  44 
  45 tttm.o: tttm.c errors.h parser.h imap.h
  46 
  47 .PHONY: all clean install uninstall