XCOM2WotC-f35/Makefile
2021-12-06 04:22:52 +03:00

19 lines
383 B
Makefile

.PHONY: all clean
RES_LIB_NAME = liblibc_dlopen_mode
RES_LIB = $(RES_LIB_NAME).so
SRCS = \
libc_dlopen_mode.c
CFLAGS += -fpic -shared -flto -Wl,--version-script -Wl,version.map -Wl,--as-needed
#
# Add `--save-temp` to collect more details about created shared library
all: $(RES_LIB)
$(RES_LIB): $(SRCS) version.map
$(CC) $(CFLAGS) -o $@ $(SRCS)
clean:
$(RM) $(RES_LIB)