##############################################################
#
# Visual C++ v4.x Makefile for AppBar (MFC)
#
# You will need to set the LIBPATH and other variables
# In VC4.0, you do this by running VCVARS32.BAT found
# in the BIN dir.
#
########## Language
LANG=ENGLISH
#LANG=GERMAN

###### Uncomment if debug  ###############
#CDEBUG=-Zi
#LDEBUG=-debug

####### WinNT 3.x
#OPSYS=-D_WINNT

######  Static or shared library use
# Shared (requires MSVCRT4x.DLL and MFC4x.DLL)
#MFCDLL=-MD -D_AFXDLL
# Static (requires no DLLs)
MFCDLL=-MT

# minimize size, Pentium opt
CPPFLAGS=-nologo -G5 -Ox -DWIN32 $(MFCDLL) -D$(LANG) $(CDEBUG) $(OPSYS)
LINKAPP=-nologo -subsystem:windows -machine:IX86 -out:AppBar.exe $(LDEBUG)

# Win32 Libraries
LIBS=kernel32.lib gdi32.lib winmm.lib user32.lib shell32.lib \
     advapi32.lib comdlg32.lib ole32.lib uuid.lib

CFILES =    AppBar.cpp    \
	    AboutDlg.obj  \
	    AppBarWin.cpp \
	    EditDlg.cpp   \
	    OptDlg.cpp    \
	    NewApp.cpp    \
	    NewMenu.cpp   \
	    Misc.cpp

OBJS =      AppBar.obj    \
	    AboutDlg.obj  \
	    AppBarWin.obj \
	    EditDlg.obj   \
	    NewApp.obj    \
	    OptDlg.obj    \
	    NewMenu.obj   \
	    Misc.obj

all: appbar.exe

#appbar.res: appbar-$(LANG).rc
#    rc -r appbar-$(LANG).rc

#.obj: .cpp
#    cl $(CPPFLAGS) $<

appbar.exe: $(OBJS) appbar-$(LANG).res
    link $(LINKAPP) -out:appbar.exe appbar-$(LANG).res $(OBJS) $(LIBS)

clean:
    del *.obj
    del *.res
    del *.exe

