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

25 lines
468 B
Makefile

# For SunOS
ifneq ($(SUNCC),)
CC=$(SUNCC)
CFLAGS+=-errwarn -xc99 -xO3 -native -KPIC
LDFLAGS+=-G
else # gcc
CC=gcc
CFLAGS+=-W -Wall -Wno-unused -Wno-unused-parameter -std=c99 -O2 -fPIC -pedantic
LDFLAGS+=-shared
endif
CPPFLAGS+=-D_XPG6 -D__EXTENSIONS__
TARGET=lib/vimproc_unix.so
SRC=src/proc.c src/ptytty.c
INC=src/vimstack.c src/ptytty.h
all: $(TARGET)
$(TARGET): $(SRC) $(INC)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) $(SRC) $(LDFLAGS)
clean:
rm -f $(TARGET)