#  @configure_input@ 
# 
#  WARNING: Makefile.in is generated by etc/makefile.cook 
#  Do not send patches for this file. 

CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
DEFS = @DEFS@
LIBS = @LIBS@
srcdir = @srcdir@
XCFLAGS = @XCFLAGS@
XLDFLAGS = @XLDFLAGS@
XLIBS = @XLIBS@
WCFLAGS = @WCFLAGS@
WLDFLAGS = @WLDFLAGS@
WLIBS = @WLIBS@
SELINUX_CFLAGS = @SELINUX_CFLAGS@
SELINUX_LIBS = @SELINUX_LIBS@
PASSWDLIB = @PASSWDLIB@
CC = @CC@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
DESTDIR =
NLSDIR = @NLSDIR@
xgettext = @XGETTEXT@
msgfmt = @MSGFMT@
ranlib = @RANLIB@
ar = ar

cc = $(CC)
cflags = $(CPPFLAGS) $(CFLAGS) $(DEFS) -I./include
ldflags = $(LDFLAGS) -L./bin
libs = $(LIBS) -lwdm

wdmLogin_cflags = $(cflags) $(XCFLAGS) $(WCFLAGS)
wdmLogin_ldflags = $(ldflags) $(XLDFLAGS) $(WLDFLAGS)
wdmLogin_libs = $(libs) $(XLIBS) $(WLIBS)

wdmPrefs_cflags = $(cflags) $(XCFLAGS) $(WCFLAGS)
wdmPrefs_ldflags = $(ldflags) $(XLDFLAGS) $(WLDFLAGS)
wdmPrefs_libs = $(libs) $(XLIBS) $(WLIBS)

wdmChooser_cflags = $(cflags) $(XCFLAGS) $(WCFLAGS)
wdmChooser_ldflags = $(ldflags) $(XLDFLAGS) $(WLDFLAGS)
wdmChooser_libs = $(libs) $(XLIBS) $(WLIBS)

TestLogin_cflags = $(cflags) $(XCFLAGS) $(WCFLAGS)
TestLogin_ldflags = $(ldflags) $(XLDFLAGS) $(WLDFLAGS)
TestLogin_libs = $(libs) $(XLIBS) $(WLIBS)

wdm_cflags = $(cflags) $(XCFLAGS) $(WCFLAGS) $(SELINUX_CFLAGS)
wdm_ldflags = $(ldflags) $(XLDFLAGS) $(WLDFLAGS)
wdm_libs = $(libs) $(XLIBS) $(WLIBS) $(PASSWDLIB) $(SELINUX_LIBS) \
	-lXmu -lXau -lXdmcp

libwdm_cflags = $(cflags) $(XCFLAGS) $(WCFLAGS)
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_SCRIPT=@INSTALL_SCRIPT@
INSTALL_DATA=@INSTALL_DATA@
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
DMDIR=@DMDIR@
GFXDIR=@GFXDIR@
MANDIR=@mandir@
PAMDIR=@PAMDIR@
USE_PAM=@USE_PAM@
NLSDIR=@NLSDIR@
I18N=@I18N@
FAKEHOME=@FAKEHOME@

all: all-bin all-doc all-config all-nls-$(I18N)

install: install-bin install-config install-doc install-gfx install-nls-$(I18N)

all-bin: bin/TestLogin bin/wdm bin/wdmChooser bin/wdmLogin bin/wdmPrefs

install-bin: $(DESTDIR)$(bindir)/wdm $(DESTDIR)$(bindir)/wdmLogin


all-config: configs/Xclients configs/Xservers configs/Xservers.ws configs/Xsession configs/Xsetup_0 configs/wdm-config configs/wdmReconfig

