diff options
author | norly <ny-git@enpas.org> | 2011-10-27 20:03:29 +0100 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2011-10-27 20:03:29 +0100 |
commit | 20ac18e7adb5f692ca888e13890c50c7e8e0e695 (patch) | |
tree | fc0b3bb313bf8f54df2cd21654420c437e4790a2 /Makefile | |
parent | 95749712f895db5246bc95c5904507748fc66ea0 (diff) |
Added C header and printing demo.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 17 insertions, 8 deletions
@@ -1,17 +1,26 @@ NASMFLAGS = -f elf +CINCLUDE= +CWARNS=-Wall -Wpointer-arith -Wnested-externs +CFLAGS=$(CINCLUDE) $(CWARNS) -O2 +LDFLAGS= -all: libmalice.o +SRCDIR=src +BINDIR=build + +all: libmalice.o demo-printing libmalice.o: libmalice.asm nasm $(NASMFLAGS) -o $@ $< +.c.o: + cc $(CFLAGS) -c -o $@ $< + +demo-printing: demo-printing.o libmalice.o + ld $(LDFLAGS) -nostdlib -e _lmStart -o demo-printing demo-printing.o libmalice.o + +demos: demo-printing + .PHONY : clean clean: rm -f *.o - -.PHONY : distclean -distclean: clean - rm -f *~ - -.PHONY : test -test: all + rm -f demo-printing |