aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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