Ignore:
Timestamp:
Jun 20, 2012, 5:11:11 PM (12 years ago)
Author:
karaoui
Message:

Cleaning unused files
Simplifying Makefile
adding missing include

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/apps/Makefile

    r161 r162  
    11# Compile the library and call the Makefile of each sub-directory. #
    2 
    32export # export all variable to sub-Makefile
    43CC      = mipsel-unknown-elf-gcc
     
    76DU      = mipsel-unknown-elf-objdump
    87
    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)
     8CFLAGS = -Wall -ffreestanding -mno-gpopt -mips32 -g
    219
    2210TRASH= /dev/null||true
     
    2614LIB_COMPILE+= common.o
    2715
     16SOFT_PATH       = $(cd ..; shell pwd)/
     17
     18SYS_PATH    = $(SOFT_PATH)sys/
     19BOOT_PATH   = $(SOFT_PATH)boot/
     20MAP_PATH    = $(SOFT_PATH)xml/
     21LIBS_PATH   = $(SOFT_PATH)libs/
     22BUILD_PATH      = $(SOFT_PATH)build/
     23ELF_PATH        = $(SOFT_PATH)build/
     24
     25INCLUDE         = -I$(LIBS_PATH) -I$(SOFT_PATH) -I$(SYS_PATH) -I$(MAP_PATH)
     26
    2827DIRS=$(shell ls -d */ ) #list all directorys
    29 
    3028
    3129.PHONY: prepare
    3230
    33 all: prepare $(LIB_COMPILE)
     31all: test prepare $(LIB_COMPILE)
    3432        set -e; for d in $(DIRS); do $(MAKE)  -C $$d ; echo "Compiling $$d";  done
    3533
    3634prepare:
    3735        @mkdir $(BUILD_PATH) 2>$(TRASH)
     36        @mkdir $(ELF_PATH) 2>$(TRASH)
    3837
    39 %.o : $(LIB_PATH)/%.c
     38%.o : $(LIBS_PATH)/%.c
    4039        $(CC) $(CFLAGS) $(INCLUDE) -c -o $(BUILD_PATH)/$@ $<
    4140
     
    4342        rm -f *.o
    4443        set -e; for d in $(DIRS); do $(MAKE) clean -C $$d ; done
    45 
Note: See TracChangeset for help on using the changeset viewer.