ref: e6baf91cf4a7df1de7d0d64688cf3f5ed0b89d1a
dir: /ar/Makefile/
.POSIX: PROJECTDIR = .. LIBDIR = $(PROJECTDIR)/lib/scc include $(PROJECTDIR)/rules.mk include $(LIBDIR)/libdep.mk OBJ = main.o $(DRIVER)/stat.c MOREFLAGS = -I$(DRIVER) all: ar-$(DRIVER) mkdir -p $(PROJECTDIR)/rootdir/bin cp ar-$(DRIVER) $(PROJECTDIR)/rootdir/bin/ar ar-$(DRIVER): $(OBJ) $(LIBDIR)/libscc.a $(CC) $(SCC_LDFLAGS) $(OBJ) -lscc -o $@ main.o: $(PROJECTDIR)/inc/scc.h $(PROJECTDIR)/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