# Copyright (c) 1992 Microsoft Corporation. All rights reserved.
# This line allows NMAKE to work as well

all: chg_accl.exe



# Defines

NAME = CHG_ACCL     #### NAME GOES HERE ######
OBJS = $(NAME).obj  draw.obj
LIBS = libw slibcew

CFLAGS = -c -W3 -AS -Gsw -Zipe -Od
LINKFLAGS = /NOD /NOE /CO /MAP
MAPSYM = mapsym $(NAME)


# Rules

.c.obj:
    cl $(CFLAGS) $*.c >$*.err
        
.asm.obj:
    masm $*.asm;



# Update the resource if necessary

chg_accl.res: chg_accl.rc chg_accl.ico
    rc -r chg_accl.rc


# Update the object files if necessary

chg_accl.obj:    chg_accl.c   chg_accl.h  globals.h
draw.obj:    draw.c   chg_accl.h  globals.h
#mainwnd.obj:    mainwnd.c   mainwnd.h  about.h   globals.h
#init.obj:       init.c      init.h     mainwnd.h globals.h
#about.obj:      about.c     about.h



# Update the executable file if necessary, and if so, add the resource back in.

chg_accl.exe:  $(OBJS) chg_accl.def chg_accl.res
   link $(LINKFLAGS)  $(OBJS),,,$(LIBS), $(NAME).def >link.err
   rc $(NAME).res
   del *.err
