From e09f5c6a811ded4bdec898ebcfd383c7e6eb512c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 30 Apr 2016 03:30:09 -0400 Subject: link against libvt100 statically --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 99a5289..271e681 100644 --- a/Makefile +++ b/Makefile @@ -14,17 +14,17 @@ CFLAGS ?= -g -Wall -Wextra -Werror LDFLAGS ?= -g -Wall -Wextra -Werror ALLCFLAGS = $(shell pkg-config --cflags $(LIBS)) -Ilibvt100/src $(CFLAGS) -ALLLDFLAGS = $(shell pkg-config --libs $(LIBS)) -Llibvt100 -lvt100 $(LDFLAGS) +ALLLDFLAGS = $(shell pkg-config --libs $(LIBS)) $(LDFLAGS) MAKEDEPEND = $(CC) $(ALLCFLAGS) -M -MP -MT '$@ $(@:$(BUILD)%.o=$(BUILD).%.d)' build: $(OUT) -$(OUT): $(OBJ) libvt100/libvt100.so +$(OUT): $(OBJ) libvt100/libvt100.a $(CC) $(ALLLDFLAGS) -o $@ $^ -libvt100/libvt100.so: - cd libvt100 && make +libvt100/libvt100.a: + cd libvt100 && make static $(BUILD)%.o: $(SRC)%.c @mkdir -p $(BUILD) -- cgit v1.2.3-54-g00ecf