install-config: $(DESTDIR)$(DMDIR)/GiveConsole $(DESTDIR)$(DMDIR)/TakeConsole $(DESTDIR)$(DMDIR)/Xaccess $(DESTDIR)$(DMDIR)/Xresources $(DESTDIR)$(DMDIR)/Xservers.fs $(DESTDIR)$(DMDIR)/Xsession.XFree86 $(DESTDIR)$(DMDIR)/Xsession.orig $(DESTDIR)$(DMDIR)/Xclients $(DESTDIR)$(DMDIR)/Xservers $(DESTDIR)$(DMDIR)/Xservers.ws $(DESTDIR)$(DMDIR)/Xsession $(DESTDIR)$(DMDIR)/Xsetup_0 $(DESTDIR)$(DMDIR)/wdm-config $(DESTDIR)$(DMDIR)/wdmReconfig $(DESTDIR)$(DMDIR)/wdm-config.in $(DESTDIR)$(DMDIR)/Xclients.in install-pam-$(USE_PAM) $(DESTDIR)$(DMDIR)/authdir
	install -d -m 0700 $(DESTDIR)$(FAKEHOME)

install-pam-no:

install-pam-yes: $(DESTDIR)$(PAMDIR)/wdm

$(DESTDIR)$(DMDIR)/authdir:
	$(INSTALL) -m 700 -d $@

all-doc: doc/wdm.man

all-nls-yes: po/cs.mo po/cy.mo po/de.mo po/en.mo po/es.mo po/fr_FR.mo po/ja.mo po/ru.mo

all-nls-no:

install-doc: $(DESTDIR)$(MANDIR)/man1/wdmLogin.1 $(DESTDIR)$(MANDIR)/man1/wdm.1

install-gfx: $(DESTDIR)$(GFXDIR)/Eagle.xpm $(DESTDIR)$(GFXDIR)/Earth.jpg $(DESTDIR)$(GFXDIR)/Earth200x130.xpm $(DESTDIR)$(GFXDIR)/GnuLinux-logo.jpg $(DESTDIR)$(GFXDIR)/Stars.jpg $(DESTDIR)$(GFXDIR)/StarsLogo.jpg $(DESTDIR)$(GFXDIR)/gnuLogo.xpm

install-nls-yes: $(DESTDIR)$(NLSDIR)/cs/LC_MESSAGES/wdm.mo $(DESTDIR)$(NLSDIR)/cy/LC_MESSAGES/wdm.mo $(DESTDIR)$(NLSDIR)/de/LC_MESSAGES/wdm.mo $(DESTDIR)$(NLSDIR)/en/LC_MESSAGES/wdm.mo $(DESTDIR)$(NLSDIR)/es/LC_MESSAGES/wdm.mo $(DESTDIR)$(NLSDIR)/fr_FR/LC_MESSAGES/wdm.mo $(DESTDIR)$(NLSDIR)/ja/LC_MESSAGES/wdm.mo $(DESTDIR)$(NLSDIR)/ru/LC_MESSAGES/wdm.mo

install-nls-no:

src/TestLogin/TestLogin.o: src/TestLogin/TestLogin.c include/wdmlib.h
	$(CC) -c $(TestLogin_cflags) src/TestLogin/TestLogin.c -o src/TestLogin/TestLogin.o

src/chooser.o: src/chooser.c include/dm.h include/wdmconfig.h include/config.h include/dm_socket.h
	$(CC) -c $(cflags) src/chooser.c -o src/chooser.o

src/libwdm/debug.o: src/libwdm/debug.c include/wdmlib.h
	$(CC) -c $(libwdm_cflags) src/libwdm/debug.c -o src/libwdm/debug.o

src/libwdm/environment.o: src/libwdm/environment.c include/wdmlib.h
	$(CC) -c $(libwdm_cflags) src/libwdm/environment.c -o src/libwdm/environment.o

src/libwdm/names.o: src/libwdm/names.c
	$(CC) -c $(libwdm_cflags) src/libwdm/names.c -o src/libwdm/names.o

src/libwdm/plcheckers.o: src/libwdm/plcheckers.c include/wdmlib.h
	$(CC) -c $(libwdm_cflags) src/libwdm/plcheckers.c -o src/libwdm/plcheckers.o

src/wdm/Greet.o: src/wdm/Greet.c include/dm.h include/wdmconfig.h include/config.h include/greet.h include/wdmlib.h
	$(CC) -c $(wdm_cflags) src/wdm/Greet.c -o src/wdm/Greet.o

src/wdm/access.o: src/wdm/access.c include/dm.h include/wdmconfig.h include/config.h include/dm_socket.h include/wdmlib.h
	$(CC) -c $(wdm_cflags) src/wdm/access.c -o src/wdm/access.o

