shithub: scc

ref: 0c6b04d3013c4dd19b64803c89e20ace6517d38b
dir: /ar/Makefile/

View raw version
.POSIX:

LIBDIR    = ../lib/scc
include ../config.mk
include $(LIBDIR)/libdep.mk

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

all: ar-$(DRIVER)

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

main.o: ../inc/scc.h ../inc/ar.h

$(DRIVER)/stat.o: $(DRIVER)/stat.h

$(LIBDIR)/libscc.a: $(LIB-OBJ)
	cd $(LIBDIR) && $(MAKE)

main.o: $(DRIVER)/stat.h

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

distclean: clean