From f4f39325fa22156691b19abf09162cbb80328f23 Mon Sep 17 00:00:00 2001 From: norly Date: Sun, 13 Jan 2013 18:43:13 +0000 Subject: Add examples for keyboard input. Integers and single characters. --- Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8cdac42..9d326b3 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ LDFLAGS= SRCDIR=src BINDIR=build -all: libmalice.o demo-printing +all: libmalice.o demo-printing demo-input-char demo-input-int libmalice.o: libmalice.asm nasm $(NASMFLAGS) -o $@ $< @@ -16,11 +16,18 @@ libmalice.o: libmalice.asm cc $(CFLAGS) -c -o $@ $< demo-printing: demo-printing.o libmalice.o - ld $(LDFLAGS) -nostdlib -e _lmStart -o demo-printing demo-printing.o libmalice.o + ld $(LDFLAGS) -nostdlib -e _lmStart -o $@ $^ + +demo-input-char: demo-input-char.o libmalice.o + ld $(LDFLAGS) -nostdlib -e _lmStart -o $@ $^ + +demo-input-int: demo-input-int.o libmalice.o + ld $(LDFLAGS) -nostdlib -e _lmStart -o $@ $^ -demos: demo-printing .PHONY : clean clean: rm -f *.o rm -f demo-printing + rm -f demo-input-char + rm -f demo-input-int -- cgit v1.2.3