Ignore:
Timestamp:
Jul 8, 2015, 3:57:15 PM (9 years ago)
Author:
alain
Message:

Modify all applications to support two new rules:
1) introduce a local Makefile for each application.
2) change "application.elf" name to "application/appli.elf" name in the application.py" file.
Introduce the shell application.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/dhrystone/Makefile

    r241 r589  
    1 APP_NAME=dhrystone
    21
    3 USE+= stdio.o
    4 #USE+= mwmr_channel.o
     2APP_NAME = dhrystone
    53
    6 USES=$(patsubst %,$(BUILD_PATH)/$(LIB_NAME)/%,$(USE))
     4OBJS = dhry_1.o \
     5       dhry_2.o
    76
    8 OBJS= dhry_1.o dhry_2.o
     7LIBS = -L../../build/libs -luser
    98
    10 all: $(APP_NAME).elf
     9INCLUDES = -I../../giet_libs -I. -I../..
    1110
    12 BIN_NAME_PATH=$(BUILD_PATH)$(APP_NAME).elf
     11LIB_DEPS = ../../build/libs/libuser.a
    1312
    14 $(APP_NAME).elf: $(OBJS) $(APP_NAME).ld
    15         $(LD) -o $(BIN_NAME_PATH) -T $(APP_NAME).ld $(OBJS) $(USES)
    16         $(DU) -D $(BIN_NAME_PATH) > $@.txt
     13appli.elf: $(OBJS) $(APP_NAME).ld $(LIBS_DEPS)
     14        $(LD) -o $@ -T $(APP_NAME).ld $(OBJS) $(LIBS)
     15        $(DU) -D $@ > $@.txt
    1716
    1817%.o: %.c
    19         $(CC)  $(INCLUDE) $(CFLAGS) $($*.o_CFLAGS) -c -o  $@ $<
    20         $(DU) -D  $@ >  $@.txt
     18        $(CC)  $(INCLUDES) $(CFLAGS) -c -o  $@ $<
    2119
    2220clean:
    23         rm -f *.o *.elf *.txt core *~ 2>$(TRASH)
    24         rm $(BIN_NAME_PATH) 2>$(TRASH)
     21        rm -f *.o *.elf *.txt core *~
Note: See TracChangeset for help on using the changeset viewer.