#CFLAGS = -c -AS -Gsw -Oas -W2 -Zpe /G2
#AFLAGS = /DmemS=1
#LFLAGS = /ALIGN:16

CFLAGS = -c -AS -Gsw -Od -W2 -Zipe -DDEBUG /G2
AFLAGS = /Zi /DmemS=1 /DDEBUG
LFLAGS = /CO /ALIGN:16

test.exe: test.obj test2.obj test.def test.res toolhelp.lib
	link $(LFLAGS) @<<
		test test2
		test.exe
		test.map/map,
		TOOLHELP.LIB SLIBCEW.LIB LIBW.LIB/NOE/NOD
		test.def
<<
	rc -t test.res test.exe
	mapsym test.map

.c.obj:
	cl $(CFLAGS) $*.c

.asm.obj:
	masm $(AFLAGS) $*.asm;

.rc.res:
	rc -r $*.rc

