Ignore:
Timestamp:
Nov 26, 2016, 7:33:20 PM (8 years ago)
Author:
alain
Message:

bloup

File:
1 edited

Legend:

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

    r191 r824  
    1 APP_NAME=hello
    21
    3 USE+= stdio.o
     2CC = mipsel-unknown-elf-gcc
     3AS = mipsel-unknown-elf-as
     4LD = mipsel-unknown-elf-ld
     5DU = mipsel-unknown-elf-objdump
     6AR = mipsel-unknown-elf-ar
    47
    5 USES=$(patsubst %,$(BUILD_PATH)/$(LIB_NAME)/%,$(USE))
     8APP_NAME = hello
    69
    7 OBJS= main.o
     10LIBS = -L../../build/libs -luser
    811
    9 all: $(APP_NAME).elf
     12LIB_DEPS = ../../build/libs/libuser.a
    1013
    11 BIN_NAME_PATH=$(BUILD_PATH)$(APP_NAME).elf
     14INCLUDES = -I. -I../.. -I../../giet_libs
    1215
    13 $(APP_NAME).elf: $(OBJS) $(APP_NAME).ld
    14         $(LD) -o $(BIN_NAME_PATH) -T $(APP_NAME).ld $(OBJS) $(USES)
    15         $(DU) -D $(BIN_NAME_PATH) > $@.txt
     16OBJS= hello.o
     17
     18appli.elf: $(OBJS) $(APP_NAME).ld $(LIBS_DEPS) $(APP_NAME).py
     19        $(LD) -o $@ -T $(APP_NAME).ld $(OBJS) $(LIBS)
     20        $(DU) -D $@ > $@.txt
    1621
    1722%.o: %.c
    18         $(CC)  $(INCLUDE) $(CFLAGS) $($*.o_CFLAGS) -c -o  $@ $<
    19         $(DU) -D  $@ >  $@.txt
    20 
     23        $(CC)  $(INCLUDES) $(CFLAGS) -c -o  $@ $<
    2124
    2225clean:
    23         rm -f *.o *.elf *.txt core *~ 2>$(TRASH)
    24         rm $(BIN_NAME_PATH) 2>$(TRASH)
     26        rm -f *.o *.elf *.txt core *~
Note: See TracChangeset for help on using the changeset viewer.