rules: provide default C and C++ standards
Default CSTD to c99, no default for CXXSTD, but if provided it will be used. Add required gnu99 flags to projects using gnu styles.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
##
|
||||
|
||||
BINARY = usart_stdio
|
||||
CSTD = -std=gnu99
|
||||
|
||||
LDSCRIPT = ../stm32f0-discovery.ld
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
##
|
||||
|
||||
BINARY = usbdfu
|
||||
CSTD = -std=gnu99
|
||||
|
||||
LDSCRIPT = ../lisa-m.ld
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@ BINARY = adc_injec
|
||||
|
||||
# Comment the following line if you _don't_ have luftboot flashed!
|
||||
LDFLAGS += -Wl,-Ttext=0x8002000
|
||||
CFLAGS += -std=c99
|
||||
LDSCRIPT = ../lisa-m.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
@@ -21,7 +21,6 @@ BINARY = adc_injec_timtrig
|
||||
|
||||
# Comment the following line if you _don't_ have luftboot flashed!
|
||||
LDFLAGS += -Wl,-Ttext=0x8002000
|
||||
CFLAGS += -std=c99
|
||||
LDSCRIPT = ../lisa-m.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
@@ -21,7 +21,6 @@ BINARY = adc_injec_timtrig_irq
|
||||
|
||||
# Comment the following line if you _don't_ have luftboot flashed!
|
||||
LDFLAGS += -Wl,-Ttext=0x8002000
|
||||
CFLAGS += -std=c99
|
||||
LDSCRIPT = ../lisa-m.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
@@ -21,7 +21,6 @@ BINARY = adc_injec_timtrig_irq_4ch
|
||||
|
||||
# Comment the following line if you _don't_ have luftboot flashed!
|
||||
LDFLAGS += -Wl,-Ttext=0x8002000
|
||||
CFLAGS += -std=c99
|
||||
LDSCRIPT = ../lisa-m.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
@@ -21,7 +21,6 @@ BINARY = adc
|
||||
|
||||
# Comment the following line if you _don't_ have luftboot flashed!
|
||||
LDFLAGS += -Wl,-Ttext=0x8002000
|
||||
CFLAGS += -std=c99
|
||||
LDSCRIPT = ../lisa-m.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
@@ -21,7 +21,6 @@ BINARY = can
|
||||
|
||||
# Comment the following line if you _don't_ have luftboot flashed!
|
||||
LDFLAGS += -Wl,-Ttext=0x8002000
|
||||
CFLAGS += -std=c99
|
||||
LDSCRIPT = ../lisa-m.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
@@ -21,7 +21,6 @@ BINARY = fancyblink
|
||||
|
||||
# Comment the following line if you _don't_ have luftboot flashed!
|
||||
LDFLAGS += -Wl,-Ttext=0x8002000
|
||||
CFLAGS += -std=c99
|
||||
LDSCRIPT = ../lisa-m.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
@@ -21,7 +21,6 @@ BINARY = spi
|
||||
|
||||
# Comment the following line if you _don't_ have luftboot flashed!
|
||||
LDFLAGS += -Wl,-Ttext=0x8002000
|
||||
CFLAGS += -std=c99
|
||||
LDSCRIPT = ../lisa-m.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
@@ -21,7 +21,6 @@ BINARY = spi_dma
|
||||
|
||||
# Comment the following line if you _don't_ have luftboot flashed!
|
||||
LDFLAGS += -Wl,-Ttext=0x8002000
|
||||
CFLAGS += -std=c99
|
||||
LDSCRIPT = ../lisa-m.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
@@ -21,7 +21,6 @@ BINARY = spi_dma_adv
|
||||
|
||||
# Comment the following line if you _don't_ have luftboot flashed!
|
||||
LDFLAGS += -Wl,-Ttext=0x8002000
|
||||
CFLAGS += -std=c99
|
||||
LDSCRIPT = ../lisa-m.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
@@ -21,7 +21,6 @@ BINARY = usart
|
||||
|
||||
# Comment the following line if you _don't_ have luftboot flashed!
|
||||
LDFLAGS += -Wl,-Ttext=0x8002000
|
||||
CFLAGS += -std=c99
|
||||
LDSCRIPT = ../lisa-m.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
@@ -21,7 +21,6 @@ BINARY = usart_dma
|
||||
|
||||
# Comment the following line if you _don't_ have luftboot flashed!
|
||||
LDFLAGS += -Wl,-Ttext=0x8002000
|
||||
CFLAGS += -std=c99
|
||||
LDSCRIPT = ../lisa-m.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
@@ -21,7 +21,6 @@ BINARY = usart_irq
|
||||
|
||||
# Comment the following line if you _don't_ have luftboot flashed!
|
||||
LDFLAGS += -Wl,-Ttext=0x8002000
|
||||
CFLAGS += -std=c99
|
||||
LDSCRIPT = ../lisa-m.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
@@ -21,7 +21,6 @@ BINARY = usart_irq_printf
|
||||
|
||||
# Comment the following line if you _don't_ have luftboot flashed!
|
||||
LDFLAGS += -Wl,-Ttext=0x8002000
|
||||
CFLAGS += -std=c99
|
||||
LDSCRIPT = ../lisa-m.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
@@ -21,7 +21,6 @@ BINARY = usart_printf
|
||||
|
||||
# Comment the following line if you _don't_ have luftboot flashed!
|
||||
LDFLAGS += -Wl,-Ttext=0x8002000
|
||||
CFLAGS += -std=c99
|
||||
LDSCRIPT = ../lisa-m.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
##
|
||||
|
||||
BINARY = usbdfu
|
||||
CSTD = -std=gnu99
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
##
|
||||
|
||||
BINARY = usbdfu
|
||||
CSTD = -std=gnu99
|
||||
|
||||
LDSCRIPT = ../stm32-h103.ld
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
##
|
||||
|
||||
BINARY = usbiap
|
||||
CSTD = -std=gnu99
|
||||
|
||||
LDSCRIPT = ../stm32-h103.ld
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
OBJS = sdram.o clock.o console.o lcd-spi.o
|
||||
|
||||
BINARY = lcd-dma
|
||||
CSTD = -std=gnu99
|
||||
|
||||
# we use sin/cos from the library
|
||||
LDLIBS += -lm
|
||||
|
||||
Reference in New Issue
Block a user