diff options
author | B. Bergeron <[email protected]> | 2025-03-25 01:17:02 -0400 |
---|---|---|
committer | B. Bergeron <[email protected]> | 2025-03-25 02:18:40 -0400 |
commit | 561874f8fa0b0bb3fc04e1e16d8601e53fab1902 (patch) | |
tree | 07b13a4a416796550e78ce9e30743ba3830481b7 /Makefile |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
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 |