Changeset 162 for soft/giet_vm/apps/Makefile
- Timestamp:
- Jun 20, 2012, 5:11:11 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/apps/Makefile
r161 r162 1 1 # Compile the library and call the Makefile of each sub-directory. # 2 3 2 export # export all variable to sub-Makefile 4 3 CC = mipsel-unknown-elf-gcc … … 7 6 DU = mipsel-unknown-elf-objdump 8 7 9 CFLAGS = -Wall -ffreestanding -mno-gpopt -mips32 10 11 SOFT_PATH = $(shell cd ..; pwd)/ 12 13 LIB_PATH = $(SOFT_PATH)libs 14 SYS_PATH = $(SOFT_PATH)sys 15 DUMP_PATH = $(SOFT_PATH) #where goes the generated *.bin 16 MAP_PATH = $(SOFT_PATH)xml 17 BUILD_PATH = $(SOFT_PATH)/build/ 18 BIN_PATH = $(SOFT_PATH)/build/ 19 20 INCLUDE = -I$(LIB_PATH) -I$(SOFT_PATH) -I$(SYS_PATH) -I$(MAP_PATH) 8 CFLAGS = -Wall -ffreestanding -mno-gpopt -mips32 -g 21 9 22 10 TRASH= /dev/null||true … … 26 14 LIB_COMPILE+= common.o 27 15 16 SOFT_PATH = $(cd ..; shell pwd)/ 17 18 SYS_PATH = $(SOFT_PATH)sys/ 19 BOOT_PATH = $(SOFT_PATH)boot/ 20 MAP_PATH = $(SOFT_PATH)xml/ 21 LIBS_PATH = $(SOFT_PATH)libs/ 22 BUILD_PATH = $(SOFT_PATH)build/ 23 ELF_PATH = $(SOFT_PATH)build/ 24 25 INCLUDE = -I$(LIBS_PATH) -I$(SOFT_PATH) -I$(SYS_PATH) -I$(MAP_PATH) 26 28 27 DIRS=$(shell ls -d */ ) #list all directorys 29 30 28 31 29 .PHONY: prepare 32 30 33 all: prepare $(LIB_COMPILE)31 all: test prepare $(LIB_COMPILE) 34 32 set -e; for d in $(DIRS); do $(MAKE) -C $$d ; echo "Compiling $$d"; done 35 33 36 34 prepare: 37 35 @mkdir $(BUILD_PATH) 2>$(TRASH) 36 @mkdir $(ELF_PATH) 2>$(TRASH) 38 37 39 %.o : $(LIB _PATH)/%.c38 %.o : $(LIBS_PATH)/%.c 40 39 $(CC) $(CFLAGS) $(INCLUDE) -c -o $(BUILD_PATH)/$@ $< 41 40 … … 43 42 rm -f *.o 44 43 set -e; for d in $(DIRS); do $(MAKE) clean -C $$d ; done 45
Note: See TracChangeset
for help on using the changeset viewer.