From 561874f8fa0b0bb3fc04e1e16d8601e53fab1902 Mon Sep 17 00:00:00 2001 From: "B. Bergeron" Date: Tue, 25 Mar 2025 01:17:02 -0400 Subject: Initial commit --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..88e5ace --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +# 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 -- cgit v1.2.3