Rev | Line | |
---|
[812] | 1 | |
---|
| 2 | CC = mipsel-unknown-elf-gcc |
---|
| 3 | LD = mipsel-unknown-elf-ld |
---|
| 4 | DU = mipsel-unknown-elf-objdump |
---|
| 5 | |
---|
| 6 | APP_NAME = fft |
---|
| 7 | |
---|
| 8 | OBJS = fft.o |
---|
| 9 | |
---|
| 10 | LIBS= -L../../build/libs -luser -lmath |
---|
| 11 | |
---|
| 12 | INCLUDES = -I. -I../.. -I../../giet_libs -I../../giet_xml |
---|
| 13 | |
---|
| 14 | LIB_DEPS = ../../build/libs/libuser.a ../../build/libmath.a |
---|
| 15 | |
---|
| 16 | # building rules |
---|
| 17 | |
---|
| 18 | .PHONY: clean |
---|
| 19 | |
---|
| 20 | appli.elf: $(OBJS) $(APP_NAME).ld $(LIBS_DEPS) $(APP_NAME).py |
---|
| 21 | $(LD) -o $@ -T $(APP_NAME).ld $(OBJS) $(LIBS) |
---|
| 22 | $(DU) -D $@ > $@.txt |
---|
| 23 | |
---|
| 24 | %.o: %.c |
---|
| 25 | $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< |
---|
| 26 | |
---|
| 27 | clean: |
---|
| 28 | rm -f *.o *.elf *.txt core *~ |
---|
Note: See
TracBrowser
for help on using the repository browser.