Makefile 346 Bytes
Newer Older
1 2
.PHONY: all

3
CC = gcc
4
CFLAGS = -g -I../include -I../src -Wall -Wextra -Wmissing-prototypes -Wno-missing-field-initializers
5
LFLAGS = -L../build -lgit2 -lz
Jiri Pospisil committed
6
APPS = general showindex diff rev-list cat-file status log rev-parse init blame tag
7

8
all: $(APPS)
9

10
% : %.c
11
	$(CC) -o $@ common.c $(CFLAGS) $< $(LFLAGS)
12 13

clean:
14
	$(RM) $(APPS)
15
	$(RM) -r *.dSYM