viscal

cairo/gtk vi-like timeblocking calendar
git clone git://jb55.com/viscal
Log | Files | Refs | README | LICENSE

Makefile (493B)


      1 
      2 BIN ?= viscal
      3 
      4 all: $(BIN)
      5 
      6 PREFIX ?= /usr
      7 DEPS=libical gtk+-3.0
      8 
      9 CFLAGS=-Wall \
     10        -Wextra \
     11        -O2 \
     12        -Wno-unused-parameter \
     13        -Werror=int-conversion \
     14 			 -std=c99 \
     15 			 -ggdb \
     16 			 -lm \
     17        `pkg-config --cflags --libs $(DEPS)`
     18 
     19 install: $(BIN)
     20 	mkdir -p $(PREFIX)/bin
     21 	cp $(BIN) $(PREFIX)/bin
     22 
     23 tags: TAGS
     24 
     25 $(BIN): viscal.c Makefile
     26 	$(CC) $(CFLAGS) -o $@ $<
     27 
     28 tags:
     29 	ctags *.c > $@
     30 
     31 check: $(BIN)
     32 	echo "write tests!"
     33 
     34 clean:
     35 	rm -f $(BIN)
     36 
     37 .PHONY: TAGS clean tags