[13] | 1 | #-----[ Unix Commands ]------------------------------------ |
---|
| 2 | ECHO = echo |
---|
| 3 | EXPORT = export |
---|
[18] | 4 | EXIT = exit |
---|
[13] | 5 | MKDIR = mkdir -p |
---|
| 6 | TEST = test |
---|
| 7 | READ = read |
---|
| 8 | DATE = date +%Y%m%d-%H%M%S |
---|
| 9 | CD = cd |
---|
| 10 | CP = cp |
---|
| 11 | CAT = cat |
---|
| 12 | LS = ls |
---|
| 13 | RM = rm -fr |
---|
| 14 | PWD = `pwd` |
---|
| 15 | MAKE = make -s |
---|
| 16 | AR = ar -v |
---|
| 17 | RANLIB = ranlib |
---|
| 18 | BASENAME = basename |
---|
| 19 | GREP = grep |
---|
| 20 | GREP_NOT = egrep -v |
---|
| 21 | TR = tr |
---|
| 22 | UPPERtoLOWER = $(TR) [:lower:] [:upper:] |
---|
| 23 | CXX = export LANG=C; g++ |
---|
[18] | 24 | SED = sed |
---|
| 25 | TOUCH = touch |
---|
| 26 | # Commands to generate all documents |
---|
| 27 | FIG2EPS = fig2dev -L eps |
---|
| 28 | EPS2JPG = convert -quality 100 |
---|
| 29 | LATEX = latex |
---|
| 30 | BIBTEX = bibtex |
---|
| 31 | MAKEINDEX = makeindex |
---|
| 32 | DVIPS = dvips -Ppdf |
---|
| 33 | PS2PDF = ps2pdf |
---|
| 34 | GNUPLOT = gnuplot |
---|
| 35 | # Commands to view the document |
---|
| 36 | VIEWDVI = xdvi |
---|
| 37 | VIEWPS = gv |
---|
| 38 | VIEWPDF = xpdf |
---|
| 39 | VIEWPDF_FS = acroread |
---|
[13] | 40 | |
---|
| 41 | #-----[ tools ]-------------------------------------------- |
---|
| 42 | SOCLIB = /users/outil/soc/soclib/ |
---|
| 43 | SYSTEMC_systemc = /users/outil/systemc/systemc-2.1.v1/ |
---|
| 44 | SYSTEMC_systemcass = /users/outil/systemc/systemcass/systemcass/latest/i686-Linux.SLA4x/ |
---|
| 45 | SYSTEMC_systemcass_deps = $(SYSTEMC_systemcass) |
---|
| 46 | XILINX = /dsk/l1/misc/Xilinx91i/ |
---|
| 47 | MODELTECH = /users/outil/m1archi/modeltech/ |
---|
| 48 | OR1K = ../../Tools/or32-elf/ |
---|
| 49 | NEWLIB = ../../Tools/newlib-1.14.0 |
---|
| 50 | |
---|
| 51 | #-----[ soclib ]------------------------------------------- |
---|
| 52 | SOCLIB_INCDIR = -I$(SOCLIB)/include |
---|
| 53 | SOCLIB_LIBDIR = -L$(SOCLIB)/lib |
---|
| 54 | SOCLIB_LIBNAME = -lsoclib |
---|
| 55 | SOCLIB_BIN = $(SOCLIB)/tools/bin-linux/ |
---|
| 56 | |
---|
| 57 | #-----[ systemc ]------------------------------------------ |
---|
| 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 | |
---|
| 64 | #-----[ systemcass ]--------------------------------------- |
---|
| 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 | |
---|
| 71 | SYSTEMC_LIBNAME_systemcass = -lsystemc |
---|
| 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 |
---|
| 78 | SYSTEMC_EXEC_PARAMS_systemcass_deps = $(SYSTEMC_EXEC_PARAMS_systemcass) --p |
---|
| 79 | |
---|
| 80 | #-----[ xilinx ]------------------------------------------- |
---|
| 81 | XILINX_ENV = source $(XILINX)/settings.sh |
---|
| 82 | |
---|
| 83 | #-----[ Modeltech ]---------------------------------------- |
---|
| 84 | MODELTECH_ENV = export LM_LICENSE_FILE=/users/soft/mentor/licence/etc/license.anacad |
---|
| 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 | |
---|
| 90 | #-----[ or1k ]--------------------------------------------- |
---|
| 91 | OR1K_INCDIR = -I$(OR1K)/include |
---|
| 92 | OR1K_LIBDIR = -L$(OR1K)/lib |
---|
| 93 | OR1K_LIBNAME = -liberty |
---|
| 94 | OR1K_BIN = $(OR1K)/bin |
---|
| 95 | |
---|
| 96 | #-----[ newlib ]------------------------------------------- |
---|