src/wdm/auth.o: src/wdm/auth.c include/dm.h include/wdmconfig.h include/config.h include/dm_auth.h include/wdmlib.h include/dm_socket.h
	$(CC) -c $(wdm_cflags) src/wdm/auth.c -o src/wdm/auth.o

src/wdm/choose.o: src/wdm/choose.c include/dm.h include/wdmconfig.h include/config.h include/dm_socket.h include/wdmlib.h
	$(CC) -c $(wdm_cflags) src/wdm/choose.c -o src/wdm/choose.o

src/wdm/daemon.o: src/wdm/daemon.c include/dm.h include/wdmconfig.h include/config.h include/wdmlib.h
	$(CC) -c $(wdm_cflags) src/wdm/daemon.c -o src/wdm/daemon.o

src/wdm/dm.o: src/wdm/dm.c include/dm.h include/wdmconfig.h include/config.h include/wdm.h include/dm_auth.h include/wdmlib.h
	$(CC) -c $(wdm_cflags) src/wdm/dm.c -o src/wdm/dm.o

src/wdm/dpylist.o: src/wdm/dpylist.c include/dm.h include/wdmconfig.h include/config.h include/wdmlib.h
	$(CC) -c $(wdm_cflags) src/wdm/dpylist.c -o src/wdm/dpylist.o

src/wdm/file.o: src/wdm/file.c include/dm.h include/wdmconfig.h include/config.h include/wdmlib.h
	$(CC) -c $(wdm_cflags) src/wdm/file.c -o src/wdm/file.o

src/wdm/genauth.o: src/wdm/genauth.c include/dm.h include/wdmconfig.h include/config.h include/dm_auth.h include/wdmlib.h
	$(CC) -c $(wdm_cflags) src/wdm/genauth.c -o src/wdm/genauth.o

src/wdm/loghelpers.o: src/wdm/loghelpers.c include/wdmlib.h include/dm.h include/wdmconfig.h include/config.h
	$(CC) -c $(wdm_cflags) src/wdm/loghelpers.c -o src/wdm/loghelpers.o

src/wdm/mitauth.o: src/wdm/mitauth.c include/dm.h include/wdmconfig.h include/config.h include/dm_auth.h
	$(CC) -c $(wdm_cflags) src/wdm/mitauth.c -o src/wdm/mitauth.o

src/wdm/netaddr.o: src/wdm/netaddr.c include/dm.h include/wdmconfig.h include/config.h include/dm_socket.h include/wdmlib.h
	$(CC) -c $(wdm_cflags) src/wdm/netaddr.c -o src/wdm/netaddr.o

src/wdm/policy.o: src/wdm/policy.c include/dm.h include/wdmconfig.h include/config.h include/dm_auth.h include/dm_socket.h
	$(CC) -c $(wdm_cflags) src/wdm/policy.c -o src/wdm/policy.o

src/wdm/protodpy.o: src/wdm/protodpy.c include/dm.h include/wdmconfig.h include/config.h include/wdmlib.h
	$(CC) -c $(wdm_cflags) src/wdm/protodpy.c -o src/wdm/protodpy.o

src/wdm/reset.o: src/wdm/reset.c include/dm.h include/wdmconfig.h include/config.h include/wdmlib.h
	$(CC) -c $(wdm_cflags) src/wdm/reset.c -o src/wdm/reset.o

src/wdm/resource.o: src/wdm/resource.c include/dm.h include/wdmconfig.h include/config.h include/wdmlib.h
	$(CC) -c $(wdm_cflags) src/wdm/resource.c -o src/wdm/resource.o

src/wdm/server.o: src/wdm/server.c include/dm.h include/wdmconfig.h include/config.h include/dm_socket.h include/wdmlib.h
	$(CC) -c $(wdm_cflags) src/wdm/server.c -o src/wdm/server.o

src/wdm/session.o: src/wdm/session.c include/dm.h include/wdmconfig.h include/config.h include/dm_auth.h include/greet.h include/wdmlib.h
	$(CC) -c $(wdm_cflags) src/wdm/session.c -o src/wdm/session.o

