#
#  MAKE file for BALLSRV program
#

# ---- Compiler & Linker options ----
clopts=-c -Gws -Zip -Od -W3 
linkopts= /align:16 /NOD /NOE /CO


# ---- List of object files ----
objfiles=BALLSRV.obj wndproc.obj initproc.obj ddeproc.obj


# ---- Actual build dependencies ----
all: BALLSRV.exe

BALLSRV.res: BALLSRV.rc lbicon.ico svricon.ico BALLSRV.dlg
    rc -r BALLSRV.rc

BALLSRV.obj: BALLSRV.c BALLSRV.h initproc.h wndproc.h
    cl $(clopts) BALLSRV.c

initproc.obj: initproc.c initproc.h wndproc.h globals.h BALLSRV.h
    cl $(clopts) initproc.c

ddeproc.obj: ddeproc.c globals.h wndproc.h 
    cl $(clopts) ddeproc.c

wndproc.obj: wndproc.c wndproc.h BALLSRV.h globals.h ddeproc.h
    cl $(clopts) wndproc.c

BALLSRV.exe:: $(objfiles) makefile BALLSRV.def BALLSRV.res
    link $(linkopts) $(objfiles), BALLSRV, NUL, slibcew libw ddeml, BALLSRV
    rc BALLSRV.res
    
BALLSRV.exe:: BALLSRV.res
    rc -T -30 BALLSRV.res

##### Clean Directory #####
clean:
    -del *.obj
    -del *.res
    -del *.map
    -del *.sym
