summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/rules.mk
blob: 3e5b3b652f5c04f37ddd1aa3ad4a0f67f59890d2 (plain)
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
etags:
	etags `find $(srcdir) -name "*.[ch]"`

ctags:
	ctags `find $(srcdir) -name "*.[ch]"`

.SUFFIXES: _wrap.c .i

.i_wrap.c:
	[ "$(SWIG)" == "no" ] || $(SWIG) -O -Wall -python -keyword $<

.SUFFIXES: .1 .1.xml .3 .3.xml .xml .html .c .o

.c.o:
	@echo Compiling $*.c
	@mkdir -p `dirname $@`
	@$(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@

.c.po:
	@echo Compiling $*.c
	@mkdir -p `dirname $@`
	@$(CC) -fPIC $(CFLAGS) -c $< -o $@

showflags::
	@echo 'ldb will be compiled with flags:'
	@echo '  CFLAGS = $(CFLAGS)'
	@echo '  LIBS = $(LIBS)'