Project = lsof
UserType = Administrator
ToolType = Commands
GnuNoChown = YES
include $(MAKEFILEPATH)/CoreOS/ReleaseControl/GNUSource.make
Install_Target = install-strip
Extra_Install_Flags = "DEBUG=\"-g\""
Configure = $(BuildDirectory)/Configure
Configure_Flags = -n darwin
lazy_install_source:: shadow_source
UNIQUE := $(shell echo $$$$)
LSOF_MAKEFILE = $(OBJROOT)/Makefile
LSOF_MACHINE_H = $(OBJROOT)/dialects/darwin/machine.h
ConfigStamp2 = $(ConfigStamp)2
configure:: $(ConfigStamp2)
$(ConfigStamp2): $(ConfigStamp)
$(_v) $(CAT) $(LSOF_MAKEFILE) | \
$(SED) -e 's@^\(DEBUG=\).*@\1 -O3@' \
> /tmp/build.lsof.$(UNIQUE)
$(_v) $(MV) -f /tmp/build.lsof.$(UNIQUE) $(LSOF_MAKEFILE)
$(_v) $(CAT) $(LSOF_MACHINE_H) | \
$(SED) -e 's@^.*\( -e 's@^.*\( > /tmp/build.lsof.$(UNIQUE)
$(_v) $(MV) -f /tmp/build.lsof.$(UNIQUE) $(LSOF_MACHINE_H)
$(_v) $(TOUCH) $(ConfigStamp2)