소스 검색

Fix VSCode Makefile to support multiple .c files (#4391)

Updated the VSCode Makefile to allow compilation of multiple .c files instead of just one (main.c).
- Replaced `SRC` and `OBJS` definitions to dynamically include all .c and .h files in the project.
- This change enables automatic handling of any number of source files specifically in the VSCode setup.
pull/4397/head
Alan Arrecis 2 달 전
committed by GitHub
부모
커밋
b201b74c3f
No known key found for this signature in database GPG 키 ID: B5690EEEBB952194
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      projects/VSCode/Makefile

+ 2
- 2
projects/VSCode/Makefile 파일 보기

@ -352,9 +352,9 @@ SRC_DIR = src
OBJ_DIR = obj
# Define all object files from source files
SRC = $(call rwildcard, *.c, *.h)
SRC = $(call rwildcard, ./, *.c, *.h)
#OBJS = $(SRC:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o)
OBJS ?= main.c
OBJS = $(patsubst %.c,%.o,$(filter %.c,$(SRC)))
# For Android platform we call a custom Makefile.Android
ifeq ($(PLATFORM),PLATFORM_ANDROID)

||||||
x
 
000:0
불러오는 중...
취소
저장