CFLAGS =-s -O6 -Wall CC =gcc SHELL =/bin/sh all: ReCoder Eng2Alt perled ReCoder: ReCoder.c ReCoder.h tr.c tr.h $(CC) $(CFLAGS) $@.c -o $@ tr.c Eng2Alt: Eng2Alt.c Eng2Alt.h $(CC) $(CFLAGS) $@.c -o $@ perled: perled.c ReCoder.h Eng2Alt.h -rm -f perl-???2??? perl-recoder $(CC) $(CFLAGS) $@.c -o $@ -perled -chmod +x perl-???2??? perl-recoder clean: -rm -f core gmon.out a.out *~ *.bak *.o *.e -rm -f shelled perled -rm -fr decode decode.tgz DECODE DECODE.zip distclean: clean -rm -f ReCoder Eng2Alt -rm -f perl-???2??? perl-recoder package: ReCoder -@if [ ! -d decode ] ; then mkdir decode ; fi -@cp Makefile ReCoder.[ch] tr.[ch] Eng2Alt.[ch] perled.c decode -@if [ ! -d DECODE ] ; then mkdir DECODE ; fi -@echo "Translating sources to DOS format..." -@ReCoder -u2d ReCoder.c DECODE/RECODER.C -@ReCoder -u2d ReCoder.h DECODE/RECODER.H -@ReCoder -u2d tr.c DECODE/TR.C -@ReCoder -u2d tr.h DECODE/TR.H -@ReCoder -u2d Eng2Alt.c DECODE/ENG2ALT.C -@ReCoder -u2d Eng2Alt.h DECODE/ENG2ALT.H -@zerotime.pl -r decode DECODE >/dev/null -@rm -f decode.tgz DECODE.zip -@echo -@echo "Making TAR-GZipped file: decode.tgz ..." -@tar -zcvf decode.tgz decode -@echo -@echo "Making ZIPped file: DECODE.zip ..." -@zip -r DECODE.zip DECODE -@rm -rf decode DECODE -@echo -@echo "Done." -@echo test: Eng2Alt ReCoder @for i in \ "\E\e\E\e" \ "tshchatel'no" \ "rascheska" \ "zoopark" \ "schast'e" \ "vetchina" \ "otzyv" \ "chastye" \ "chastyje" \ ; do \ echo $$i | ./Eng2Alt | ./ReCoder -a2k ;\ done