16 lines
257 B
Makefile
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)
|