shithub: scc

ref: c4e18492e995b3eeefe33495b7e7822a700c18d8
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