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