# Makefile.in -- input for the src directory's Makefile # $Id: Makefile.in,v 1.41 2002/09/28 20:15:33 jsh Exp $ # # Copyright (C) 1999 John Harper # # This file is part of sawmill. # # sawmill is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # sawmill is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with sawmill; see the file COPYING. If not, write to # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. include ../Makedefs top_builddir=.. top_srcdir=@top_srcdir@ srcdir=@srcdir@ VPATH=@srcdir@:@top_srcdir@ SRCS := colors.c cursors.c display.c events.c fonts.c frames.c \ functions.c images.c keys.c main.c multihead.c pixmap-cache.c \ property-cache.c server.c session.c stacking-list.c windows.c OBJS := $(SRCS:.c=.o) DL_SRCS := gradient.c flippers.c x.c selection.c play-sample.c DL_OBJS := $(DL_SRCS:%.c=%.la) client.la DL_DSTS = sawfish/wm/util/gradient.la sawfish/wm/util/flippers.la \ sawfish/wm/util/x.la sawfish/wm/util/selection.la \ sawfish/wm/util/play-sample.la DL_DIRS = sawfish/wm/util override CFLAGS := $(CFLAGS) $(REP_CFLAGS) $(IMAGE_CFLAGS) $(X11_CFLAGS) $(ESD_CFLAGS) all : sawfish libclient.o $(DL_OBJS) .libexec gtk-style sawfish : $(OBJS) $(LIBOBJS) $(rep_LIBTOOL) --mode=link $(CC) -export-dynamic $(LDFLAGS) \ -o sawfish $(OBJS) $(LIBOBJS) $(REP_LIBS) \ $(IMAGE_LIBS) $(X11_LIBS) $(EXTRA_X11_LIBS) $(LIBS) %.la : %.lo $(rep_DL_LD) $(LDFLAGS) -o $@ $< play-sample.la : play-sample.lo $(rep_DL_LD) $(LDFLAGS) -o $@ $< $(ESD_LIBS) $(AUDIOFILE_LIBS) libclient_.lo : libclient.c $(rep_LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $< client.la : client.lo libclient_.lo $(rep_DL_LD) $(LDFLAGS) -o $@ $^ $(X11_LIBS) $(REP_LIBS) $(LIBS) gtk-style : gtk-style.c $(CC) $(CPPFLAGS) $(GTK_CFLAGS) $(LDFLAGS) -o $@ $< $(GTK_LIBS) $(LIBS) install : all installdirs for p in sawfish; do \ $(rep_LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)${bindir}; \ done $(rep_DL_INSTALL) gtk-style $(DESTDIR)${sawfishexecdir} $(foreach x,$(DL_DSTS),\ $(rep_LIBTOOL) --mode=install $(INSTALL_PROGRAM) \ $(notdir $(x)) $(DESTDIR)$(sawfishexecdir)/$(dir $(x));) $(rep_INSTALL_ALIASES) -c . $(DESTDIR)$(sawfishexecdir) $(rep_LIBTOOL) --mode=install $(INSTALL_PROGRAM) client.la $(DESTDIR)$(repexecdir)/sawfish/ uninstall : for p in sawfish; do \ $(rep_LIBTOOL) rm $(DESTDIR)${bindir}/$$p; \ done rm -f $(DESTDIR)$(bindir)/sawfish-client $(rep_DL_UNINSTALL) $(DESTDIR)${sawfishexecdir}/gtk-style for dl in $(DL_DSTS); do \ $(rep_LIBTOOL) rm $(DESTDIR)${sawfishexecdir}/$$dl; \ done $(rep_DL_UNINSTALL) $(DESTDIR)$(repexecdir)/sawfish/client.la installdirs : mkinstalldirs $(SHELL) $< $(DESTDIR)$(bindir) $(DESTDIR)$(repexecdir)/sawfish \ $(foreach x,$(DL_DIRS),$(DESTDIR)$(sawfishexecdir)/$(x)) .libexec : $(SHELL) $(srcdir)/fake-libexec clean : rm -f *~ *.o *.lo *.la *.jlc build.h core realclean : clean rm -f .*.d sawfish sawfish-about.jl Makefile gtk-style rm -rf .libs -include $(SRCS:%.c=.%.d) $(DL_SRCS:%.c=.%.d)