2024-06-18 14:04:23 +00:00
|
|
|
CFLAGS ?=
|
|
|
|
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
LIBSUFFIX = dll
|
|
|
|
else
|
|
|
|
LIBSUFFIX = so
|
|
|
|
endif
|
|
|
|
|
|
|
|
%.$(LIBSUFFIX): %.c
|
|
|
|
$(CC) -shared -fPIC $(CFLAGS) $< -o $@
|
|
|
|
|
2024-06-18 23:30:58 +00:00
|
|
|
all: native/fopen.$(LIBSUFFIX) native/fgetc.$(LIBSUFFIX) native/feof.$(LIBSUFFIX) native/fputc.$(LIBSUFFIX) native/fclose.$(LIBSUFFIX)
|
2024-06-18 14:04:23 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm native/*.$(LIBSUFFIX)
|