src/wdm/socket.o: src/wdm/socket.c include/dm.h include/wdmconfig.h include/config.h include/dm_socket.h include/wdmlib.h
	$(CC) -c $(wdm_cflags) src/wdm/socket.c -o src/wdm/socket.o

src/wdm/util.o: src/wdm/util.c include/dm.h include/wdmconfig.h include/config.h include/wdmlib.h
	$(CC) -c $(wdm_cflags) src/wdm/util.c -o src/wdm/util.o

src/wdm/verify.o: src/wdm/verify.c include/dm.h include/wdmconfig.h include/config.h include/greet.h include/wdmlib.h
	$(CC) -c $(wdm_cflags) src/wdm/verify.c -o src/wdm/verify.o

src/wdm/xdmcp.o: src/wdm/xdmcp.c include/dm.h include/wdmconfig.h include/config.h include/dm_auth.h include/dm_socket.h include/wdmlib.h
	$(CC) -c $(wdm_cflags) src/wdm/xdmcp.c -o src/wdm/xdmcp.o

src/wdmChooser/chooser.o: src/wdmChooser/chooser.c include/wdmlib.h
	$(CC) -c $(wdmChooser_cflags) src/wdmChooser/chooser.c -o src/wdmChooser/chooser.o

src/wdmLogin/Login.o: src/wdmLogin/Login.c include/wdmconfig.h include/config.h include/wdmlib.h include/wdmLogin.h
	$(CC) -c $(wdmLogin_cflags) src/wdmLogin/Login.c -o src/wdmLogin/Login.o

src/wdmLogin/config.o: src/wdmLogin/config.c include/wdmconfig.h include/config.h include/wdmlib.h include/wdmLogin.h
	$(CC) -c $(wdmLogin_cflags) src/wdmLogin/config.c -o src/wdmLogin/config.o

src/wdmPrefs/prefs.o: src/wdmPrefs/prefs.c include/config.h include/wdmlib.h include/wdmPrefs.h
	$(CC) -c $(wdmPrefs_cflags) src/wdmPrefs/prefs.c -o src/wdmPrefs/prefs.o

src/wdmPrefs/testPanel.o: src/wdmPrefs/testPanel.c include/config.h include/wdmlib.h include/wdmPrefs.h
	$(CC) -c $(wdmPrefs_cflags) src/wdmPrefs/testPanel.c -o src/wdmPrefs/testPanel.o

src/wdmPrefs/testPanel2.o: src/wdmPrefs/testPanel2.c include/config.h include/wdmlib.h include/wdmPrefs.h
	$(CC) -c $(wdmPrefs_cflags) src/wdmPrefs/testPanel2.c -o src/wdmPrefs/testPanel2.o

bin/TestLogin: src/TestLogin/TestLogin.o bin/libwdm.a
	mkdir -p bin
	$(CC) $(TestLogin_ldflags) src/TestLogin/TestLogin.o $(TestLogin_libs) -o bin/TestLogin

$(DESTDIR)$(bindir)/TestLogin: bin/TestLogin
	$(INSTALL) -d $(@D)
	$(INSTALL_PROGRAM) bin/TestLogin $@

bin/wdm: src/wdm/Greet.o src/wdm/access.o src/wdm/auth.o src/wdm/choose.o src/wdm/daemon.o src/wdm/dm.o src/wdm/dpylist.o src/wdm/file.o src/wdm/genauth.o src/wdm/loghelpers.o src/wdm/mitauth.o src/wdm/netaddr.o src/wdm/policy.o src/wdm/protodpy.o src/wdm/reset.o src/wdm/resource.o src/wdm/server.o src/wdm/session.o src/wdm/socket.o src/wdm/util.o src/wdm/verify.o src/wdm/xdmcp.o bin/libwdm.a
	mkdir -p bin
	$(CC) $(wdm_ldflags) src/wdm/Greet.o src/wdm/access.o src/wdm/auth.o src/wdm/choose.o src/wdm/daemon.o src/wdm/dm.o src/wdm/dpylist.o src/wdm/file.o src/wdm/genauth.o src/wdm/loghelpers.o src/wdm/mitauth.o src/wdm/netaddr.o src/wdm/policy.o src/wdm/protodpy.o src/wdm/reset.o src/wdm/resource.o src/wdm/server.o src/wdm/session.o src/wdm/socket.o src/wdm/util.o src/wdm/verify.o src/wdm/xdmcp.o $(wdm_libs) -o bin/wdm

