diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2016-12-17 21:28:53 -0800 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2016-12-17 21:28:53 -0800 |
commit | 54df2afaa61c6a03cbb4a33c9b90fa572b6d07b8 (patch) | |
tree | 18147b92b969d25ffbe61935fb63035cac820dd0 /db-4.8.30/dist/brew/brew_make.in |
Berkeley DB 4.8 with rust build script for linux.
Diffstat (limited to 'db-4.8.30/dist/brew/brew_make.in')
-rw-r--r-- | db-4.8.30/dist/brew/brew_make.in | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/db-4.8.30/dist/brew/brew_make.in b/db-4.8.30/dist/brew/brew_make.in new file mode 100644 index 0000000..462c666 --- /dev/null +++ b/db-4.8.30/dist/brew/brew_make.in @@ -0,0 +1,25 @@ +################################################### +# EVERYTHING IN THIS FILE HEADER COPIED FROM dist/brew_makefile.in +################################################## +CC= cc +CFLAGS= -c -g -W -Wall -Wpointer-arith -Wmissing-prototypes \ + -I. -I.. -DDIAGNOSTIC + +.c.o: + $(CC) $(CFLAGS) $< -o $@ + +a: t + +t: t.c libdb.a + $(CC) t.c -o t libdb.a + +t.c: + echo '#include <sys/types.h>' > $@ + echo '#include <stdio.h>' >> $@ + echo '#define AEEApplet char' >> $@ + echo '#include "db.h"' >> $@ + echo 'int main() {' >> $@ + echo ' DB_ENV *dbenv; db_env_create(&dbenv, 0); return (0); }' >> $@ + +realclean distclean clean: + rm -f mklog t t.c tmp.c libdb.a *.o |