1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:50:05 +08:00
SpaceVim/bundle/vimproc.vim/make_unix.mak

21 lines
429 B
Makefile
Raw Normal View History

2020-06-14 23:42:40 +08:00
# for *nix platform.
ifneq (,$(wildcard /lib*/ld-linux*.so.2))
SUFFIX=linux$(if $(wildcard /lib*/ld-linux*64.so.2),64,32)
else
SUFFIX=unix
endif
TARGET=lib/vimproc_$(SUFFIX).so
SRC=src/proc.c
CFLAGS+=-W -O2 -Wall -Wno-unused -Wno-unused-parameter -std=gnu99 -pedantic -shared -fPIC
LIBS=-lutil
all: $(TARGET)
$(TARGET): $(SRC) src/vimstack.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET) $(SRC) $(LIBS)
clean:
rm -f $(TARGET)