!include <ntwin32.mak>

all: b4dmsg.dll

the_dll.obj: the_dll.c
      $(cc) $(cdebug) $(cflags) $(cvars) the_dll.c

b4dmsg.rc: b4dmsg.mc
	mc b4dmsg.mc

b4dmsg.rbj: b4dmsg.rc 
      rc -r -fo b4dmsg.res b4dmsg.rc
      cvtres -$(CPU) b4dmsg.res -o b4dmsg.rbj

b4dmsg.dll: b4dmsg.def b4dmsg.rbj the_dll.obj
      $(link) $(linkdebug) \
      -base:0x1C000000     \
      -dll                 \
      -entry:DLLEntryPoint$(DLLENTRY) \
      -out:b4dmsg.dll     \
      b4dmsg.rbj the_dll.obj $(guilibs)

main.exe: main.obj main.def
      $(cvtobj) $(cvtdebug) *.obj
      $(link) $(linkdebug) $(guiflags) -out:main.exe main.obj $(guilibs)
