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