summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/powerpc/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-03-06 15:03:33 +0000
committerEric Andersen <andersen@codepoet.org>2003-03-06 15:03:33 +0000
commitf8a078764773263c596e67d3dd49a59423895c7c (patch)
tree58dccfc1459cc4c3318c8ce0e4bb39e8fd1c5eb0 /libc/sysdeps/linux/powerpc/Makefile
parent6f2da98c8c7c54e38ed8ba02a86b997d2046289c (diff)
Finish off gmon based profiling for powerpc
Diffstat (limited to 'libc/sysdeps/linux/powerpc/Makefile')
-rw-r--r--libc/sysdeps/linux/powerpc/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/powerpc/Makefile b/libc/sysdeps/linux/powerpc/Makefile
index 9b79644e6..8e979a1e8 100644
--- a/libc/sysdeps/linux/powerpc/Makefile
+++ b/libc/sysdeps/linux/powerpc/Makefile
@@ -21,9 +21,13 @@ include $(TOPDIR)Rules.mak
ASFLAGS=$(CFLAGS)
CRT0_SRC = crt0.S
-CRT0_OBJ = crt0.o crt1.o
+CRT0_OBJ = crt0.o crt1.o gcrt1.o
+CRT0_DEPS=gmon-start.S
SSRC=__longjmp.S setjmp.S bsd-setjmp.S bsd-_setjmp.S brk.S clone.S __uClibc_syscall.S
+ifeq ($(strip $(UCLIBC_PROFILING)),y)
+SSRC+=mcount.S
+endif
SOBJS=$(patsubst %.S,%.o, $(SSRC))
CSRC=_mmap.c vfork.c __syscall_error.c pread_write.c ioctl.c
@@ -52,6 +56,13 @@ $(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o
+ifeq ($(strip $(UCLIBC_PROFILING)),y)
+SAFECFLAGS := $(subst -g,,$(CFLAGS))
+gmon-start.S: ../common/gmon-start.c
+ $(CC) $(SAFECFLAGS) -c $< -S -o $*.S
+gcrt1.o: $(CRT0_DEPS)
+endif
+
headers: