This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
niubinghui-luapluginmanage/example/Makefile

26 lines
697 B
Makefile
Raw Normal View History

TOPDIR = ./..
CC=gcc
MAKE=make
TARGET=example
EXAMPLE_FLAG = -DLUAPLUGIN_EXAMPLE
2024-08-16 16:16:16 +08:00
SRC := example_plugin_manage.c
2024-08-16 16:16:16 +08:00
OBJECTS := example_plugin_manage.o
2024-08-16 16:16:16 +08:00
INCLUDE = -I$(TOPDIR)/output/include -I$(TOPDIR)/dependence/include -I$(TOPDIR)/example/include
CFLAGS = -g -Wextra -Wall -O0 -fPIC
# CFLAGS += -pedantic -fsanitize=address
# LDLIBS = -L$(TOPDIR)/output/lib -llua -ldl -lm
2024-08-16 16:16:16 +08:00
LDLIBS += -L$(TOPDIR)/output/libs -lluaplugin -L$(TOPDIR)/dependence/lib -ltoml -lbitmap -lplugin_manager
all:$(OBJECTS)
$(CC) $(CFLAGS) -o $(TARGET) $(OBJECTS) $(LDLIBS)
$(OBJECTS):$(SRC)
$(CC) $(TEST_FLAG) $(INCLUDE) $(CFLAGS) $(SRC) -c $^
clean:
rm -rf $(OBJECTS) $(TARGET)
rm -rf $(TOPDIR)/output/libs/$(TARGET)