# ------------------------------------------------------------ # Compilation Specification File. Use GNU make !! # ------------------------------------------------------------ YCTOOL=yf2m yrms ylmodf yrcmt Ydf1 # ------------------------------------------------------------ CP=cp # ------------------------------------------------------------ CC=gcc CFLAGS=-O0 -lm -g -Wall CPP=g++ CPPFLAGS=-O0 -lm -g -Wall all: $(YCTOOL) install: all -@echo " " -@echo " --> Installation de Yao tools:" -@echo " --> verification/creation du repertoire d-installation ..." -@case `uname -s` in \ Linux) \ case `uname -m` in \ x86_64) \ mkdir ../bin/x86_64 ;; \ *) \ mkdir ../bin/lnx86 ;; \ esac;; \ SunOS) \ mkdir ../bin/solaris ;; \ Darwin) \ mkdir ../bin/darwin ;; \ *) echo "UNKNOWN LOCAL MACHINE TYPE ($(ULOCAL))";; \ esac -@echo " --> copie les outils compiles ..." @case `uname -s` in \ Linux) \ case `uname -m` in \ x86_64) \ echo " --> Linux 64 bits INSTALL ..."; \ $(CP) $(YCTOOL) ../bin/x86_64/ ;; \ *) \ echo " --> Linux 32 bits INSTALL ..."; \ $(CP) $(YCTOOL) ../bin/lnx86/ ;; \ esac;; \ SunOS) \ echo " --> Sun Solaris INSTALL ..."; \ $(CP) $(YCTOOL) ../bin/solaris/ ;; \ Darwin) \ echo " --> MacOS X Darwin INSTALL ..."; \ $(CP) $(YCTOOL) ../bin/darwin/ ;; \ *) echo "UNKNOWN LOCAL MACHINE TYPE ($(ULOCAL))";; \ esac clean: -rm -f *.o *.a $(YCTOOL)