File: Makefile.in

package info (click to toggle)
sawfish 1%3A1.3.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 11,636 kB
  • ctags: 1,327
  • sloc: lisp: 22,765; ansic: 15,810; sh: 10,203; makefile: 675; perl: 19
file content (101 lines) | stat: -rw-r--r-- 3,533 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Makefile.in -- input for the src directory's Makefile
# $Id: Makefile.in,v 1.42 2003/08/14 07:12:53 jsh Exp $
#
# Copyright (C) 1999 John Harper <john@dcs.warwick.ac.uk>
#
# 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) $(PANGO_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) $(PANGO_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 : $(DL_OBJS)
	$(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)