Changeset 175 for soft/giet_vm/Makefile
- Timestamp:
- Jul 21, 2012, 10:20:47 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/Makefile
r166 r175 51 51 CFLAGS=-Wall -ffreestanding -mno-gpopt -mips32 -g 52 52 53 SYS_INCLUDE = -I$(SYS_PATH) -I$(MAP_PATH) -I$(LIB_PATH) -I. 54 53 SYS_INCLUDE = -I$(SYS_PATH) -I$(MAP_PATH) -I$(LIB_PATH) -I. 55 54 BOOT_INCLUDE = -I$(BOOT_PATH) -I$(MAP_PATH) -I$(LIB_PATH) -I. 56 57 INCLUDE = -I$(LIB_PATH) -I$(SOFT_PATH) -I$(SYS_PATH)-I$(MAP_PATH)55 LIB_INCLUDE = -I$(LIB_PATH) -I$(MAP_PATH) 56 INCLUDE = -I$(LIB_PATH) -I$(MAP_PATH) 58 57 59 58 TRASH= /dev/null||true … … 71 70 ## prepare the environement 72 71 prepare: 73 @mkdir $(BUILD_PATH) 2>$(TRASH) 74 @mkdir $(ELF_PATH) 2>$(TRASH) 72 @mkdir $(BUILD_PATH) 2>$(TRASH) 73 @mkdir $(ELF_PATH) 2>$(TRASH) 74 @mkdir $(BUILD_PATH)/$(BOOT_NAME) 2>$(TRASH) 75 @mkdir $(BUILD_PATH)/$(LIB_NAME) 2>$(TRASH) 76 @mkdir $(BUILD_PATH)/$(SYS_NAME) 2>$(TRASH) 75 77 76 78 ## mapping compilation … … 85 87 86 88 $(SYS_NAME)/%.o: $(SYS_NAME)/%.c 87 @mkdir $(BUILD_PATH)/$(SYS_NAME) 2>$(TRASH)88 89 $(CC) $(SYS_INCLUDE) $(CFLAGS) -c -o $(BUILD_PATH)/$@ $< 89 90 90 91 $(SYS_NAME)/%.o: $(SYS_NAME)/%.s 91 @mkdir $(BUILD_PATH)/$(SYS_NAME) 2>$(TRASH)92 92 $(CC) $(SYS_INCLUDE) $(CFLAGS) -c -o $(BUILD_PATH)/$@ $< 93 93 94 94 $(SYS_NAME)/%.o: $(SYS_NAME)/%.S 95 @mkdir $(BUILD_PATH)/$(SYS_NAME) 2>$(TRASH)96 95 $(CC) $(SYS_INCLUDE) $(CFLAGS) -c -o $(BUILD_PATH)/$@ $< 97 96 … … 102 101 103 102 $(BOOT_NAME)/%.o: $(BOOT_NAME)/%.c 104 @mkdir $(BUILD_PATH)/$(BOOT_NAME) 2>$(TRASH)105 103 $(CC) $(BOOT_INCLUDE) $(CFLAGS) -c -o $(BUILD_PATH)/$@ $< 106 104 107 105 $(BOOT_NAME)/%.o: $(BOOT_NAME)/%.s 108 @mkdir $(BUILD_PATH)/$(BOOT_NAME) 2>$(TRASH)109 106 $(CC) $(BOOT_INCLUDE) $(CFLAGS) -c -o $(BUILD_PATH)/$@ $< 110 107 111 108 $(BOOT_NAME)/%.o: $(BOOT_NAME)/%.S 112 @mkdir $(BUILD_PATH)/$(BOOT_NAME) 2>$(TRASH)113 109 $(CC) $(BOOT_INCLUDE) $(CFLAGS) -c -o $(BUILD_PATH)/$@ $< 114 110 115 111 ##libs compilation 116 112 $(LIB_NAME)/%.o: $(LIB_NAME)/%.c 117 @mkdir $(BUILD_PATH)/$(LIB_NAME) 2>$(TRASH) 118 $(CC) $(CFLAGS) $(INCLUDE) -c -o $(BUILD_PATH)/$@ $< 113 $(CC) $(CFLAGS) $(LIB_INCLUDE) -c -o $(BUILD_PATH)/$@ $< 119 114 120 115 ## applications … … 126 121 clean: 127 122 rm -f *.o *.elf *.bin *.txt core *~ 2>$(TRASH) 128 $(MAKE) clean -C xml/ 2>$(TRASH)129 $(MAKE) clean -C memo/ 2>$(TRASH)123 $(MAKE) -s clean -C xml/ 2>$(TRASH) 124 $(MAKE) -s clean -C memo/ 2>$(TRASH) 130 125 rm -r $(BUILD_PATH) 2>$(TRASH) 131 126 set -e; for d in $(APP_DIRS); do $(MAKE) clean -C $$d ; done
Note: See TracChangeset
for help on using the changeset viewer.