shithub: scc

ref: cc8fd34873b779bedd6d54445fae80e3fb27ce13
dir: /src/cmd/ld/Makefile/

View raw version
.POSIX:
PROJECTDIR = ../../..
include $(PROJECTDIR)/scripts/rules.mk

TARGET = $(BINDIR)/ld

OBJS = main.o \
       symbol.o \
       pass1.o \
       pass2.o \
       pass3.o \
       pass4.o \
       pass5.o \

all: $(TARGET)

$(TARGET): $(OBJS) $(LIBDIR)/libscc.a $(LIBDIR)/libmach.a
	$(CC) $(SCC_LDFLAGS) $(OBJS) -lmach -lscc -o $@

dep: inc-dep

clean:
	rm -f $(OBJS)

include deps.mk