GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)

This commit is contained in:
lai
2026-09-06 03:52:57 +08:00
commit b1928b41c0
21813 changed files with 4413081 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
ifeq ($(CFG_XMEDIA_EXPORT_FLAG),)
SDK_DIR := $(shell cd $(CURDIR)/../../../ && /bin/pwd)
endif
include $(SDK_DIR)/build/base.mk
include $(SDK_DIR)/sample/quickstart/quickstart_base.mk
INCLUDES := -I$(SDK_DIR)/sample/quickstart/media_comm
INCLUDES += -I$(SDK_DIR)/sample/quickstart
INCLUDES += $(SAMPLE_INCLUDES)
LIBS := $(SAMPLE_LIBS)
TARGET:= sample_quickstart
CFLAGS := $(SAMPLE_CFLAGS) $(LIBS) $(INCLUDES)
SRCS := $(wildcard ./quickstart_ramfs.c)
SRCS += $(wildcard ./../quickstart_comm.c)
SRCS += $(wildcard ./../media_comm/media_comm.c)
OBJS := $(patsubst %.c, %.o, $(SRCS))
.PHONY: all clean
all: $(OBJS)
$(AT)$(CC) -o $(TARGET) $^ $(CFLAGS)
$(AT)$(STRIP) $(TARGET)
%.o : %.c
$(AT)$(CC) -c -o $@ $< $(CFLAGS)
clean:
$(AT)rm -rf $(OBJS) $(TARGET)