build: split CFLAGS/CPPFLAGS correctly

arm_linker_fix
Ariadne Conill 2020-12-03 18:24:08 -07:00
parent 938d0d5771
commit 02470ccdd8
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,8 @@ ifeq ($(ARCH),$(filter $(ARCH),i386 i686))
endif endif
LIBDIR := /lib LIBDIR := /lib
CFLAGS = -ggdb3 -O2 -Wall -Iarch/${ARCH} -Iarch/common CFLAGS := -ggdb3 -O2 -Wall
CPPFLAGS := -Iarch/${ARCH} -Iarch/common
LIBUCONTEXT_C_SRC = $(wildcard arch/${ARCH}/*.c) LIBUCONTEXT_C_SRC = $(wildcard arch/${ARCH}/*.c)
LIBUCONTEXT_S_SRC = $(wildcard arch/${ARCH}/*.S) LIBUCONTEXT_S_SRC = $(wildcard arch/${ARCH}/*.S)