Line | |
---|
1 | |
---|
2 | CC = mipsel-unknown-elf-gcc |
---|
3 | LD = mipsel-unknown-elf-ld |
---|
4 | DU = mipsel-unknown-elf-objdump |
---|
5 | |
---|
6 | APP_NAME = ocean |
---|
7 | |
---|
8 | OBJS = laplacalc.o \ |
---|
9 | jacobcalc.o \ |
---|
10 | jacobcalc2.o \ |
---|
11 | linkup.o \ |
---|
12 | multi.o \ |
---|
13 | slave1.o \ |
---|
14 | slave2.o \ |
---|
15 | subblock.o \ |
---|
16 | main.o |
---|
17 | |
---|
18 | LIBS = -L../../build/libs -luser -lmath |
---|
19 | |
---|
20 | INCLUDES = -I. -I../.. -I../../giet_libs -I../../giet_xml |
---|
21 | |
---|
22 | LIB_DEPS = ../../build/libs/libuser.a ../../build/libmath.a |
---|
23 | |
---|
24 | CFLAGS := -O2 -g -Wall -fomit-frame-pointer -mno-gpopt -fno-delete-null-pointer-checks |
---|
25 | |
---|
26 | # building rules |
---|
27 | |
---|
28 | .PHONY: clean |
---|
29 | |
---|
30 | appli.elf: $(OBJS) $(APP_NAME).ld $(LIBS_DEPS) $(APP_NAME).py |
---|
31 | $(LD) -o $@ -T $(APP_NAME).ld $(OBJS) $(LIBS) |
---|
32 | $(DU) -D $@ > $@.txt |
---|
33 | |
---|
34 | %.o: %.c decs.h |
---|
35 | $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $< |
---|
36 | |
---|
37 | clean: |
---|
38 | rm -f *.o *.elf *.txt *.pyc core *~ |
---|
Note: See
TracBrowser
for help on using the repository browser.