shithub: scc

ref: ac7e083f2c70bde5e5361c8cf2fcf116ddc1b5f1
dir: /ar/Makefile/

View raw version
.POSIX:

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

OBJ       = main.o $(DRIVER)/driver.o
MORECFLAGS = -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