shithub: scc

ref: 50d06031f803ff69ea1b44995d3bc47c6abc45ca
dir: /ar/Makefile/

View raw version
.POSIX:

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

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

all: ar-$(DRIVER)
	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)/driver.o: $(DRIVER)/driver.h

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

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

distclean: clean