mirror of
https://github.com/HackerN64/HackerOoT.git
synced 2026-01-21 10:37:37 -08:00
22 lines
352 B
Makefile
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)
|