liblabafile/Makefile

16 lines
310 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) native/fputc.$(LIBSUFFIX) native/fclose.$(LIBSUFFIX)
clean:
rm native/*.$(LIBSUFFIX)