#$Id: Makefile,v 1.1 2000/03/29 08:50:23 veit Exp $
#fix the tree (the \OS2\FIND.EXE will NOT work!!!):
#	\emx\bin\find . -type f -exec fixcrcr {} ;

# Remove the garbage fixcrcr.exe.tmp file in the toplevel directory.

#WARNING: The find command will apply fixcrcr to ALL files in the tree, and
#will thus also destroy existing binaries. If you have updated the tree
#from the repository, you have to "make clean" before recompiling, otherwise
#you will produce defective files.

RM = rm -f

CFLAGS = -Wall -W -Zomf -Zcrtdll -s -O2

all: fixcrcr.exe

fixtree: fixcrcr.exe
	\emx\bin\find . -type f -exec "fixcrcr {} ;"
	$(RM) *.tmp

fixcrcr.exe: fixcrcr.c libext/test/exe.def
	gcc $(CFLAGS) -o $@ $^

