#################
# RAZE makefile #
#################

NASM = nasmw
NASMFLAGS = -w+orphan-labels

#############
# RAZE core #
#############

all: raze.o

# This pre-processes the .ASM file
raze2.asm: raze.asm raze.inc raze.reg
	$(NASM) $(NASMFLAGS) -e $< -o $@

# This assembles the file, once it's been pre-processed
raze.o: raze2.asm
	$(NASM) $(NASMFLAGS) -f win32 $< -o $@ -praze.reg
