Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
[email protected] webmail now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as Plain Text by skikepok ( 11 years ago )
CC = /opt/ARM/arm-linaro-eabi-4.6/bin/arm-none-eabi-gcc
LD = /opt/ARM/arm-linaro-eabi-4.6/bin/arm-none-eabi-ld
OBJCOPY = /opt/ARM/arm-linaro-eabi-4.6/bin/arm-none-eabi-objcopy
OBJDUMP = /opt/ARM/arm-linaro-eabi-4.6/bin/arm-none-eabi-objdump 

FILES_C = ./ParTest/ParTest.c \
./Kernel/tasks.c \
./Kernel/queue.c \
./Kernel/list.c \
./Kernel/heap.c \
./Kernel/port.c \
./Library/stm32f10x_systick.c \
./Library/stm32f10x_lib.c \
./Library/stm32fxxx_eth.c \
./Library/stm32f10x_gpio.c \
./Library/stm32f10x_usart.c \
./Library/stm32f10x_spi.c \
./Library/stm32f10x_nvic.c \
./Library/stm32f10x_tim.c \
./Library/stm32f10x_rcc.c \
./Library/lcd.c \
./uIP/uip_arp.c \
./uIP/uip.c \
./uIP/timer.c \
./uIP/psock.c \
./spi_flash.c \
./printf-stdarg.c \
./main.c \
./webserver/emac.c \
./webserver/httpd.c \
./webserver/httpd-cgi.c \
./webserver/httpd-fs.c \
./webserver/http-strings.c \
./webserver/uIP_Task.c \
./Common/flash.c \
./Common/semtest.c \
./Common/recmutex.c \
./Common/BlockQ.c \
./Common/PollQ.c \
./Common/QPeek.c \
./Common/integer.c \
./Common/GenQTest.c \
./timertest.c \
./system_stm32f10x.c \
./libc.c \
./hello_world.c \
./newTask.c

FILES_S = ./thumb_crt0.S \
./STM32F10x_Startup.S

FILES_O = $(FILES_C:.c=.o) $(FILES_S:.S=.o)

INCLUDES = -I include/ -I include/Source/ -I include/ARM_CM3/ -I include/Common/ -I include/STM32F10xFWLib -I include/uip/ -I webserver -I LCD -I .

DEFINES = -DPACK_STRUCT_END="__attribute((packed))" -DALIGN_STRUCT_END="__attribute((aligned(4)))" -DNULL="(void *)0" -DSTARTUP_FROM_RESET 

CFLAGS = $(INCLUDES) $(DEFINES) -c -fno-common -O0 -g -mcpu=cortex-m3 -mthumb -ggdb -std=c99

all: $(FILES_O)
 $(LD) -T stm32.ld -nostartfiles -o freeRTOS.elf $(FILES_O)
 $(OBJCOPY) -Obinary freeRTOS.elf freeRTOS.bin
 $(OBJDUMP) -S freeRTOS.elf > freeRTOS.lst

%.o: %.S
 $(CC) -o $@ -c $< $(CFLAGS)

%.o: %.c
 $(CC) -o $@ -c $< $(CFLAGS)

clean:
 rm -rf `find -name "*.o"` `find -name "*~"` `find -name "*\#*"` freeRTOS.bin freeRTOS.elf

 

Revise this Paste

Your Name: Code Language: