shithub: scc

ref: 9f051be97f07bbb71ae4394a91f74ed5acbb007a
dir: /objdump/Makefile/

View raw version
.POSIX:

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

OBJ       = main.o 

all: objdump
	cp objdump $(PROJECTDIR)/rootdir/bin

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

main.o: $(PROJECTDIR)/inc/scc.h $(PROJECTDIR)/inc/myro.h $(PROJECTDIR)/inc/arg.h

dep:
clean:
	rm -f objdump *.o

distclean: clean