shithub: scc

ref: 27b4662757e3d9a500b69a96057cef8fdeacca99
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)
STDCFLAGS  =

all: $(BINDIR)/ar

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

dep:
	$(PROJECTDIR)/mkdep.sh

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

include deps.mk