# predefine
GUISTARTUP=c0w32.obj
LIBS=import32.lib cw32.lib
CFLAGS=-c -tW
LFLAGS=-aa -L$(LIBPATH)

# the first rule will be made by default
all: poem.exe

poepoem.obj: poepoem.cpp
		bcc32 $(CFLAGS) poepoem.cpp

poepoem.res: poepoem.rc
		brc32 -r poepoem.rc

poem.exe: poepoem.obj poepoem.res
		ilink32 $(LFLAGS) $(GUISTARTUP) poepoem.obj, poem.exe,, $(LIBS),, poepoem.res
