########################################## # JAM byte code player ########################################## -include ../config.mk CROSSCC = arm-linux-gcc CFLAGS = -O -Wall CROSSSTRIP = arm-linux-strip objects = jbistub.o jbimain.o jbicomp.o jbijtag.o all : jbi jbi : $(objects) $(CROSSCC) $(objects) -o $@ $(CROSSSTRIP) $@ jbistub.o: jbistub.c jbiexprt.h jbimain.o: jbimain.c jbiport.h jbiexprt.h jbijtag.h jbicomp.h jbicomp.o: jbicomp.c jbiport.h jbiexprt.h jbicomp.h jbijtag.o: jbijtag.c jbiport.h jbiexprt.h jbijtag.h install: all cp jbi $(BINPATH) uninstall: clean ( cd $(BINPATH) ; rm -f jbi ) clean: rm -f $(objects) jbi distclean: uninstall rm -f ./*~ # # changing the implicit rule for object files # %.o : %.c $(CROSSCC) -c $(CFLAGS) $< -o $@