aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 25a6d32..5e5183d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -47,10 +47,13 @@ UNALF_OBJS=unalf.o io.o listalf.o extract.o f65.o glob.o opts.o usage.o self.o a
ALFSUM_OBJS=alfsum.o self.o
ALF_OBJS=alf.o self.o alfusage.o sanity.o crunch.o dupname.o
-.PHONY: all clean install crosswin windows windows-upload realclean
+.PHONY: all clean install crosswin windows windows-upload realclean profile
all: $(BINS) $(MANS)
+profile: clean
+ $(MAKE) COPT="-Og -pg" LDFLAGS="-pg"
+
# unalf and alfsum need explicit rules for BSD make compatibility.
# without them, bmake tries to run "cc -o unalf unalf.c" which ain't
# gonna ever work.