1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:40:05 +08:00
SpaceVim/bundle/vimproc.vim/make_mac.mak
2020-06-14 23:42:40 +08:00

27 lines
430 B
Makefile

# for Mac.
ifneq ($(shell which clang),)
CC=clang
else
ifneq ($(shell which llvm-gcc),)
CC=llvm-gcc
else
CC=gcc
endif
endif
TARGET=lib/vimproc_mac.so
SRC=src/proc.c
ARCHS=
CFLAGS+=-O2 -W -Wall -Wno-unused -Wno-unused-parameter -bundle -fPIC $(foreach ARCH,$(ARCHS),-arch $(ARCH))
LDFLAGS=
all: $(TARGET)
$(TARGET): $(SRC) src/vimstack.c
$(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LDFLAGS)
.PHONY : clean
clean:
-rm -f $(TARGET)