mariadb/buildheader/Makefile
Bradley C. Kuszmaul 32c7ffb7d4 Make a clean rule
git-svn-id: file:///svn/tokudb@448 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-14 12:47:32 +00:00

30 lines
934 B
Makefile

CFLAGS = -Wall -W -O2 -Werror -g
runs: runs_mysql runs_installed
# the mysql versions use the header in the mysql distribution.
runs_mysql: ./sample_offsets_mysql
./sample_offsets_mysql
runs_installed: sample_offsets
./sample_offsets
sample_offsets_mysql: CPPFLAGS=-I../../mysql-5.0.27/mysql-5.0.27/bdb/build_unix/
sample_offsets_mysql: sample_offsets.c
$(CC) $(CFLAGS) $(CPPFLAGS) $< -o $@
make_db_h.o: make_db_h.c sample_offsets_32.h sample_offsets_64.h
sample_offsets:
sample_offsets_local: ./db.h
sample_offsets_local: sample_offsets.c
$(CC) $(CFLAGS) -I. -DLOCAL $< -o $@
db.h: make_db_h
./make_db_h > db.h
check32: sample_offsets_local
./sample_offsets_local
diff sample_offsets_local.h sample_offsets_32.h
clean:
rm sample_offsets_mysql sample_offsets
install: db.h
cp db.h ../include/
# Note: To make the ompile work, you must cd to the ../../mysql-5.0.27/mysql-5.0.27/bdb/build_unix
# and do ../dist/configure