Last change
on this file since 114 was
113,
checked in by rosiere, 15 years ago
|
1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile
|
-
Property svn:keywords set to
Id
|
File size:
2.2 KB
|
Rev | Line | |
---|
[77] | 1 | #-----[ Directory ]---------------------------------------- |
---|
[23] | 2 | DIR_DOC = doc |
---|
[2] | 3 | DIR_TEST = SelfTest |
---|
| 4 | |
---|
[77] | 5 | #-----[ Variable ]----------------------------------------- |
---|
[2] | 6 | OBJECTS = $(OBJECTS_COMMON) |
---|
| 7 | |
---|
[77] | 8 | #-----[ Rules ]-------------------------------------------- |
---|
[2] | 9 | .PRECIOUS : $(DIR_LIB)/%.a |
---|
[71] | 10 | #.NOTPARALLEL : clean help |
---|
[2] | 11 | |
---|
[113] | 12 | all_component : test_env $(DIR_OBJ) $(DIR_LIB) |
---|
| 13 | @\ |
---|
| 14 | $(MAKE) $(LIBRARY); |
---|
[2] | 15 | |
---|
[113] | 16 | # if simulator is modelsim, libComponent.a is a directory, else is normal library generated by g++ |
---|
| 17 | |
---|
| 18 | $(DIR_LIB)/%.a : $(SOURCES) $(HEADERS) |
---|
[48] | 19 | @\ |
---|
[113] | 20 | case "${SIMULATOR}" in \ |
---|
| 21 | "modelsim") \ |
---|
| 22 | $(MODELTECH_VLIB) $@; \ |
---|
| 23 | $(MODELTECH_SCCOM) $(CFLAGS) $(SOURCES) -work $@; \ |
---|
| 24 | ;; \ |
---|
| 25 | *) \ |
---|
| 26 | $(MAKE) $(OBJECTS); \ |
---|
| 27 | $(ECHO) "Archive : $*"; \ |
---|
| 28 | $(AR) -r $@ $(OBJECTS); \ |
---|
| 29 | $(RANLIB) $@; \ |
---|
| 30 | ;; \ |
---|
| 31 | esac; |
---|
[2] | 32 | |
---|
| 33 | $(DIR_LIB) : |
---|
[48] | 34 | @\ |
---|
| 35 | $(ECHO) "Create directory : $@";\ |
---|
| 36 | $(MKDIR) $@; |
---|
[2] | 37 | |
---|
[23] | 38 | document : |
---|
| 39 | @$(MAKE) --directory=$(DIR_DOC) --makefile=Makefile |
---|
| 40 | |
---|
[2] | 41 | component_clean : |
---|
[113] | 42 | @$(RM) $(LIBRARY) |
---|
[88] | 43 | # if $(TEST) -d $(DIR_DOC); then $(MAKE) --directory=$(DIR_DOC) --makefile=Makefile clean; fi; |
---|
| 44 | |
---|
| 45 | component_clean_all : component_clean |
---|
[113] | 46 | @$(RM) $(DIR_LIB) |
---|
[88] | 47 | # if $(TEST) -d $(DIR_DOC); then $(MAKE) --directory=$(DIR_DOC) --makefile=Makefile clean_all; fi; |
---|
[2] | 48 | |
---|
| 49 | component_help : |
---|
[48] | 50 | @\ |
---|
[77] | 51 | $(ECHO) " -----[ Component ]----------------------------------";\ |
---|
[48] | 52 | $(ECHO) "";\ |
---|
| 53 | $(ECHO) " * all_component : compile all c++ file and generate library";\ |
---|
| 54 | $(ECHO) " * document : Generate documantation";\ |
---|
| 55 | $(ECHO) " * clean : Erase all generate files";\ |
---|
| 56 | $(ECHO) " * help : print this text";\ |
---|
| 57 | $(ECHO) ""; |
---|
[2] | 58 | |
---|
| 59 | help : |
---|
[48] | 60 | @\ |
---|
| 61 | $(MAKE) common_help;\ |
---|
| 62 | $(MAKE) component_help; |
---|
| 63 | |
---|
[2] | 64 | clean : |
---|
[48] | 65 | @\ |
---|
| 66 | $(MAKE) common_clean ;\ |
---|
[88] | 67 | $(MAKE) component_clean; |
---|
| 68 | |
---|
[113] | 69 | clean_all : |
---|
[88] | 70 | @\ |
---|
| 71 | $(MAKE) common_clean_all ;\ |
---|
| 72 | $(MAKE) component_clean_all; |
---|
Note: See
TracBrowser
for help on using the repository browser.