shithub: scc

Download patch

ref: 25bac1a306eed889cd22ac809776bf29fdef9078
parent: 94f52c8e839f1c5372ea532db9c8b91bd39d127c
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Aug 19 13:01:30 EDT 2019

[ld] Add library dependencies to Makefile

--- a/src/cmd/ld/Makefile
+++ b/src/cmd/ld/Makefile
@@ -9,12 +9,11 @@
        pass1.o \
        pass2.o \
        pass3.o \
+       pass4.o \
 
-
 all: $(TARGET)
 
-#TODO Add library dependencies
-$(TARGET): $(OBJS)
+$(TARGET): $(OBJS) $(LIBDIR)/libscc.a $(LIBDIR)/libmach.a
 	$(CC) $(SCC_LDFLAGS) $(OBJS) -lmach -lscc -o $@
 
 dep: inc-dep