"Fossies" - the Fresh Open Source Software Archive

Member "erltools/misc/erlmsch/makefile.uni" (3 Jun 2004, 1379 Bytes) of package /linux/misc/old/erltools-4.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 all : m_done erlmsch
    3 
    4 OPT_FLAGS=-DCHOPB
    5 
    6 include ../../makefile.inc
    7 
    8 clean : clean_inc_appli
    9 	- rm msch.h erlmsch msch.cc msch0.cc compute.cc chopper.cc
   10 
   11 m_done : msch.met $(META_DIR)/pub/cplusplu/cplus.met
   12 	-@ mkdir compile.dir
   13 	@cp msch.met compile.dir
   14 	@echo "metagen -c++ msch.met"
   15 	@( cd compile.dir ;\
   16 	  metagen -c++ -path $(META_DIR)/pub/chopb:$(META_DIR)/pub/cplusplu:$(META_DIR)/pub/library $(METAOPT) msch.met ;\
   17           unify msch.h ../msch.h;\
   18           unify msch.cpp ../msch.cc;\
   19 	  unify msch0.cpp ../msch0.cc;)
   20 	@echo "ok" > m_done
   21 
   22 msch.o : msch.cc msch.h
   23 
   24 msch0.o : msch0.cc msch.h
   25 
   26 chopper.cc : chopper.ch
   27 
   28 compute.cc : compute.ch
   29 
   30 chopper.o : chopper.cc $(META_DIR)/pub/library/token.h compute.h
   31 
   32 compute.o : compute.cc $(META_DIR)/pub/library/token.h compute.h msch.h
   33 
   34 CPLUS=$(META_DIR)/pub/cplusplu/chopper.o $(META_DIR)/pub/cplusplu/cplus.a
   35 CHOPB=$(META_DIR)/pub/chopb/chopb.a
   36 OBJECTS = msch.o msch0.o chopper.o compute.o
   37 SOURCE = chopper.ch compute.ch
   38 
   39 SO_LIB = -L $(META_DIR)/pub/cplusplu -lcplus -L $(META_DIR)/pub/chopb -lchopb  -L $(META_DIR)/pub/library -lmeta 
   40 
   41 erlmsch : $(OBJECTS) $(LIBRARY)
   42 	if [ -f $(META_DIR)/pub/library/libmeta.so ] ; then \
   43 		$(C_PLUS) -o erlmsch $(OBJECTS) $(META_DIR)/pub/cplusplu/chopper.o $(SO_LIB);\
   44 	else\
   45 		$(C_PLUS) -o erlmsch $(OBJECTS) $(CPLUS) $(CHOPB) $(LIBRARY);\
   46 	fi
   47 
   48 
   49 metric : 
   50 	erlscale -c $(SOURCE)
   51 
   52 
   53 
   54