# uswipl - dumbed-Down SWI-Prolog REPL # See LICENSE file for copyright and license details. .POSIX: CFLAGS = -std=c99 -Wall -Wextra $(shell pkg-config --cflags swipl) -D_POSIX_C_SOURCE=200809L LDFLAGS = $(shell pkg-config --libs swipl) -Wl,-rpath,$(shell pkg-config --variable=libdir swipl) TARGET = uswipl SRC = uswipl.c all: $(TARGET) $(TARGET): $(SRC) $(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LDFLAGS) clean: rm -f $(TARGET) .PHONY: all clean