liblabafile/Makefile
2024-06-18 19:04:23 +05:00

16 lines
257 B
Makefile

CFLAGS ?=
ifeq ($(OS),Windows_NT)
LIBSUFFIX = dll
else
LIBSUFFIX = so
endif
%.$(LIBSUFFIX): %.c
$(CC) -shared -fPIC $(CFLAGS) $< -o $@
all: native/fopen.$(LIBSUFFIX) native/fgetc.$(LIBSUFFIX) native/feof.$(LIBSUFFIX)
clean:
rm native/*.$(LIBSUFFIX)