File: mingw-gcc.mk

package info (click to toggle)
imx-code-signing-tool 3.4.1%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,912 kB
  • sloc: ansic: 10,258; sh: 2,558; python: 391; yacc: 245; makefile: 203; lex: 59
file content (38 lines) | stat: -rw-r--r-- 1,264 bytes parent folder | download
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