mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
eeaa40f71d
Closes https://github.com/espressif/esp-idf/issues/7866 A minimal x86 implementation has also been added, it is used to perform a host test.
27 lines
653 B
Makefile
27 lines
653 B
Makefile
# SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
CC=gcc
|
|
CFLAGS=-W -fasynchronous-unwind-tables -I. -I../port/include/x86/ -I../include/ -I../include/esp_private -std=c99 -g -m32
|
|
LDFLAGS=-Wl,--eh-frame-hdr -m32 -g -Tlinker.ld -no-pie
|
|
OBJECTS=objs/eh_frame_parser.o objs/main.o
|
|
HEADERS=eh_frame_parser_impl.h
|
|
BIN=eh_frame_test
|
|
|
|
.PHONY: all clean createdir
|
|
|
|
all: $(OBJECTS)
|
|
$(CC) -o $(BIN) $^ $(LDFLAGS)
|
|
|
|
objs/main.o:main.c
|
|
@mkdir -p objs
|
|
$(CC) -o $@ -c $^ $(CFLAGS)
|
|
|
|
objs/eh_frame_parser.o: ../eh_frame_parser.c
|
|
@mkdir -p objs
|
|
$(CC) -o $@ -c $^ $(CFLAGS)
|
|
|
|
clean:
|
|
rm -rf objs $(BIN)
|