shithub: scc

ref: 1fcd39f3a818478f4d7da9bb333e02d06531ddd4
dir: /ld/Makefile/

View raw version
.POSIX:

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

OBJ = main.o coff32.o obj.o
LIB = $(LIBDIR)/libscc.a $(LIBDIR)/libcoff32.a
TARGET = $(BINDIR)/ld

all: $(TARGET)

$(TARGET): $(OBJ) $(LIB)
	$(CC) $(SCC_LDFLAGS) $(OBJ) -lcoff32 -lscc -o $@

dep:
	$(PROJECTDIR)/mkdep.sh

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

include deps.mk