shithub: scc

ref: 059ee8d668654371daeca95d67fc0c8626cddef1
dir: /src/cmd/ld/Makefile/

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

TARGET = $(BINDIR)/ld

OBJS =\
	main.o\
	symbol.o\
	section.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