summaryrefslogblamecommitdiffhomepage
path: root/auto/modules/go/make
blob: aa93d3d68733689b93dfa7577fde8ce79b89fe39 (plain) (tree)























                                                   

# Copyright (C) Max Romanov
# Copyright (C) NGINX, Inc.


$echo >> $NXT_MAKEFILE
$echo >> $NXT_MAKEFILE


# The go module object files.

for nxt_src in $NXT_GO_MODULE_SRCS
do
    nxt_obj=`$echo $nxt_src | sed -e "s/\.c$/\.o/"`
    cat << END >> $NXT_MAKEFILE

$NXT_BUILD_DIR/$nxt_obj:	$nxt_src
	\$(CC) -c \$(CFLAGS) \$(NXT_INCS) \\
		$NXT_LIB_AUX_CFLAGS \\
	-o $NXT_BUILD_DIR/$nxt_obj \\
	$nxt_src
END

done