mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:40:05 +08:00
27 lines
430 B
Makefile
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)
|