Last change
on this file was
138,
checked in by rosiere, 15 years ago
|
1) add counters_t type for interface
2) fix in check load in load_store_unit
3) add parameters (but not yet implemented)
4) change environment and add script (distcc_env.sh ...)
5) add warning if an unser change rename flag with l.mtspr instruction
6) ...
|
-
Property svn:keywords set to
Id
|
File size:
1.6 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)/$(PREFIX_OBJ)%.o $(DIR_BIN)/%.x |
---|
11 | |
---|
12 | test_env : |
---|
13 | @\ |
---|
14 | $(ECHO) "-------------------| $(ENTITY)" |
---|
15 | |
---|
16 | $(DIR_OBJ)/$(PREFIX_OBJ)%.o : %.cpp $(HEADERS) |
---|
17 | @\ |
---|
18 | $(ECHO) "Compilation : $*";\ |
---|
19 | $(CXX) $(MORPHEO_CXX_FLAGS) -c -o $@ $<; |
---|
20 | |
---|
21 | $(DIR_OBJ)/$(PREFIX_OBJ)%.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) $(DIR_BIN) : |
---|
32 | @\ |
---|
33 | $(ECHO) "Create directory : $@";\ |
---|
34 | $(MKDIR) $@ |
---|
35 | |
---|
36 | exe : all $(DIR_BIN) |
---|
37 | @\ |
---|
38 | $(MAKE) $(EXE); \ |
---|
39 | export SYSTEMC=$(SYSTEMC_$(SIMULATOR_SYSTEMC)) ; $(EXEC_PREFIX) $(EXE) $(SYSTEMC_EXEC_PARAMS_$(SIMULATOR_SYSTEMC)) |
---|
40 | |
---|
41 | |
---|
42 | all_environment : test_env $(DIR_OBJ) |
---|
43 | @\ |
---|
44 | $(MAKE) $($(ENTITY)_OBJECTS_DEPS) $(OBJECTS_BIN) |
---|
45 | |
---|
46 | environment_clean : |
---|
47 | @\ |
---|
48 | $(ECHO) "Delete temporary files in directory "$(PWD);\ |
---|
49 | $(RM) *~ \ |
---|
50 | $(DIR_OBJ) \ |
---|
51 | $(DIR_BIN) \ |
---|
52 | $(DIR_TST)/*~ \ |
---|
53 | $(DIR_SRC)/*~ \ |
---|
54 | $(DIR_INC)/*~ \ |
---|
55 | *.dot \ |
---|
56 | *.txt; |
---|
57 | |
---|
58 | environment_help : |
---|
59 | @\ |
---|
60 | $(ECHO) " -----[ Environment ]------------------------------";\ |
---|
61 | $(ECHO) "";\ |
---|
62 | $(ECHO) " * exe : execute testbench";\ |
---|
63 | $(ECHO) " * test_env : test if environnment's variable is set";\ |
---|
64 | $(ECHO) " * all_environment : generate object";\ |
---|
65 | $(ECHO) ""; |
---|
Note: See
TracBrowser
for help on using the repository browser.