######################################################################
#	Copyright 1991 FTP Software, Inc.  All rights reserved.
#
# Makefile:
#  trans.exe : installation program to translate old PC/TCP config info
#    (using ipcust.sys and ifcust.sys files) to new PCTCP.INI config file.
#  set_win.exe : illustrates access to the PCTCP config file.
#
#  07-21-92  rcq  added sample.exe and removed unix-make specific commands
#  08-19-92  rcq  renamed sample.c to setwin.c to match docs
#  09-09-92  rcq  renamed setwin.c to set_win.c to *really* match docs
#
##############################################################################

CFLAGS = -nologo -Ox
# for debugging
#CFLAGS = -Gs -Od -W4 -Zd -Zi

LFLAGS	= /m /li /noe

# By default, these programs are small model.  As an example, it is useful
#  to show procedures for building both small and large model.  Other memory
#  models are left as an exercise for the reader (see BUILTINS.MAK if you're
#  using a UNIX-compatible make -OR- TOOLS.INI if you are using MSC NMAKE
#  for more information on the way we do it).
LIBS =  sif_info spc snetlib sconfig slibce 
LLIBS = lif_info lpc lnetlib lconfig llibce 

all:	trans.exe  set_win.exe
large: ltrans.exe lset_win.exe

trans.exe: trans.so
	link /stack:10000 $(LFLAGS) trans.so,,, $(LIBS);

ltrans.exe: trans.lo 
	link /stack:10000 $(LFLAGS) trans.lo,ltrans,, $(LLIBS);

set_win.exe: set_win.so
	link /stack:4000 $(LFLAGS) set_win.so,,, $(LIBS);

lset_win.exe: set_win.lo
	link /stack:4000 $(LFLAGS) set_win.lo,lset_win,, $(LLIBS);

clean:
	del *.?o
	del *.map

cleanall: clean
	del *.exe

