mirror of
https://github.com/tailix/libkernaux.git
synced 2024-10-30 11:54:01 -04:00
28 lines
464 B
Text
28 lines
464 B
Text
|
# vim: set syntax=automake:
|
||
|
|
||
|
AM_CFLAGS = \
|
||
|
-std=c99 \
|
||
|
-pedantic \
|
||
|
-Wall \
|
||
|
-Wextra \
|
||
|
-I$(top_builddir)/include \
|
||
|
-I$(top_srcdir)/include \
|
||
|
-D_POSIX_C_SOURCE=200809L
|
||
|
|
||
|
if WITH_LIBC
|
||
|
AM_CFLAGS += \
|
||
|
-I$(top_builddir)/libc/include \
|
||
|
-I$(top_srcdir)/libc/include
|
||
|
endif
|
||
|
|
||
|
if ENABLE_WERROR
|
||
|
AM_CFLAGS += -Werror
|
||
|
endif
|
||
|
|
||
|
# TODO: DRY (configure.ac)
|
||
|
if ENABLE_FREESTANDING
|
||
|
AM_CFLAGS += -nostdlib -ffreestanding -fno-pic -fno-stack-protector
|
||
|
else
|
||
|
AM_CFLAGS += -fpic
|
||
|
endif
|