$(DESTDIR)$(bindir)/wdm: bin/wdm
	$(INSTALL) -d $(@D)
	$(INSTALL_PROGRAM) bin/wdm $@

bin/wdmChooser: src/wdmChooser/chooser.o bin/libwdm.a
	mkdir -p bin
	$(CC) $(wdmChooser_ldflags) src/wdmChooser/chooser.o $(wdmChooser_libs) -o bin/wdmChooser

$(DESTDIR)$(bindir)/wdmChooser: bin/wdmChooser
	$(INSTALL) -d $(@D)
	$(INSTALL_PROGRAM) bin/wdmChooser $@

bin/wdmLogin: src/wdmLogin/Login.o src/wdmLogin/config.o bin/libwdm.a
	mkdir -p bin
	$(CC) $(wdmLogin_ldflags) src/wdmLogin/Login.o src/wdmLogin/config.o $(wdmLogin_libs) -o bin/wdmLogin

$(DESTDIR)$(bindir)/wdmLogin: bin/wdmLogin
	$(INSTALL) -d $(@D)
	$(INSTALL_PROGRAM) bin/wdmLogin $@

bin/wdmPrefs: src/wdmPrefs/prefs.o src/wdmPrefs/testPanel.o src/wdmPrefs/testPanel2.o bin/libwdm.a
	mkdir -p bin
	$(CC) $(wdmPrefs_ldflags) src/wdmPrefs/prefs.o src/wdmPrefs/testPanel.o src/wdmPrefs/testPanel2.o $(wdmPrefs_libs) -o bin/wdmPrefs

$(DESTDIR)$(bindir)/wdmPrefs: bin/wdmPrefs
	$(INSTALL) -d $(@D)
	$(INSTALL_PROGRAM) bin/wdmPrefs $@

bin/libwdm.a: src/libwdm/debug.o src/libwdm/environment.o src/libwdm/names.o src/libwdm/plcheckers.o
	mkdir -p bin
	$(ar) cru bin/libwdm.a src/libwdm/debug.o src/libwdm/environment.o src/libwdm/names.o src/libwdm/plcheckers.o
	$(ranlib) bin/libwdm.a

$(DESTDIR)$(MANDIR)/man1/wdmLogin.1: doc/wdmLogin.man
	$(INSTALL) -d $(@D)
	$(INSTALL_DATA) doc/wdmLogin.man $@

doc/wdm.man: doc/wdm.man.in
	CONFIG_FILES=$@:doc/wdm.man.in CONFIG_HEADERS= ./config.status

$(DESTDIR)$(MANDIR)/man1/wdm.1: doc/wdm.man
	$(INSTALL) -d $(@D)
	$(INSTALL_DATA) doc/wdm.man $@

$(DESTDIR)$(GFXDIR)/Eagle.xpm: pixmaps/Eagle.xpm
	$(INSTALL) -d $(@D)
	$(INSTALL_DATA) pixmaps/Eagle.xpm $@

$(DESTDIR)$(GFXDIR)/Earth.jpg: pixmaps/Earth.jpg
	$(INSTALL) -d $(@D)
	$(INSTALL_DATA) pixmaps/Earth.jpg $@

$(DESTDIR)$(GFXDIR)/Earth200x130.xpm: pixmaps/Earth200x130.xpm
	$(INSTALL) -d $(@D)
	$(INSTALL_DATA) pixmaps/Earth200x130.xpm $@

$(DESTDIR)$(GFXDIR)/GnuLinux-logo.jpg: pixmaps/GnuLinux-logo.jpg
	$(INSTALL) -d $(@D)
	$(INSTALL_DATA) pixmaps/GnuLinux-logo.jpg $@

$(DESTDIR)$(GFXDIR)/Stars.jpg: pixmaps/Stars.jpg
	$(INSTALL) -d $(@D)
	$(INSTALL_DATA) pixmaps/Stars.jpg $@

