summaryrefslogtreecommitdiff
path: root/db-4.8.30/dist/brew/brew_make.in
diff options
context:
space:
mode:
Diffstat (limited to 'db-4.8.30/dist/brew/brew_make.in')
-rw-r--r--db-4.8.30/dist/brew/brew_make.in25
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