Hash :
13ce9f1b
Author :
Date :
2008-10-31T12:28:49
all::
DOXYGEN = doxygen
CFLAGS = -g -O2
BASIC_CFLAGS = -Isrc
OBJS = $(patsubst %.c,%.o,$(wildcard src/*.c))
HDRS = $(wildcard src/*.h)
all:: libgit2.a
clean:
rm -f libgit2.a src/*.o
rm -rf apidocs
apidocs:
$(DOXYGEN) api.doxygen
cp CONVENTIONS apidocs/
.c.o:
$(CC) $(BASIC_CFLAGS) $(CFLAGS) -c $< -o $@
$(OBJS): $(HDRS)
libgit2.a: $(OBJS)
rm -f libgit2.a
$(AR) cr libgit2.a $(OBJS)
.PHONY: all
.PHONY: clean
.PHONY: apidocs