Browse Source

Be certain that

Eric Andersen 23 years ago
parent
commit
ae9317047b
1 changed files with 7 additions and 1 deletions
  1. 7 1
      libc/sysdeps/linux/common/Makefile

+ 7 - 1
libc/sysdeps/linux/common/Makefile

@@ -48,7 +48,7 @@ all: $(STR_SYSCALLS) $(OBJ) $(LIBC)
 
 
 $(LIBC): ar-target
 $(LIBC): ar-target
 
 
-ar-target: $(OBJ) crti.o crtn.o
+ar-target: $(OBJ) $(TOPDIR)lib/crti.o $(TOPDIR)lib/crtn.o
 	$(AR) $(ARFLAGS) $(LIBC) $(OBJ)
 	$(AR) $(ARFLAGS) $(LIBC) $(OBJ)
 
 
 $(MOBJ): $(MSRC)
 $(MOBJ): $(MSRC)
@@ -67,10 +67,16 @@ crti.S crtn.S: initfini.s
 
 
 crti.o: crti.S
 crti.o: crti.S
 	$(CC) $(SAFECFLAGS) -c crti.S -o crti.o
 	$(CC) $(SAFECFLAGS) -c crti.S -o crti.o
+
+$(TOPDIR)lib/crti.o: crti.o
+	mkdir -p $(TOPDIR)lib/
 	cp crti.o $(TOPDIR)lib/
 	cp crti.o $(TOPDIR)lib/
 
 
 crtn.o: crtn.S
 crtn.o: crtn.S
 	$(CC) $(SAFECFLAGS) -c crtn.S -o crtn.o
 	$(CC) $(SAFECFLAGS) -c crtn.S -o crtn.o
+
+$(TOPDIR)lib/crtn.o: crtn.o
+	mkdir -p $(TOPDIR)lib/
 	cp crtn.o $(TOPDIR)lib/
 	cp crtn.o $(TOPDIR)lib/
 
 
 clean:
 clean: