[24] | 1 | #---------------------------------------------------------- |
---|
[68] | 2 | #-----[ Unix Commands ]------------------------------------ |
---|
[24] | 3 | #---------------------------------------------------------- |
---|
| 4 | |
---|
[13] | 5 | ECHO = echo |
---|
| 6 | MKDIR = mkdir -p |
---|
| 7 | TEST = test |
---|
| 8 | DATE = date +%Y%m%d-%H%M%S |
---|
| 9 | CP = cp |
---|
[78] | 10 | MV = mv |
---|
[13] | 11 | CAT = cat |
---|
| 12 | LS = ls |
---|
[52] | 13 | LINK_SYMBOLIC = ln -s |
---|
[13] | 14 | RM = rm -fr |
---|
| 15 | PWD = `pwd` |
---|
| 16 | MAKE = make -s |
---|
| 17 | AR = ar -v |
---|
| 18 | RANLIB = ranlib |
---|
| 19 | BASENAME = basename |
---|
| 20 | GREP = grep |
---|
| 21 | GREP_NOT = egrep -v |
---|
| 22 | TR = tr |
---|
| 23 | UPPERtoLOWER = $(TR) [:lower:] [:upper:] |
---|
[81] | 24 | DIST_CC = distcc |
---|
| 25 | CC_FLAGS_COMMON = -O3 \ |
---|
[78] | 26 | -g3 \ |
---|
| 27 | -Wall \ |
---|
| 28 | -Wunused |
---|
[81] | 29 | DISTCXX = export LANG=C; $(DIST_CC) g++-3.4 |
---|
| 30 | CXX = export LANG=C; g++-3.4 |
---|
| 31 | CXX_FLAGS = $(CC_FLAGS_COMMON) |
---|
| 32 | DISTCC = export LANG=C; $(DIST_CC) gcc-3.4 |
---|
| 33 | CC = export LANG=C; gcc-3.4 |
---|
| 34 | CC_FLAGS = $(CC_FLAGS_COMMON) |
---|
[18] | 35 | SED = sed |
---|
| 36 | TOUCH = touch |
---|
[48] | 37 | VALGRIND = valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --leak-resolution=high |
---|
[18] | 38 | # Commands to generate all documents |
---|
| 39 | FIG2EPS = fig2dev -L eps |
---|
[48] | 40 | EPS2PNG = convert -quality 0 |
---|
[18] | 41 | LATEX = latex |
---|
| 42 | BIBTEX = bibtex |
---|
| 43 | MAKEINDEX = makeindex |
---|
| 44 | DVIPS = dvips -Ppdf |
---|
| 45 | PS2PDF = ps2pdf |
---|
| 46 | GNUPLOT = gnuplot |
---|
| 47 | # Commands to view the document |
---|
| 48 | VIEWDVI = xdvi |
---|
| 49 | VIEWPS = gv |
---|
| 50 | VIEWPDF = xpdf |
---|
[78] | 51 | VIEWPDF_FS = $(VIEWPDF) -fullscreen |
---|
[13] | 52 | |
---|
[24] | 53 | #---------------------------------------------------------- |
---|
[68] | 54 | #-----[ tools ]-------------------------------------------- |
---|
[24] | 55 | #---------------------------------------------------------- |
---|
[13] | 56 | |
---|
[24] | 57 | include $(MORPHEO_TOPLEVEL)/Makefile.tools_path |
---|
| 58 | |
---|
[68] | 59 | #-----[ systemc ]------------------------------------------ |
---|
[13] | 60 | SYSTEMC_INCDIR_systemc = -I$(SYSTEMC_systemc)/include |
---|
| 61 | SYSTEMC_LIBDIR_systemc = -L$(SYSTEMC_systemc)/lib-linux |
---|
| 62 | SYSTEMC_LIBNAME_systemc = -lsystemc |
---|
| 63 | SYSTEMC_CFLAGS_systemc = |
---|
| 64 | SYSTEMC_EXEC_PARAMS_systemc = |
---|
| 65 | |
---|
[68] | 66 | #-----[ systemcass ]--------------------------------------- |
---|
[13] | 67 | SYSTEMC_INCDIR_systemcass = -I$(SYSTEMC_systemcass)/include |
---|
| 68 | SYSTEMC_INCDIR_systemcass_deps = $(SYSTEMC_INCDIR_systemcass) |
---|
| 69 | |
---|
| 70 | SYSTEMC_LIBDIR_systemcass = -L$(SYSTEMC_systemcass)/lib |
---|
| 71 | SYSTEMC_LIBDIR_systemcass_deps = $(SYSTEMC_LIBDIR_systemcass) |
---|
| 72 | |
---|
[81] | 73 | SYSTEMC_LIBNAME_systemcass = -lsystemc_g++ -ldl |
---|
[13] | 74 | SYSTEMC_LIBNAME_systemcass_deps = $(SYSTEMC_LIBNAME_systemcass) |
---|
| 75 | |
---|
| 76 | SYSTEMC_CFLAGS_systemcass = -rdynamic -ansi -Wno-long-long |
---|
| 77 | SYSTEMC_CFLAGS_systemcass_deps = $(SYSTEMC_CFLAGS_systemcass) |
---|
| 78 | |
---|
| 79 | SYSTEMC_EXEC_PARAMS_systemcass = --nobanner |
---|
[68] | 80 | SYSTEMC_EXEC_PARAMS_systemcass_deps = $(SYSTEMC_EXEC_PARAMS_systemcass) --p --t --d |
---|
[13] | 81 | |
---|
[68] | 82 | #-----[ xilinx ]------------------------------------------- |
---|
| 83 | XILINX_ENV = . $(XILINX)/settings.sh |
---|
[13] | 84 | |
---|
[68] | 85 | #-----[ Modeltech ]---------------------------------------- |
---|
[50] | 86 | MODELTECH_ENV = export LM_LICENSE_FILE=$(MODELTECH_LICENCE) |
---|
[13] | 87 | MODELTECH_BIN = $(MODELTECH)/bin |
---|
| 88 | MODELTECH_VLIB = $(MODELTECH_ENV); $(MODELTECH_BIN)/vlib |
---|
| 89 | MODELTECH_VCOM = $(MODELTECH_ENV); $(MODELTECH_BIN)/vcom |
---|
| 90 | MODELTECH_VSIM = $(MODELTECH_ENV); $(MODELTECH_BIN)/vsim -c -do "run -all; quit" |
---|
| 91 | |
---|
[68] | 92 | #-----[ or1k ]--------------------------------------------- |
---|
[13] | 93 | OR1K_INCDIR = -I$(OR1K)/include |
---|
| 94 | OR1K_LIBDIR = -L$(OR1K)/lib |
---|
| 95 | OR1K_LIBNAME = -liberty |
---|
| 96 | OR1K_BIN = $(OR1K)/bin |
---|
| 97 | |
---|
[68] | 98 | #-----[ newlib ]------------------------------------------- |
---|
[48] | 99 | |
---|
[68] | 100 | #-----[ qt ]----------------------------------------------- |
---|
[48] | 101 | QT_BIN = $(QT)/bin |
---|
| 102 | QT_INCDIR = $(QT)/include |
---|
| 103 | QT_LIBDIR = $(QT)/lib |
---|
| 104 | QT_LIBNAME = |
---|