summaryrefslogtreecommitdiffstats
path: root/lib/tdb/rules.mk
blob: 73ab771c5c2ef9ff2d2015279d52724e0e4118d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.SUFFIXES: .i _wrap.c

.i_wrap.c: 
	$(SWIG) -O -Wall -python -keyword $<

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

.SUFFIXES: .c .o

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

distclean::
	rm -f *~ */*~