Makefile 308 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
7

8
all: $(APPS)
9

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

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