aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-15 15:25:51 +0000
committerRoy Marples <roy@marples.name>2007-11-15 15:25:51 +0000
commit959219f2361038f3b4faa0c7fd04a8a9dd33b7eb (patch)
tree5233d6b21e4d6ae82b0b60d499de3d9632910b5f
parent0c25b359de8d4e0900f3ab4bd098736ed97b412d (diff)
Vanilla FreeBSD make is now supported for src
-rw-r--r--src/Makefile10
-rw-r--r--src/Makefile.4
2 files changed, 10 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile
index c9eb2d45..90e23153 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -101,8 +101,8 @@ LDFLAGS += -Wl,-rpath .
_OS_SH = u=`uname -s`; case "$${u}" in *BSD|DragonFly) echo "BSD";; *) echo "$${u}";; esac
_OS != $(_OS_SH)
OS ?= $(_OS)$(shell $(_OS_SH))
--include Makefile.$(OS)
--include Makefile.$(PAM)
+include Makefile.$(OS)
+include Makefile.$(PAM)
all: .depend $(TARGET)
@@ -166,13 +166,15 @@ install: $(TARGET)
clean-links:
rm -f $(ALL_LINKS)
clean: clean-links
+ echo > .depend
+ touch -r Makefile .depend
rm -f $(TARGET)
- rm -f *.o *~ *.core *.so *.a .depend
+ rm -f *.o *~ *.core *.so *.a
check:
$(MAKE) -C test $@
--include .depend
+include .depend
_DEPS != ls *.c *.h
.depend: $(_DEPS)$(wildcard *.c *.h)
$(CC) $(CPPFLAGS) -MM *.c > .depend
diff --git a/src/Makefile. b/src/Makefile.
new file mode 100644
index 00000000..baa0cf1c
--- /dev/null
+++ b/src/Makefile.
@@ -0,0 +1,4 @@
+# Empty Makefile so that we can do this
+#include Makefile.$(FOO)
+# where FOO is unset.
+# This is needed as not all make implementations can optionally include a Makefile