Hash :
c15648cb
Author :
Date :
2008-10-31T09:57:29
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
all::
DOXYGEN = doxygen
CFLAGS = -g -O2
BASIC_CFLAGS = -Isrc
OBJS = \
src/git_odb.o \
src/git_oid.o \
#end OBJS
HDRS = \
src/git_oid.h \
src/git_common.h \
#end HDRS
all:: libgit2.a
clean:
rm -f libgit2.a src/*.o
rm -rf apidocs
apidocs:
$(DOXYGEN) api.doxygen
.c.o:
$(CC) $(BASIC_CFLAGS) $(CFLAGS) -c $< -o $@
src/%.o: src/%.c $(HDRS)
libgit2.a: $(OBJS)
rm -f libgit2.a
$(AR) cr libgit2.a $(OBJS)
.PHONY: all
.PHONY: clean
.PHONY: apidocs