$(DESTDIR)$(GFXDIR)/StarsLogo.jpg: pixmaps/StarsLogo.jpg
	$(INSTALL) -d $(@D)
	$(INSTALL_DATA) pixmaps/StarsLogo.jpg $@

$(DESTDIR)$(GFXDIR)/gnuLogo.xpm: pixmaps/gnuLogo.xpm
	$(INSTALL) -d $(@D)
	$(INSTALL_DATA) pixmaps/gnuLogo.xpm $@

po/cs.mo: po/cs.po
	$(msgfmt) -o $@ po/cs.po

$(DESTDIR)$(NLSDIR)/cs/LC_MESSAGES/wdm.mo: po/cs.mo
	$(INSTALL) -d $(@D)
	$(INSTALL_DATA) po/cs.mo $@

po/cy.mo: po/cy.po
	$(msgfmt) -o $@ po/cy.po

$(DESTDIR)$(NLSDIR)/cy/LC_MESSAGES/wdm.mo: po/cy.mo
	$(INSTALL) -d $(@D)
	$(INSTALL_DATA) po/cy.mo $@

po/de.mo: po/de.po
	$(msgfmt) -o $@ po/de.po

$(DESTDIR)$(NLSDIR)/de/LC_MESSAGES/wdm.mo: po/de.mo
	$(INSTALL) -d $(@D)
	$(INSTALL_DATA) po/de.mo $@

po/en.mo: po/en.po
	$(msgfmt) -o $@ po/en.po

$(DESTDIR)$(NLSDIR)/en/LC_MESSAGES/wdm.mo: po/en.mo
	$(INSTALL) -d $(@D)
	$(INSTALL_DATA) po/en.mo $@

po/es.mo: po/es.po
	$(msgfmt) -o $@ po/es.po

$(DESTDIR)$(NLSDIR)/es/LC_MESSAGES/wdm.mo: po/es.mo
	$(INSTALL) -d $(@D)
	$(INSTALL_DATA) po/es.mo $@

po/fr_FR.mo: po/fr_FR.po
	$(msgfmt) -o $@ po/fr_FR.po

$(DESTDIR)$(NLSDIR)/fr_FR/LC_MESSAGES/wdm.mo: po/fr_FR.mo
	$(INSTALL) -d $(@D)
	$(INSTALL_DATA) po/fr_FR.mo $@

po/ja.mo: po/ja.po
	$(msgfmt) -o $@ po/ja.po

$(DESTDIR)$(NLSDIR)/ja/LC_MESSAGES/wdm.mo: po/ja.mo
	$(INSTALL) -d $(@D)
	$(INSTALL_DATA) po/ja.mo $@

po/ru.mo: po/ru.po
	$(msgfmt) -o $@ po/ru.po

$(DESTDIR)$(NLSDIR)/ru/LC_MESSAGES/wdm.mo: po/ru.mo
	$(INSTALL) -d $(@D)
	$(INSTALL_DATA) po/ru.mo $@

$(DESTDIR)$(DMDIR)/GiveConsole: configs/GiveConsole
	$(INSTALL) -d $(@D)
	$(INSTALL) -m 0755 configs/GiveConsole $@


$(DESTDIR)$(DMDIR)/TakeConsole: configs/TakeConsole
	$(INSTALL) -d $(@D)
	$(INSTALL) -m 0755 configs/TakeConsole $@


$(DESTDIR)$(DMDIR)/Xaccess: configs/Xaccess
	$(INSTALL) -d $(@D)
	$(INSTALL) -m 0644 configs/Xaccess $@


$(DESTDIR)$(DMDIR)/Xresources: configs/Xresources
	$(INSTALL) -d $(@D)
	$(INSTALL) -m 0644 configs/Xresources $@


$(DESTDIR)$(DMDIR)/Xservers.fs: configs/Xservers.fs
	$(INSTALL) -d $(@D)
	$(INSTALL) -m 0644 configs/Xservers.fs $@


$(DESTDIR)$(DMDIR)/Xsession.XFree86: configs/Xsession.XFree86
	$(INSTALL) -d $(@D)
	$(INSTALL) -m 0755 configs/Xsession.XFree86 $@


