mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 03:00:06 +08:00
18 lines
365 B
Makefile
18 lines
365 B
Makefile
# for *BSD platform.
|
|
|
|
SUFFIX!=uname -sm | tr '[:upper:]' '[:lower:]' | sed -e 's/ /_/'
|
|
|
|
TARGET=lib/vimproc_$(SUFFIX).so
|
|
|
|
SRC=src/proc.c
|
|
CFLAGS+=-W -O2 -Wall -Wno-unused -Wno-unused-parameter -std=gnu99 -pedantic -shared -fPIC
|
|
LDFLAGS+=-lutil
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(SRC) src/vimstack.c
|
|
$(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -f $(TARGET)
|