Files
2026-08-24 10:03:24 +08:00

27 lines
484 B
Makefile

TARGET = std_img_check
SRCS = std_check_main.c
OUT_DIR ?= .
all: $(TARGET)
CFLAGS+= -Wall -Wextra -fPIC -Os
LDFLAGS += -L$(STAGING_DIR)/usr/lib/ -Wall -Wextra -fPIC -Os -lm -lpthread -ltv -ltvclient
CFLAGS += \
-I inc/ \
-I$(STAGING_DIR)/usr/include/
$(TARGET): $(OBJ)
$(CC) $(TARGET_CFLAGS) $(CFLAGS) -D_FILE_OFFSET_BITS=64 $(SRCS) $(LDFLAGS) -o $(OUT_DIR)/$@
.PHONY: clean
clean:
rm -f *.o $(OUT_DIR)/$(TARGET)
install:
cp $(OUT_DIR)/$(TARGET) $(TARGET_DIR)/usr/bin