mirror of https://github.com/zeldaret/oot.git
20 lines
316 B
Makefile
20 lines
316 B
Makefile
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:
|
|
$(RM) $(TARGET) $(DEP_FILES)
|
|
|
|
$(TARGET): $(SOURCES)
|
|
$(CC) -shared $(CFLAGS) -MMD -o $@ $(SOURCES)
|
|
|
|
-include $(DEP_FILES)
|