CC      = gcc -Zomf -Zmtd -DOS2EMX_PLAIN_CHAR -DDEBUG
CCFLAGS = -Wall -pedantic -I ../../include
LDFLAGS = -lstdcpp -lsocket -Zcrtdll
# -Xlinker -S
BINDIR  = ..\..\bin

.cpp.{$(BINDIR)}.obj:
    $(CC) $(CFLAGS) $(CCFLAGS) -c $(@B).cpp -o $(BINDIR)\$(@B).obj

OBJ  = $(BINDIR)\WINet-Test.obj \
       $(BINDIR)\WINet.obj \
       $(BINDIR)\WIURL.obj \
       $(BINDIR)\WIP_HTTP.obj \
       $(BINDIR)\WIP_HTTP_Response.obj \
       $(BINDIR)\WIP_HTTP_Header.obj \
       $(BINDIR)\WISocket.obj
OBJ1 = $(BINDIR)\bs_string.obj \
       $(BINDIR)\helpers\stringh.obj \
       $(BINDIR)\xstring.obj

all: WINet-Test

# The "dep" target: run fastdep on the sources.
# "nmake dep" gets called from src\makefile if nmake dep
# is running on the main makefile.
dep:
    $(RUN_FASTDEP) *.cpp
    @echo ----- Leaving $(MAKEDIR)

clean:
    del $(OBJ) *.exe

WINet-Test: $(OBJ) $(OBJ1) WINet-Test.def
    $(CC) $(CFLAGS) -o $(@B).Exe $(OBJ) $(OBJ1) WINet-Test.def $(LDFLAGS)

# The .OBJ-from-sources dependencies are now automatically
# created by "nmake dep" into the .depend include file.
# V0.9.12 (2001-05-30) [umoeller]

!ifndef NOINCLUDEDEPEND
!include .depend
!endif


