1 GCC_WARNINGS1
=-Wall
-Wpointer-arith
-Wstrict-prototypes
2 GCC_WARNINGS2
=-Wmissing-prototypes
-Wmissing-declarations
3 GCC_WARNINGS3
=-Wnested-externs
-fno-strict-aliasing
4 GCC_WARNINGS
=$(GCC_WARNINGS1
) $(GCC_WARNINGS2
) $(GCC_WARNINGS3
)
5 CFLAGS
=-O2
-g
$(GCC_WARNINGS
) -I..
/git
-DSHA1_HEADER
='<openssl/sha.h>'
7 LIBS
=-L
$(GITPATH
) -lgit
$(GITPATH
)/xdiff
/lib.a
-lssl
-lcrypto
-lz
11 OBJS
=gram.o
lex.o parsecvs.o cvsutil.o revdir.o \
12 revlist.o atom.o revcvs.o git.o gitutil.o rcs2git.o \
13 nodehash.o
tags.o tree.o
16 cc $(CFLAGS
) -o
$@
$(OBJS
) $(LIBS
)
26 rm -f
$(OBJS
) y.tab.h gram.c
lex.c parsecvs
28 cp parsecvs edit-change-log
${HOME}/bin