source: soft/giet_vm/applications/dhrystone/Makefile @ 791

Last change on this file since 791 was 589, checked in by alain, 9 years ago

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 size: 382 bytes
RevLine 
[241]1
[589]2APP_NAME = dhrystone
[241]3
[589]4OBJS = dhry_1.o \
5       dhry_2.o
[241]6
[589]7LIBS = -L../../build/libs -luser
[241]8
[589]9INCLUDES = -I../../giet_libs -I. -I../..
[241]10
[589]11LIB_DEPS = ../../build/libs/libuser.a
[241]12
[589]13appli.elf: $(OBJS) $(APP_NAME).ld $(LIBS_DEPS)
14        $(LD) -o $@ -T $(APP_NAME).ld $(OBJS) $(LIBS)
15        $(DU) -D $@ > $@.txt
[241]16
17%.o: %.c
[589]18        $(CC)  $(INCLUDES) $(CFLAGS) -c -o  $@ $<
[241]19
20clean:
[589]21        rm -f *.o *.elf *.txt core *~
Note: See TracBrowser for help on using the repository browser.