shithub: scc

ref: 3bd6fb1ee5670440da8932a75dfe2ad114c30967
dir: /ar/Makefile/

View raw version
.POSIX:

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

OBJ       = main.o $(DRIVER)/driver.o
MOREFLAGS = -I$(DRIVER)

all: $(BINDIR)/ar

$(BINDIR)/ar: ar-$(DRIVER)
	cp ar-$(DRIVER) $@

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

dep:
	$(PROJECTDIR)/mkdep.sh

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

include deps.mk