source: trunk/IPs/systemC/Environment/Makefile @ 113

Last change on this file since 113 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: 3.2 KB
Line 
1ifeq ($(origin MORPHEO_TMP), undefined)
2        $(error "variable MORPHEO_TMP      is undefined");
3endif
4
5#-----[ Directory ]----------------------------------------
6DIR_LIB                         = $(DIR_TMP)/lib
7DIR_ENVIRONMENT                 = .
8DIR_CACHE                       = Cache
9DIR_DATA                        = Data
10DIR_ENDIANNESS                  = Endianness
11DIR_QUEUE                       = Queue
12DIR_RAMLOCK                     = RamLock
13DIR_SIM2OS                      = Sim2OS
14DIR_TTY                         = TTY
15
16include $(DIR_CACHE)/Makefile.defs
17include $(DIR_DATA)/Makefile.defs
18include $(DIR_ENDIANNESS)/Makefile.defs
19include $(DIR_QUEUE)/Makefile.defs
20include $(DIR_RAMLOCK)/Makefile.defs
21include $(DIR_SIM2OS)/Makefile.defs
22include $(DIR_TTY)/Makefile.defs
23
24#-----[ Variable ]-----------------------------------------
25
26ENTITY                          := Environment
27DIR_SRC                          = $(DIR_ENVIRONMENT)/src
28
29include                          $(DIR_ENVIRONMENT)/Makefile.defs
30
31LIBRARY_NAME                    := $(ENTITY)
32LIBRARY_FILE                    := $(DIR_LIB)/lib$(LIBRARY_NAME).a
33
34Environment_OBJECTS_DEPS        :=      $(OBJECTS) \
35                                        $(Cache_OBJECTS_DEPS) \
36                                        $(Data_OBJECTS_DEPS) \
37                                        $(Endianness_OBJECTS_DEPS) \
38                                        $(Queue_OBJECTS_DEPS) \
39                                        $(RamLock_OBJECTS_DEPS) \
40                                        $(Sim2OS_OBJECTS_DEPS) \
41                                        $(TTY_OBJECTS_DEPS)
42
43#-----[ Rules ]--------------------------------------------
44
45all                             :
46                                @\
47                                $(MAKE) all_environment; \
48                                $(MAKE) --directory=$(DIR_CACHE)      all; \
49                                $(MAKE) --directory=$(DIR_DATA)       all; \
50                                $(MAKE) --directory=$(DIR_ENDIANNESS) all; \
51                                $(MAKE) --directory=$(DIR_QUEUE)      all; \
52                                $(MAKE) --directory=$(DIR_RAMLOCK)    all; \
53                                $(MAKE) --directory=$(DIR_SIM2OS)     all; \
54                                $(MAKE) --directory=$(DIR_TTY)        all; \
55                                $(MAKE) $(LIBRARY_FILE);
56
57
58$(LIBRARY_FILE)                 : $(Environment_OBJECTS_DEPS)
59                                @\
60                                $(ECHO) "Archive            : $@";\
61                                $(ECHO) "Archive            : $@";\
62                                $(MKDIR) $(DIR_LIB);\
63                                $(AR)  -r $@ $(Environment_OBJECTS_DEPS);\
64                                $(RANLIB) $@;
65
66$(DIR_LIB)                      :
67                                @\
68                                $(ECHO) "Create directory   : $@";\
69                                $(MKDIR) $@
70
71exe_all                         :
72                                @\
73                                $(MAKE) --directory=$(DIR_CACHE)      clean; \
74                                $(MAKE) --directory=$(DIR_CACHE)      exe; \
75                                $(MAKE) --directory=$(DIR_DATA)       clean; \
76                                $(MAKE) --directory=$(DIR_DATA)       exe; \
77                                $(MAKE) --directory=$(DIR_ENDIANNESS) clean; \
78                                $(MAKE) --directory=$(DIR_ENDIANNESS) exe; \
79                                $(MAKE) --directory=$(DIR_QUEUE)      clean; \
80                                $(MAKE) --directory=$(DIR_QUEUE)      exe; \
81                                $(MAKE) --directory=$(DIR_RAMLOCK)    clean; \
82                                $(MAKE) --directory=$(DIR_RAMLOCK)    exe; \
83                                $(MAKE) --directory=$(DIR_SIM2OS)     clean; \
84                                $(MAKE) --directory=$(DIR_SIM2OS)     exe; \
85                                $(MAKE) --directory=$(DIR_TTY)        clean; \
86                                $(MAKE) --directory=$(DIR_TTY)        exe; \
87                                $(MAKE) clean; \
88                                $(MAKE) exe;
89
90clean                           :
91                                @\
92                                $(MAKE) --directory=$(DIR_CACHE)      clean; \
93                                $(MAKE) --directory=$(DIR_DATA)       clean; \
94                                $(MAKE) --directory=$(DIR_ENDIANNESS) clean; \
95                                $(MAKE) --directory=$(DIR_QUEUE)      clean; \
96                                $(MAKE) --directory=$(DIR_RAMLOCK)    clean; \
97                                $(MAKE) --directory=$(DIR_SIM2OS)     clean; \
98                                $(MAKE) --directory=$(DIR_TTY)        clean; \
99                                $(MAKE) environment_clean; \
100                                $(RM) tty_*;
101
102clean_all                       : clean
103                                @\
104                                $(RM) $(DIR_LIB);
105
106help                            :
107                                @$(MAKE) environment_help
108
109include                         Makefile.Environment
Note: See TracBrowser for help on using the repository browser.