mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 05:50:05 +08:00
21 lines
429 B
Makefile
21 lines
429 B
Makefile
|
# 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)
|