Vanilla FreeBSD make is now supported for src
This commit is contained in:
parent
0c25b359de
commit
959219f236
10
src/Makefile
10
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_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
4
src/Makefile.
Normal 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
|
Loading…
Reference in New Issue
Block a user