summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/h8300/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/h8300/Makefile')
-rw-r--r--libc/sysdeps/linux/h8300/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/libc/sysdeps/linux/h8300/Makefile b/libc/sysdeps/linux/h8300/Makefile
index 141a68f69..f79069241 100644
--- a/libc/sysdeps/linux/h8300/Makefile
+++ b/libc/sysdeps/linux/h8300/Makefile
@@ -19,6 +19,9 @@
TOPDIR=../../../../
include $(TOPDIR)Rules.mak
ASFLAGS=$(CFLAGS)
+ifeq ($(DOPIC),y)
+ASFLAGS+=-D__PIC__
+endif
#FIXME -- this arch should include its own crti.S and crtn.S
UCLIBC_CTOR_DTOR=n
@@ -27,17 +30,17 @@ CRT0_SRC = crt0.S
CRT0_OBJ = crt0.o crt1.o
CTOR_TARGETS=$(TOPDIR)lib/crti.o $(TOPDIR)lib/crtn.o
-SSRC=setjmp.S vfork.S # longjmp.S _start.S clone.S
+SSRC=__longjmp.S bsd-_setjmp.S bsd-setjmp.S clone.S setjmp.S vfork.S
SOBJS=$(patsubst %.S,%.o, $(SSRC))
-CSRC=ptrace.c
+CSRC=ptrace.c brk.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(SOBJS) $(COBJS)
all: $(OBJS) $(LIBC)
-$(LIBC): ar-target
+$(LIBC): ar-target
ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS)
$(AR) $(ARFLAGS) $(LIBC) $(OBJS)
@@ -48,7 +51,7 @@ $(CRT0_OBJ): $(CRT0_SRC)
$(STRIPTOOL) -x -R .note -R .comment $*.o
$(SOBJS): %.o : %.S
- $(CC) $(CFLAGS) -c $< -o $@
+ $(CC) $(ASFLAGS) -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o
$(COBJS): %.o : %.c
@@ -83,7 +86,4 @@ headers:
clean:
$(RM) *.[oa] *~ core
-ifneq ($(strip $(HAVE_ELF)),y)
- $(RM) $(TOPDIR)/include/float.h
-endif