srcdir		= ../base-passwd-3.5.29
VPATH		= ../base-passwd-3.5.29
top_srcdir	= ../base-passwd-3.5.29

# Compilation tools
CC		= aarch64-poky-linux-gcc  --sysroot=/mnt/slave/workspace/izumo-bisyamon-common/projects/ebisu-bsp/imx-4.14.78_1.0.0/out_sony-bisya-ac_sony-bisya-model-ac_release/tmp/work/aarch64-poky-linux/base-passwd/3.5.29-r0/recipe-sysroot
CFLAGS		=   -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/mnt/slave/workspace/izumo-bisyamon-common/projects/ebisu-bsp/imx-4.14.78_1.0.0/out_sony-bisya-ac_sony-bisya-model-ac_release/tmp/work/aarch64-poky-linux/base-passwd/3.5.29-r0/archiver-work/=/usr/src/debug/base-passwd/3.5.29-r0 -fdebug-prefix-map=/mnt/slave/workspace/izumo-bisyamon-common/projects/ebisu-bsp/imx-4.14.78_1.0.0/out_sony-bisya-ac_sony-bisya-model-ac_release/tmp/work/aarch64-poky-linux/base-passwd/3.5.29-r0/recipe-sysroot= -fdebug-prefix-map=/mnt/slave/workspace/izumo-bisyamon-common/projects/ebisu-bsp/imx-4.14.78_1.0.0/out_sony-bisya-ac_sony-bisya-model-ac_release/tmp/work/aarch64-poky-linux/base-passwd/3.5.29-r0/recipe-sysroot-native=  -DHAVE_CONFIG_H -I.
LDFLAGS		= -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,now,-z,relro 

# Other tools
INSTALL		= /mnt/slave/workspace/izumo-bisyamon-common/projects/ebisu-bsp/imx-4.14.78_1.0.0/out_sony-bisya-ac_sony-bisya-model-ac_release/tmp/hosttools/install -c
INSTALL_DATA	= ${INSTALL} -m 644

# Installation locations
prefix		= /usr
exec_prefix	= /usr
sbindir		= /usr/sbin

# Files used
sources		= update-passwd.c
objects		= $(patsubst %.c, %.o, $(sources))
gen_autoheader	= config.h.in
gen_autoconf	= configure
gen_configure	= config.cache config.status config.log \
		  confdefhs.h config.h Makefile

all: update-passwd

install: all
	mkdir -p $(DESTDIR)$(sbindir)
	$(INSTALL) update-passwd $(DESTDIR)$(sbindir)/

update-passwd.o: version.h

update-passwd: $(objects)
	$(CC) $(LDFLAGS) -o $@ $^

clean:
	rm -f update-passwd update-passwd.o core
	$(MAKE) -C doc clean
	$(MAKE) -C man clean

mrproper realclean: clean
	rm -f $(gen_configure)
	rm -rf autom4te.cache

cvsclean: mrproper
	for i in $(gen_autoconf) $(gen_autoheader) ; do \
		rm -f $(srcdir)/$$i ; \
	done

.PHONY: all install clean mrproper cvsclean
