aboutsummaryrefslogtreecommitdiff
path: root/libraries/libprof/Makefile
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2019-04-09 17:45:13 -0400
committerPaul Selkirk <paul@psgd.org>2019-04-09 17:58:34 -0400
commit087b079befab46622a306c2afd6205a510305af3 (patch)
tree3d10c4ec3406377508c99beb1fb0c233f514a9c0 /libraries/libprof/Makefile
parent07af68c08baefbced001a0081256cb1fff8ed491 (diff)
parente203f797dddfcd03419e7ac336a86a6186fce0c1 (diff)
Rebase branch 'js_keywrap' from masterjs_keywrap
Diffstat (limited to 'libraries/libprof/Makefile')
-rw-r--r--libraries/libprof/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/libraries/libprof/Makefile b/libraries/libprof/Makefile
index 4fe5fb4..28bedea 100644
--- a/libraries/libprof/Makefile
+++ b/libraries/libprof/Makefile
@@ -1,12 +1,16 @@
LIB = libprof.a
-OBJS = gmon.o profil.o profiler.o
+OBJS = gmon.o profiler.o memfunc.o
# Don't profile the profiling code, because that way lies madness (and recursion).
CFLAGS := $(subst -pg,,$(CFLAGS))
all: $(LIB)
+# But do profile the mem functions
+memfunc.o: memfunc.c
+ $(CC) $(CFLAGS) -pg -c -o $@ $<
+
%.o : %.c
$(CC) $(CFLAGS) -c -o $@ $<