Files
HackerOoT/tools/com-plugin/Makefile
2025-02-11 17:21:23 +01:00

22 lines
352 B
Makefile

-include ../print_rules.mk
TARGET := common-plugin.so
SOURCES := plugin.c
CC := gcc
CFLAGS := -Wall -Wextra -std=gnu11 -O2 -fPIC -DHAVE_STDINT_H
DEP_FILES := $(TARGET:.so=.d)
.PHONY: all clean
all: $(TARGET)
clean:
$(V)$(RM) $(TARGET) $(DEP_FILES)
$(TARGET): $(SOURCES)
$(V)$(CC) -shared $(CFLAGS) -MMD -o $@ $(SOURCES)
-include $(DEP_FILES)