summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libthreads/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/libthreads/Makefile b/libthreads/Makefile
index bc9b98da..b10ddb81 100644
--- a/libthreads/Makefile
+++ b/libthreads/Makefile
@@ -25,7 +25,7 @@ include ../Makeconf
# done in libc.
generic-sources = call.c cprocs.c cthread_data.c cthreads.c \
malloc.c stack.c sync.c
-machine-sources = csw.s thread.c
+machine-sources = csw.S thread.c
sources = $(generic-sources) $(addprefix $(machine)/,$(machine-sources))
objects = $(addsuffix .o,$(basename $(notdir $(sources))))
headers = cthreads.h
@@ -49,10 +49,13 @@ $(hurdinst)/lib/libthreads.a: libthreads.a
cp libthreads.a $@
$(RANLIB) $@
-$(headers)/cthreads.h: cthreads.h
+$(hurdinst)/include/cthreads.h: cthreads.h
cp $< $@
-install: $(hurdinst)/lib/libthreads.a $(headers)/cthreads.h
+$(hurdinst)/lib/malloc.o: malloc.o
+ cp $< $@
+
+install: $(hurdinst)/lib/libthreads.a $(hurdinst)/include/cthreads.h $(hurdinst)/lib/malloc.o
$(objects): cthreads.h cthread_internals.h options.h \
i386/asm.h