Added makefile for iocla1

This commit is contained in:
lucic71 2020-05-07 10:07:09 +03:00
parent 4521ed9614
commit a2d8c3e8fa
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
CFLAGS=-m32
AFLAGS=-f elf
build: tema1
tema1: tema1.o includes/ASTUtils.o includes/macro.o
gcc $^ -o $@ $(CFLAGS)
tema1.o: tema1.asm
nasm $^ -o $@ $(AFLAGS)
clean:
rm -rf tema1.o tema1
test: build
gdb tema1 -ex 'start'