# makefile

NASM=nasmw
NFLAGS=-fobj
ALINK=alink
AFLAGS=-oPE -c
GORC=gorc
GFLAGS=/r
OBJS=ipsexew.obj crc32.obj
RES=ipsexew.res

ipsexew.exe: $(OBJS) $(RES)
	$(ALINK) $(AFLAGS) $(OBJS) $(RES) -o $@

%.obj: %.asm ipsexew.inc
	$(NASM) $(NFLAGS) $< -o $@

%.res: %.rc
	$(GORC) $(GFLAGS) /ro $@ $<
