shithub: scc

ref: 3bd6fb1ee5670440da8932a75dfe2ad114c30967
dir: /ld/Makefile/

View raw version
.POSIX:

PROJECTDIR = ..
include $(PROJECTDIR)/rules.mk
include $(LIBSCC)/libdep.mk

OBJ = main.o coff32.o obj.o

all: $(BINDIR)/ld

$(BINDIR)/ld: ld
	cp ld $@

ld: $(OBJ) $(LIBSCC)/libscc.a
	$(CC) $(SCC_LDFLAGS) $(OBJ) -lscc -o $@

dep:
	$(PROJECTDIR)/mkdep.sh

clean:
	rm -f $(BINDIR)/ld ld *.o

include deps.mk