# # global makefile # #GUI = yes GUI = no ifneq ($(OS), ) ifneq ($(AXIS_TOP_DIR), ) all: @echo " "; echo " " ; echo ==dim==; $(MAKE) -f makefile_dim all @echo " "; echo " " ; echo ==utilities==; $(MAKE) -f makefile_util all @echo " "; echo " " ; echo ==examples==; $(MAKE) -f makefile_examples all else all: @echo WARNING: If you are trying to compile DIM for Etrax, call init_env of your Axis devboard software first or try setting ARCH=etrax and call make again. @echo If you want to compile for x86 only, try setting ARCH=x86 if not set already and compile again. @echo " "; echo " " ; echo ==dim==; $(MAKE) -f makefile_dim all @echo " "; echo " " ; echo ==utilities==; $(MAKE) -f makefile_util all @echo " "; echo " " ; echo ==examples==; $(MAKE) -f makefile_examples all endif else all: @echo ERROR: OS is not set. Please call setupEnvEtrax or setupEnvX86, regarding to which architecture you want to compile, or set OS, ARCH, DIMDIR and ODIR yourself! endif ifneq ($(GUI),no) echo " "; echo " " ; echo ==did==; $(MAKE) THREADS=no -f makefile_did all endif test: @echo " "; echo " " ; echo ==dim test==; $(MAKE) -f makefile_dim test # Test, if ODIR is set before trying to clean up. ifneq ($(ODIR),) clean: /bin/rm -f $(ODIR)/*.o core *~ cd src; /bin/rm -f core *~ cd src/did; /bin/rm -f core *~ cd src/examples; /bin/rm -f core *~ cd src/util; /bin/rm -f core *~ # cd src/utilities; /bin/rm -f core *~ realclean: clean /bin/rm -f $(ODIR)/* endif