shithub: scc

ref: f5f5501c8ea833e2e40f4de72b733c4b50fe86dd
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 \


all: $(TARGET)

#TODO Add library dependencies
$(TARGET): $(OBJS)
	$(CC) $(SCC_LDFLAGS) $(OBJS) -lmach -lscc -o $@

dep: inc-dep

clean:
	rm -f $(OBJS)

include deps.mk