diff --git a/lab-1/Makefile b/lab-1/Makefile index 84806d7..906bb34 100644 --- a/lab-1/Makefile +++ b/lab-1/Makefile @@ -11,9 +11,6 @@ default: fibseq fibseq: $(objects) $(CC) $(LDFLAGS) -o $@ $^ -fib.o: fib.s -fibseq.o: fibseq.c - %.o: %.c $(CC) -c $(CFLAGS) -o $@ $< @@ -24,11 +21,10 @@ clean: rm -f $(objects) fibseq QEMU_CMD = qemu-arm -L /usr/arm-linux-gnueabihf ./fibseq & -CMD = yes 9 | $(call QEMU_CMD) && sleep 1 qemu: fibseq - @yes 5 | $(call QEMU_CMD) - @sleep 1 - @yes 6 | $(call QEMU_CMD) - @sleep 1 - @yes 7 | $(call QEMU_CMD) - @sleep 1 + test=1 ; while [ $$test -le 100 ] ; do \ + yes $$test | $(call QEMU_CMD) \ + sleep 1; \ + test=`expr $$test + 1`; \ + done +