Last change
on this file since 113 was
113,
checked in by rosiere, 16 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:
1.7 KB
|
Rev | Line | |
---|
[113] | 1 | include Makefile.defs |
---|
[78] | 2 | |
---|
| 3 | #-----[ Rules ]-------------------------------------------- |
---|
| 4 | |
---|
[88] | 5 | vpath %.h $(DIR_INC) |
---|
| 6 | vpath %.c $(DIR_SRC) |
---|
| 7 | vpath %.cpp $(DIR_SRC):$(DIR_TST) |
---|
| 8 | vpath %.o $(DIR_OBJ) |
---|
| 9 | |
---|
[113] | 10 | .PRECIOUS : $(DIR_OBJ)/$(ENTITY)_%.o $(DIR_BIN)/%.x |
---|
[78] | 11 | |
---|
| 12 | test_env : |
---|
[81] | 13 | @\ |
---|
| 14 | $(ECHO) "-------------------| $(ENTITY)" |
---|
[78] | 15 | |
---|
[113] | 16 | $(DIR_OBJ)/$(ENTITY)_%.o : %.cpp $(HEADERS) |
---|
[78] | 17 | @\ |
---|
| 18 | $(ECHO) "Compilation : $*";\ |
---|
[85] | 19 | $(CXX) $(MORPHEO_CXX_FLAGS) -c -o $@ $<; |
---|
[78] | 20 | |
---|
[113] | 21 | $(DIR_OBJ)/$(ENTITY)_%.o : %.c $(HEADERS) |
---|
[81] | 22 | @\ |
---|
| 23 | $(ECHO) "Compilation : $*";\ |
---|
[85] | 24 | $(CC) $(MORPHEO_CC_FLAGS) -c -o $@ $<; |
---|
[81] | 25 | |
---|
[113] | 26 | $(DIR_BIN)/%.x : $($(ENTITY)_OBJECTS_DEPS) $(OBJECTS_BIN) |
---|
| 27 | @\ |
---|
[78] | 28 | $(ECHO) "Compilation : $*";\ |
---|
[81] | 29 | $(CXX) $(MORPHEO_L_FLAGS) -o $@ $^ $(LIBNAME); |
---|
[78] | 30 | |
---|
| 31 | $(DIR_OBJ) : |
---|
| 32 | @\ |
---|
| 33 | $(ECHO) "Create directory : $@";\ |
---|
| 34 | $(MKDIR) $@ |
---|
| 35 | |
---|
| 36 | $(DIR_BIN) : |
---|
| 37 | @\ |
---|
| 38 | $(ECHO) "Create directory : $@";\ |
---|
| 39 | $(MKDIR) $@ |
---|
| 40 | |
---|
| 41 | |
---|
[88] | 42 | exe : all $(DIR_BIN) |
---|
[78] | 43 | @\ |
---|
[88] | 44 | $(MAKE) $(EXE); \ |
---|
| 45 | export SYSTEMC=$(SYSTEMC_$(SIMULATOR)) ; $(EXEC_PREFIX) $(EXE) $(SYSTEMC_EXEC_PARAMS_$(SIMULATOR)) |
---|
[78] | 46 | |
---|
[81] | 47 | |
---|
[88] | 48 | all_environment : test_env $(DIR_OBJ) |
---|
[78] | 49 | @\ |
---|
[113] | 50 | $(MAKE) $($(ENTITY)_OBJECTS_DEPS) $(OBJECTS_BIN) |
---|
[78] | 51 | |
---|
[80] | 52 | environment_clean : |
---|
[78] | 53 | @\ |
---|
| 54 | $(ECHO) "Delete temporary files in directory "$(PWD);\ |
---|
| 55 | $(RM) *~ \ |
---|
| 56 | $(DIR_OBJ) \ |
---|
| 57 | $(DIR_BIN) \ |
---|
| 58 | $(DIR_TST)/*~ \ |
---|
| 59 | $(DIR_SRC)/*~ \ |
---|
[81] | 60 | $(DIR_INC)/*~ \ |
---|
| 61 | *.dot \ |
---|
| 62 | *.txt; |
---|
[78] | 63 | |
---|
[80] | 64 | environment_help : |
---|
[78] | 65 | @\ |
---|
[80] | 66 | $(ECHO) " -----[ Environment ]------------------------------";\ |
---|
[78] | 67 | $(ECHO) "";\ |
---|
[88] | 68 | $(ECHO) " * exe : execute testbench";\ |
---|
| 69 | $(ECHO) " * test_env : test if environnment's variable is set";\ |
---|
| 70 | $(ECHO) " * all_environment : generate object";\ |
---|
[78] | 71 | $(ECHO) ""; |
---|
Note: See
TracBrowser
for help on using the repository browser.