shithub: scc

ref: 8f241ba283b03cd4dffcd8bc1753bb3f500949f5
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