stamail

A mailing list archive viewer.
git clone git://git.chappelle.dev/stamail.git
Log | Files | Refs | README | LICENSE

Makefile (1518B)


      1 # =======================================================
      2 # ███████╗████████╗ █████╗ ███╗   ███╗ █████╗ ██╗██╗     
      3 # ██╔════╝╚══██╔══╝██╔══██╗████╗ ████║██╔══██╗██║██║     
      4 # ███████╗   ██║   ███████║██╔████╔██║███████║██║██║     
      5 # ╚════██║   ██║   ██╔══██║██║╚██╔╝██║██╔══██║██║██║     
      6 # ███████║   ██║   ██║  ██║██║ ╚═╝ ██║██║  ██║██║███████╗
      7 # ╚══════╝   ╚═╝   ╚═╝  ╚═╝╚═╝     ╚═╝╚═╝  ╚═╝╚═╝╚══════╝
      8 # =======================================================
      9 
     10 CC      = cc
     11 CFLAGS  = -std=c99 -Wall -Wextra -O2
     12 OBJ     = stamail.o sexp.o thread.o headers.o
     13 BIN     = stamail
     14 
     15 all: $(BIN)
     16 
     17 $(BIN): $(OBJ)
     18 	$(CC) $(CFLAGS) -o $@ $(OBJ)
     19 
     20 stamail.o: stamail.c stamail.h
     21 	$(CC) $(CFLAGS) -c stamail.c
     22 
     23 sexp.o: sexp.c stamail.h 
     24 	$(CC) $(CFLAGS) -c sexp.c 
     25 
     26 thread.o: thread.c thread.h 
     27 	$(CC) $(CFLAGS) -c thread.c
     28 
     29 headers.o: headers.c headers.h
     30 	$(CC) $(CFLAGS) -c headers.c
     31 
     32 clean:
     33 	rm -rf $(OBJ) $(BIN) ./output/
     34 
     35 messages: 
     36 	notmuch show --format=sexp '*' | ./stamail
     37 
     38 .PHONY: all clean
     39