Vanilla FreeBSD make is now supported for src

This commit is contained in:
Roy Marples 2007-11-15 15:25:51 +00:00
parent 0c25b359de
commit 959219f236
2 changed files with 10 additions and 4 deletions

View File

@ -101,8 +101,8 @@ LDFLAGS += -Wl,-rpath .
_OS_SH = u=`uname -s`; case "$${u}" in *BSD|DragonFly) echo "BSD";; *) echo "$${u}";; esac _OS_SH = u=`uname -s`; case "$${u}" in *BSD|DragonFly) echo "BSD";; *) echo "$${u}";; esac
_OS != $(_OS_SH) _OS != $(_OS_SH)
OS ?= $(_OS)$(shell $(_OS_SH)) OS ?= $(_OS)$(shell $(_OS_SH))
-include Makefile.$(OS) include Makefile.$(OS)
-include Makefile.$(PAM) include Makefile.$(PAM)
all: .depend $(TARGET) all: .depend $(TARGET)
@ -166,13 +166,15 @@ install: $(TARGET)
clean-links: clean-links:
rm -f $(ALL_LINKS) rm -f $(ALL_LINKS)
clean: clean-links clean: clean-links
echo > .depend
touch -r Makefile .depend
rm -f $(TARGET) rm -f $(TARGET)
rm -f *.o *~ *.core *.so *.a .depend rm -f *.o *~ *.core *.so *.a
check: check:
$(MAKE) -C test $@ $(MAKE) -C test $@
-include .depend include .depend
_DEPS != ls *.c *.h _DEPS != ls *.c *.h
.depend: $(_DEPS)$(wildcard *.c *.h) .depend: $(_DEPS)$(wildcard *.c *.h)
$(CC) $(CPPFLAGS) -MM *.c > .depend $(CC) $(CPPFLAGS) -MM *.c > .depend

4
src/Makefile. Normal file
View File

@ -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