# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
# ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
# PARTICULAR PURPOSE.
#
# Copyright (C) 1993 - 1995  Microsoft Corporation.  All Rights Reserved.
#
#
# Processor independent makefile

# Nmake macros for building Windows 32-Bit apps
!include <ntwin32.mak>

PROJ = directory

all: $(PROJ).exe

# Define project specific macros
PROJ_OBJS  = main.obj initproc.obj wndproc.obj treeview.obj	dir.obj
BASE_OBJS  = 
EXTRA_LIBS = version.lib comctl32.lib
GLOBAL_DEP = globals.h resource.h
RC_DEP     = resource.h states.bmp images.bmp

# Dependencies
main.obj:	  main.c     $(GLOBAL_DEP)
initproc.obj: initproc.c $(GLOBAL_DEP)
wndproc.obj:  wndproc.c  $(GLOBAL_DEP)
treeview.obj: treeview.c $(GLOBAL_DEP)
dir.obj:      dir.c      $(GLOBAL_DEP)


# Inference rule for updating the object files
.c.obj:
  $(cc) $(cdebug) $(cflags4) $(cvars) $*.c

# Build rule for resource file
$(PROJ).res: $(PROJ).rc $(RC_DEP)
    $(rc) $(rcflags) $(rcvars) /fo $(PROJ).res $(PROJ).rc

# Build rule for EXE
$(PROJ).EXE: $(BASE_OBJS) $(PROJ_OBJS) $(PROJ).res
    $(link) $(linkdebug) $(guilflags4) \
    $(BASE_OBJS) $(PROJ_OBJS) $(PROJ).res $(guilibs) $(EXTRA_LIBS) \
    -out:$(PROJ).exe $(MAPFILE)



# Rules for cleaning out those old files
clean:
    del *.bak *.pdb *.obj *.res *.exp *.map *.sbr *.bsc

