summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.org2
-rwxr-xr-xconfigure2
-rw-r--r--configure.ac5
-rw-r--r--src/Makefile.am6
4 files changed, 10 insertions, 5 deletions
diff --git a/README.org b/README.org
index 8d4f973..99646c4 100644
--- a/README.org
+++ b/README.org
@@ -1,7 +1,7 @@
#+STARTUP: hidestars
* example
-#+begin_src conf
+#+begin_src recipe
# title
@ fried onion
diff --git a/configure b/configure
index 90daf49..3fa2593 100755
--- a/configure
+++ b/configure
@@ -3323,6 +3323,8 @@ END
fi
+: ${CFLAGS="-O3 -pedantic"}
+
# Check for C compiler
diff --git a/configure.ac b/configure.ac
index e7ff39d..704b0e2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,7 +5,7 @@
AC_INIT([foodtools], [0.0.1])
# Safety checks in case user overwritten --srcdir
-# AC_CONFIG_SRCDIR([src/food.c])
+AC_CONFIG_SRCDIR([src/food.c])
# Store the auxiliary build tools (e.g., install-sh, config.sub, config.guess)
# in this dir (build-aux)
@@ -16,6 +16,9 @@ AC_CONFIG_AUX_DIR([build-aux])
# ChangeLog, COPYING, AUTHORS, INSTALL, README etc. files.
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects dist-xz])
+# Set default cflags
+: ${CFLAGS="-O3 -pedantic"}
+
# Check for C compiler
AC_PROG_CC
# We can add more checks in this section
diff --git a/src/Makefile.am b/src/Makefile.am
index 99de4ca..e2f6187 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS = food cookbook
-extern = teeny-sha1.c pbg.c
+common_sources = eval.c lib.c parser.c search.c search_stuff.c types.c util.c teeny-sha1.c pbg.c
-food_SOURCES = food.c eval.c lib.c parser.c search.c search_stuff.c types.c util.c $(extern)
-cookbook_SOURCES = cookbook.c eval.c lib.c parser.c search.c search_stuff.c types.c util.c $(extern)
+food_SOURCES = food.c $(common_sources)
+cookbook_SOURCES = cookbook.c $(common_sources)