# Where is your compiler installed?
COMPPATH=c:\watcom

#################################################################
# In normal cases, no other settings should be changed below!!! #
#################################################################

CC = wcc
LINKER = wcl

CFLAGS = -ml -0 -fpi -bt=dos -s -i=$(COMPPATH)\h

LINKLINE= getopt.obj regex.obj

all:	.SYMBOLIC
	@echo Please specify 'ssh1' or 'ssh2' as target

ssh1:	.SYMBOLIC
	$(CC) $(CFLAGS) -DSSHDOS ssh.c
	$(CC) $(CFLAGS) getopt.c
	$(CC) $(CFLAGS) regex.c
	$(LINKER) ssh.obj getopt.obj regex.obj

ssh2:	.SYMBOLIC
	$(CC) $(CFLAGS) -DSSH2DOS ssh.c
	$(CC) $(CFLAGS) getopt.c
	$(CC) $(CFLAGS) regex.c
	$(LINKER) ssh.obj getopt.obj regex.obj

clean: .SYMBOLIC
	del *.obj
	del ssh.exe
