# compile PPortIoD with command-line utilities

TARGETOS=WIN95
APPVER=4.0

!include <win32.mak>

SETPRIVIOXP_OBJS = ..\SetPrivIoXP.obj ..\InstDriverXP.obj

all: PPortIoD.exe

clean:
    del PPortIoD.exe
    del PPortIoD.obj
    del PPortIoD.res
    del /q /f /s Release
    del /q /f /s Debug
    if exist Release rmdir Release
    if exist Debug rmdir Debug

# Update the resource if necessary

PPortIoD.res: PPortIoD.rc PPortIoD.h resource.h
    $(rc) /fo PPortIoD.res $(rcflags) $(rcvars) PPortIoD.rc

# Update the object file if necessary

PPortIoD.obj: PPortIoD.c PPortIoD.h
    $(cc) $(cflags) $(cvars) $(cdebug) PPortIoD.c

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

PPortIoD.exe: PPortIoD.obj PPortIoD.res $(SETPRIVIOXP_OBJS)
    $(link) $(linkdebug) $(guiflags) -out:PPortIoD.exe \
             PPortIoD.obj PPortIoD.res \
             $(SETPRIVIOXP_OBJS) \
             $(guilibs) shell32.lib

