# Makefile for the example CGI script programs for HTTPS

!include <ntwin32.mak>

# Main targets

default: eg1$(CPU).exe eg2$(CPU).exe

clean:
    del *.obj *.bak

# Intermediate targets

egsource.zip:   egscrpt1.c egscrpt2.c makefile egscript.txt
    zip egsource.zip $**

egscrpt1-$(CPU).obj: egscrpt1.c
    $(cc) $(cdebug) $(cflags) $(cvars) -Fo$@ egscrpt1.c

egscrpt2-$(CPU).obj: egscrpt2.c
    $(cc) $(cdebug) $(cflags) $(cvars) -Fo$@ egscrpt2.c

eg1$(CPU).exe: egscrpt1-$(CPU).obj
    $(link) $(linkdebug) $(conflags) -out:$@ $** $(conlibs)

eg2$(CPU).exe: egscrpt2-$(CPU).obj
    $(link) $(linkdebug) $(conflags) -out:$@ $** $(conlibs)

# Rules

.c.obj:
    $(cc) $(cdebug) $(cflags) $(cvars) $*.c

