aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Hawthorn <jhawthor@uvic.ca>2009-07-25 23:05:24 -0700
committerJohn Hawthorn <jhawthor@uvic.ca>2009-07-25 23:05:24 -0700
commit866ca6e02121344a1af5324579521eadda5ae243 (patch)
tree2c0dde261ead3f028ec444356946fac6de94761f
parent3ab3910e87730ba9ecd6d4c9f053424e933ad62f (diff)
downloadmirror-meh-866ca6e02121344a1af5324579521eadda5ae243.tar.gz
mirror-meh-866ca6e02121344a1af5324579521eadda5ae243.tar.bz2
mirror-meh-866ca6e02121344a1af5324579521eadda5ae243.zip
added convenience makefile configs
-rw-r--r--Makefile5
-rw-r--r--configs/gprof.mk1
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 170fc56..77fe712 100644
--- a/Makefile
+++ b/Makefile
@@ -9,10 +9,11 @@ PREFIX ?= /usr/local
BINDIR = $(PREFIX)/bin
# User configuration
--include config.mk
+CONFIG ?= ../config
+-include configs/$(CONFIG).mk
meh: $(OBJFILES)
- $(CC) $(LDFLAGS) -o $@ $(OBJFILES) $(LIBS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJFILES) $(LIBS)
-include $(DEPFILES)
diff --git a/configs/gprof.mk b/configs/gprof.mk
new file mode 100644
index 0000000..e622a08
--- /dev/null
+++ b/configs/gprof.mk
@@ -0,0 +1 @@
+CFLAGS += -g -pg