1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
# SPDX-License-Identifier: BSD-3-Clause
#
# Freescale Semiconductor
# (c) Freescale Semiconductor, Inc. 2011, 2012. All rights reserved.
# Copyright 2018, 2022 NXP
#
#==============================================================================
#
# File Name: mingw-gcc.mk
#
# General Description: Makefile for native gcc
#
#==============================================================================
# Toolchain commands
#==============================================================================
CROSSCOMPILER := i686-w64-mingw32-
CC := $(CROSSCOMPILER)gcc
AR := $(CROSSCOMPILER)ar
LD := $(CROSSCOMPILER)gcc
OBJCOPY := $(CROSSCOMPILER)objcopy
# C compiler flags
#==============================================================================
COPTIONS += -std=c99 -D_POSIX_C_SOURCE=200809L -Wall -Werror -g
# -pedantic has been removed due to the OpenSSL #include-d C file
# -fPIC is ignored for this target, the code is already position independent
# Linker flags
#==============================================================================
LDOPTIONS += -g -static
LDLIBS := -lcrypto -lcrypt32 -lgdi32 -lws2_32
# Archiver flags
#==============================================================================
ARFLAGS := -rc
|