Sync with upstream
[svnrdump.git] / Makefile
blobe66feb5b8b5e3c33611bb805b0d3a03a41b830b5
1 CC=gcc
2 PYTHON=python
3 LIBTOOL=libtool
4 LTFLAGS=--tag=CC --silent
5 CFLAGS=-g -O2 -pthread -Wall -Werror=implicit-function-declaration
6 EXEEXT=
7 CPPFLAGS=-DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
8 LDFLAGS=
9 COMPILE=$(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES)
10 LINK=$(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(CFLAGS)
11 LT_COMPILE=$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) $(CFLAGS)
13 INCLUDES=-I/usr/include/subversion-1 -I/usr/include/apr-1.0
14 LIBS=-lsvn_client-1 -lsvn_ra-1 -lsvn_repos-1 -lsvn_delta-1 -lsvn_subr-1 -lapr-1
15 OBJECTS=dump_editor.lo load_editor.lo svnrdump.lo svn17_compat.lo
17 .SUFFIXES: .c .lo
19 svnrdump$(EXEEXT): $(OBJECTS)
20 $(LINK) $(LDFLAGS) -o svnrdump$(EXEEXT) $(OBJECTS) $(LIBS)
22 .c.lo:
23 $(LT_COMPILE) -o $@ -c $<
25 dump_editor.lo: dump_editor.c dump_editor.h svn17_compat.h
26 load_editor.lo: load_editor.c load_editor.h svn17_compat.h
27 svnrdump.lo: svnrdump.c dump_editor.h load_editor.h svn17_compat.h
28 svn17_compat.lo: svn17_compat.c svn17_compat.h
30 check: svnrdump$(EXEEXT) svnrdump_tests.py
31 $(PYTHON) svnrdump_tests.py
33 clean:
34 $(RM) svnrdump$(EXEEXT)
35 $(RM) *.lo *.o