$(DESTDIR)$(DMDIR)/Xsession.orig: configs/Xsession.orig
	$(INSTALL) -d $(@D)
	$(INSTALL) -m 0644 configs/Xsession.orig $@


configs/Xclients: configs/Xclients.in
	CONFIG_FILES=$@:configs/Xclients.in CONFIG_HEADERS= ./config.status

$(DESTDIR)$(DMDIR)/Xclients: configs/Xclients
	$(INSTALL) -d $(@D)
	$(INSTALL) -m 0755 configs/Xclients $@


configs/Xservers: configs/Xservers.in
	CONFIG_FILES=$@:configs/Xservers.in CONFIG_HEADERS= ./config.status

$(DESTDIR)$(DMDIR)/Xservers: configs/Xservers
	$(INSTALL) -d $(@D)
	$(INSTALL) -m 0644 configs/Xservers $@


configs/Xservers.ws: configs/Xservers.ws.in
	CONFIG_FILES=$@:configs/Xservers.ws.in CONFIG_HEADERS= ./config.status

$(DESTDIR)$(DMDIR)/Xservers.ws: configs/Xservers.ws
	$(INSTALL) -d $(@D)
	$(INSTALL) -m 0644 configs/Xservers.ws $@


configs/Xsession: configs/Xsession.in
	CONFIG_FILES=$@:configs/Xsession.in CONFIG_HEADERS= ./config.status

$(DESTDIR)$(DMDIR)/Xsession: configs/Xsession
	$(INSTALL) -d $(@D)
	$(INSTALL) -m 0755 configs/Xsession $@


configs/Xsetup_0: configs/Xsetup_0.in
	CONFIG_FILES=$@:configs/Xsetup_0.in CONFIG_HEADERS= ./config.status

$(DESTDIR)$(DMDIR)/Xsetup_0: configs/Xsetup_0
	$(INSTALL) -d $(@D)
	$(INSTALL) -m 0755 configs/Xsetup_0 $@


configs/wdm-config: configs/wdm-config.in
	CONFIG_FILES=$@:configs/wdm-config.in CONFIG_HEADERS= ./config.status

$(DESTDIR)$(DMDIR)/wdm-config: configs/wdm-config
	$(INSTALL) -d $(@D)
	$(INSTALL) -m 0600 configs/wdm-config $@


configs/wdmReconfig: configs/wdmReconfig.in
	CONFIG_FILES=$@:configs/wdmReconfig.in CONFIG_HEADERS= ./config.status

$(DESTDIR)$(DMDIR)/wdmReconfig: configs/wdmReconfig
	$(INSTALL) -d $(@D)
	$(INSTALL) -m 0755 configs/wdmReconfig $@


$(DESTDIR)$(PAMDIR)/wdm: configs/wdm.pamd
	$(INSTALL) -d $(@D)
	$(INSTALL) -m 0644 configs/wdm.pamd $@


$(DESTDIR)$(DMDIR)/wdm-config.in: configs/wdm-config.in
	$(INSTALL) -d $(@D)
	$(INSTALL) -m 0644 configs/wdm-config.in $@


$(DESTDIR)$(DMDIR)/Xclients.in: configs/Xclients.in
	$(INSTALL) -d $(@D)
	$(INSTALL) -m 0644 configs/Xclients.in $@



clean:
	rm -f src/TestLogin/TestLogin.o src/chooser.o src/libwdm/debug.o src/libwdm/environment.o src/libwdm/names.o src/libwdm/plcheckers.o src/wdm/Greet.o src/wdm/access.o src/wdm/auth.o src/wdm/choose.o src/wdm/daemon.o src/wdm/dm.o src/wdm/dpylist.o src/wdm/file.o src/wdm/genauth.o src/wdm/loghelpers.o src/wdm/mitauth.o src/wdm/netaddr.o src/wdm/policy.o src/wdm/protodpy.o src/wdm/reset.o src/wdm/resource.o src/wdm/server.o src/wdm/session.o src/wdm/socket.o src/wdm/util.o src/wdm/verify.o src/wdm/xdmcp.o src/wdmChooser/chooser.o src/wdmLogin/Login.o src/wdmLogin/config.o src/wdmPrefs/prefs.o src/wdmPrefs/testPanel.o src/wdmPrefs/testPanel2.o configs/Xclients configs/Xservers configs/Xservers.ws configs/Xsession configs/Xsetup_0 configs/wdm-config configs/wdmReconfig po/cs.mo po/cy.mo po/de.mo po/en.mo po/es.mo po/fr_FR.mo po/ja.mo po/ru.mo doc/wdm.man bin/TestLogin bin/wdm bin/wdmChooser bin/wdmLogin bin/wdmPrefs bin/libwdm.a

