stamail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

Makefile (527B)


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