Makefile 391 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
6
APPS = general showindex diff rev-list cat-file status log rev-parse init blame tag remote
7
APPS += for-each-ref
8
APPS += describe
9

10
all: $(APPS)
11

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

clean:
16
	$(RM) $(APPS)
17
	$(RM) -r *.dSYM