Changeset 88 for trunk/IPs/systemC/Environment/Makefile
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/Makefile
r81 r88 1 1 #-----[ Directory ]---------------------------------------- 2 2 3 DIR_CACHE = Cache 4 DIR_DATA = Data 5 DIR_ENDIANNESS = Endianness 6 DIR_QUEUE = Queue 7 DIR_RAMLOCK = RamLock 8 DIR_SIM2OS = Sim2OS 9 DIR_TTY = TTY 3 DIR_LIB = ./lib 4 DIR_CACHE = ./Cache 5 DIR_DATA = ./Data 6 DIR_ENDIANNESS = ./Endianness 7 DIR_QUEUE = ./Queue 8 DIR_RAMLOCK = ./RamLock 9 DIR_SIM2OS = ./Sim2OS 10 DIR_TTY = ./TTY 10 11 11 12 #-----[ Variable ]----------------------------------------- 13 ENTITY ?= Environment 14 15 LIBRARY_NAME = Environment 16 LIBRARY_FILE = $(DIR_LIB)/lib$(LIBRARY_NAME).a 12 17 13 18 OBJECTS_DEPS = $(patsubst $(DIR_CACHE)/$(DIR_SRC)/%.cpp,$(DIR_CACHE)/$(DIR_OBJ)/%.o,$(wildcard $(DIR_CACHE)/$(DIR_SRC)/*.cpp)) \ … … 18 23 $(patsubst $(DIR_RAMLOCK)/$(DIR_SRC)/%.cpp,$(DIR_RAMLOCK)/$(DIR_OBJ)/%.o,$(wildcard $(DIR_RAMLOCK)/$(DIR_SRC)/*.cpp)) \ 19 24 $(patsubst $(DIR_SIM2OS)/$(DIR_SRC)/%.cpp,$(DIR_SIM2OS)/$(DIR_OBJ)/%.o,$(wildcard $(DIR_SIM2OS)/$(DIR_SRC)/*.cpp)) \ 20 $(patsubst $(DIR_TTY)/$(DIR_SRC)/%.cpp,$(DIR_TTY)/$(DIR_OBJ)/%.o,$(wildcard $(DIR_TTY)/$(DIR_SRC)/*.cpp)) 25 $(patsubst $(DIR_TTY)/$(DIR_SRC)/%.cpp,$(DIR_TTY)/$(DIR_OBJ)/%.o,$(wildcard $(DIR_TTY)/$(DIR_SRC)/*.cpp)) 21 26 22 27 23 28 #-----[ Rules ]-------------------------------------------- 24 29 25 all : 30 all : a b c d e f g 26 31 @\ 27 $(MAKE) --directory=$(DIR_CACHE) all; \ 28 $(MAKE) --directory=$(DIR_DATA) all; \ 29 $(MAKE) --directory=$(DIR_ENDIANNESS) all; \ 30 $(MAKE) --directory=$(DIR_QUEUE) all; \ 31 $(MAKE) --directory=$(DIR_RAMLOCK) all; \ 32 $(MAKE) --directory=$(DIR_SIM2OS) all; \ 33 $(MAKE) --directory=$(DIR_TTY) all; \ 34 $(MAKE) all_environment; 32 $(MAKE) all_environment; \ 33 $(MAKE) $(LIBRARY_FILE); 34 35 a : 36 @\ 37 $(MAKE) --directory=$(DIR_CACHE) all; 38 39 b : 40 @\ 41 $(MAKE) --directory=$(DIR_DATA) all; 42 43 c : 44 @\ 45 $(MAKE) --directory=$(DIR_ENDIANNESS) all; 46 47 d : 48 @\ 49 $(MAKE) --directory=$(DIR_QUEUE) all; 50 51 e : 52 @\ 53 $(MAKE) --directory=$(DIR_RAMLOCK) all; 54 55 f : 56 @\ 57 $(MAKE) --directory=$(DIR_SIM2OS) all; 58 59 g : 60 @\ 61 $(MAKE) --directory=$(DIR_TTY) all; 62 63 64 $(LIBRARY_FILE) : $(OBJECTS_DEPS) $(OBJECTS) $(DIR_LIB) 65 @\ 66 $(ECHO) "Archive : $@";\ 67 $(AR) -r $@ $(OBJECTS_DEPS) $(OBJECTS);\ 68 $(RANLIB) $@; 69 70 $(DIR_LIB) : 71 @\ 72 $(ECHO) "Create directory : $@";\ 73 $(MKDIR) $@; 74 75 exe_all : 76 @\ 77 $(MAKE) --directory=$(DIR_CACHE) exe; \ 78 $(MAKE) --directory=$(DIR_DATA) exe; \ 79 $(MAKE) --directory=$(DIR_ENDIANNESS) exe; \ 80 $(MAKE) --directory=$(DIR_QUEUE) exe; \ 81 $(MAKE) --directory=$(DIR_RAMLOCK) exe; \ 82 $(MAKE) --directory=$(DIR_SIM2OS) exe; \ 83 $(MAKE) --directory=$(DIR_TTY) exe; \ 84 $(MAKE) exe; \ 35 85 36 86 clean : … … 46 96 $(RM) tty_*; 47 97 98 clean_all : clean 99 @\ 100 $(RM) $(DIR_LIB); 48 101 49 102 help :
Note: See TracChangeset
for help on using the changeset viewer.