Added Makefile.bsd as make doesn't like ifeq/else/endif
authorRobert Pengelly <robertapengelly@hotmail.com>
Mon, 15 Sep 2025 05:34:23 +0000 (06:34 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Mon, 15 Sep 2025 05:34:23 +0000 (06:34 +0100)
Makefile.bsd [new file with mode: 0644]

diff --git a/Makefile.bsd b/Makefile.bsd
new file mode 100644 (file)
index 0000000..b048cdf
--- /dev/null
@@ -0,0 +1,20 @@
+#******************************************************************************
+# @file             Makefile.bsd
+#******************************************************************************
+SRCDIR              ?=  $(CURDIR)
+VPATH               :=  $(SRCDIR)
+
+CC                  :=  gcc
+CFLAGS              :=  -D_FILE_OFFSET_BITS=64 -O2 -Wall -Werror -Wextra -ansi -pedantic -std=c90
+
+CSRC                :=  cstr.c hashtab.c lib.c read.c report.c rule.c variable.c xmake.c
+
+all: xmake
+
+clean:
+
+       if [ -f xmake ]; then rm -rf xmake; fi
+       if [ -f xmake.exe ]; then rm -rf xmake.exe; fi
+
+xmake: $(CSRC)
+       $(CC) $(CFLAGS) -o $@ $^