#===================================================================
#
#   Copyright 1991 IBM Corporation
#
#===================================================================

#
# Comment out or delete the .inc file you don't want
# IBMSAMP.INC - sets up for IBM/C2  Compiler
#
include ..\ibmsamp.inc
HEADERS = 

CC         = icc $(BETA_DEFINES) $(STD_DEFINES) /c /Gd- /Se /Re /ss /Ms /Gm+ /Q+ /Ti+
LFLAGS   = /NOE /NOD /ALIGN:32 /nologo /BASE:0x10000 /CO

#===================================================================
#
#   A list of all of the object files
#
#===================================================================

ALL_IPF =

#-------------------------------------------------------------------
#   This section lists all files to be built by the make.  The
#   makefile builds the executible as well as its associated help
#   file.
#-------------------------------------------------------------------
all: client.exe server.exe

client: client.exe
server: server.exe

#-------------------------------------------------------------------
#   This section creates the command file used by the linker.  This
#   command file is recreated automatically every time you change
#   the object file list, linker flags, or library list.
#-------------------------------------------------------------------

server.lnk: makefile
    echo server.obj                > server.lnk
    echo server.exe              >> server.lnk
    echo server.map              >> server.lnk
    echo $(MTLIBS)               >> server.lnk
    echo server.def;             >> server.lnk


client.lnk: makefile
    echo client.obj                > client.lnk
    echo client.exe              >> client.lnk
    echo client.map              >> client.lnk
    echo $(MTLIBS)               >> client.lnk
    echo client.def;             >> client.lnk

#===================================================================
#
# Dependencies
#
#   This section lists all object files needed to be built for the
#   application, along with the files it is dependent upon (e.g. its
#   source and any header files).
#
#===================================================================

client.obj: client.c

client.exe:  client.obj client.def client.lnk 
	$(LINK) $(LFLAGS) @client.lnk 

server.obj: server.c

server.exe:  server.obj server.def server.lnk 
	$(LINK) $(LFLAGS) @server.lnk 