distclean:
	rm -f src/TestLogin/TestLogin.o src/chooser.o src/libwdm/debug.o src/libwdm/environment.o src/libwdm/names.o src/libwdm/plcheckers.o src/wdm/Greet.o src/wdm/access.o src/wdm/auth.o src/wdm/choose.o src/wdm/daemon.o src/wdm/dm.o src/wdm/dpylist.o src/wdm/file.o src/wdm/genauth.o src/wdm/loghelpers.o src/wdm/mitauth.o src/wdm/netaddr.o src/wdm/policy.o src/wdm/protodpy.o src/wdm/reset.o src/wdm/resource.o src/wdm/server.o src/wdm/session.o src/wdm/socket.o src/wdm/util.o src/wdm/verify.o src/wdm/xdmcp.o src/wdmChooser/chooser.o src/wdmLogin/Login.o src/wdmLogin/config.o src/wdmPrefs/prefs.o src/wdmPrefs/testPanel.o src/wdmPrefs/testPanel2.o configs/Xclients configs/Xservers configs/Xservers.ws configs/Xsession configs/Xsetup_0 configs/wdm-config configs/wdmReconfig po/cs.mo po/cy.mo po/de.mo po/en.mo po/es.mo po/fr_FR.mo po/ja.mo po/ru.mo doc/wdm.man bin/TestLogin bin/wdm bin/wdmChooser bin/wdmLogin bin/wdmPrefs bin/libwdm.a bin/TestLogin bin/wdm bin/wdmChooser bin/wdmLogin bin/wdmPrefs config.status config.log include/config.h include/gnuLogo.xpm Makefile
	if test -e bin; then rmdir bin; fi

po/wdm.pot: src/TestLogin/TestLogin.c src/chooser.c src/libwdm/debug.c src/libwdm/environment.c src/libwdm/names.c src/libwdm/plcheckers.c src/wdm/Greet.c src/wdm/access.c src/wdm/auth.c src/wdm/choose.c src/wdm/daemon.c src/wdm/dm.c src/wdm/dpylist.c src/wdm/file.c src/wdm/genauth.c src/wdm/loghelpers.c src/wdm/mitauth.c src/wdm/netaddr.c src/wdm/policy.c src/wdm/protodpy.c src/wdm/reset.c src/wdm/resource.c src/wdm/server.c src/wdm/session.c src/wdm/socket.c src/wdm/util.c src/wdm/verify.c src/wdm/xdmcp.c src/wdmChooser/chooser.c src/wdmLogin/Login.c src/wdmLogin/config.c src/wdmPrefs/prefs.c src/wdmPrefs/testPanel.c src/wdmPrefs/testPanel2.c
	$(xgettext) --keyword=_ --keyword=N_ --default-domain=wdm --output=$@ src/TestLogin/TestLogin.c src/chooser.c src/libwdm/debug.c src/libwdm/environment.c src/libwdm/names.c src/libwdm/plcheckers.c src/wdm/Greet.c src/wdm/access.c src/wdm/auth.c src/wdm/choose.c src/wdm/daemon.c src/wdm/dm.c src/wdm/dpylist.c src/wdm/file.c src/wdm/genauth.c src/wdm/loghelpers.c src/wdm/mitauth.c src/wdm/netaddr.c src/wdm/policy.c src/wdm/protodpy.c src/wdm/reset.c src/wdm/resource.c src/wdm/server.c src/wdm/session.c src/wdm/socket.c src/wdm/util.c src/wdm/verify.c src/wdm/xdmcp.c src/wdmChooser/chooser.c src/wdmLogin/Login.c src/wdmLogin/config.c src/wdmPrefs/prefs.c src/wdmPrefs/testPanel.c src/wdmPrefs/testPanel2.c
