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