mirror of
https://github.com/vkc-1974/XCOM2WotC-f35.git
synced 2025-12-31 04:13:05 +00:00
19 lines
383 B
Makefile
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)
|