###############################################################################
#
# Makefile
#
# Make program to build portable tools for the Aldor compiler
#
# Copyright Aldor.org 1990-2007.
#
###############################################################################
#
# These tools can built on various platforms and
# can be used to help build and test a compiler.
#
###############################################################################

CFLAGS=-nologo

BIN   = $(ALDORROOT)\bin
TOOLS = $(ALDORROOT)\toolbin

OKFILES		= Makefile echon.c txt2txt.c dosify macify unixify

all:	$(BIN)\echon.exe $(BIN)\txt2txt.exe 

clean:
	@ $(RM) *~

##############################################################################
#
# :: Portable tools
#
##############################################################################

# echon: Echo without newline for portable shell scripts.
$(BIN)\echon.exe: echon.c
	$(CC) $(CFLAGS) echon.c -Fe$(BIN)\echon.exe

# Convert any Mac/DOS/Unix text file into a Mac/DOS/Unix text file
$(BIN)\txt2txt.exe: txt2txt.c
	$(CC) $(CFLAGS) txt2txt.c -Fe$(BIN)\txt2txt.exe

