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