Makefile.am 3.51 KB
Newer Older
Tom Tromey's avatar
Tom Tromey committed
1 2
## Process this file with automake to produce Makefile.in.

Tom Tromey's avatar
Tom Tromey committed
3 4 5
## We require new-style dependency handling.
AUTOMAKE_OPTIONS = 1.2f

6 7 8
# enable swallows for testing only, not for release!
# (it's after 0.20 so I guess swallows can be enabled,
# maybe someone will fix it up)
9
CFLAGS += -D_SWALLOW_
10

Raja R Harinath's avatar
Raja R Harinath committed
11
CXX = mico-c++
Tom Tromey's avatar
Tom Tromey committed
12 13 14
## We set this to force the values in mico-c++ to be used.  Otherwise,
## on Linux boxes, the compilation will fail with the default
## CXXFLAGS.
Raja R Harinath's avatar
Raja R Harinath committed
15
CXXFLAGS =
Tom Tromey's avatar
Tom Tromey committed
16

17 18 19
test:
	echo $(CXXCOMPILE)

Raja R Harinath's avatar
Raja R Harinath committed
20
INCLUDES = -I. -I$(srcdir) 			\
21
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
Tom Tromey's avatar
Tom Tromey committed
22
	-I$(includedir) $(GNOME_INCLUDEDIR)
Elliot Lee's avatar
Elliot Lee committed
23

24
bin_PROGRAMS = panel #launcher_applet
25

26 27 28 29
CORBA_SOURCES = \
	gnome-panel.cc \
	gnome-panel.h

30 31
libpanel_appletincludedir = $(includedir)

32 33
lib_LTLIBRARIES = libpanel_applet.la

34 35
libpanel_applet_la_SOURCES = \
	applet-lib.cc \
Tom Tromey's avatar
Tom Tromey committed
36
	mico-parse.cc \
37
	panel-util.c  \
38
	panel-util.h  \
39
	applet-widget.c \
40 41
	$(CORBA_SOURCES)

42 43 44 45
libpanel_appletinclude_HEADERS = \
	applet-lib.h \
	applet-widget.h

46 47
#libpanel_appletinclude_HEADERS = applet-lib.h \
#	applet-widget.h
48 49

libpanel_applet_la_LDFLAGS = -version-info 0:0:0 -rpath $(libdir)
50
libpanel_applet_la_LIBADD = $(MICO_LIBS) -lm $(DL_LIB)
51 52 53

BUILT_SOURCES = $(CORBA_SOURCES)

54
gnome-panel.cc gnome-panel.h: gnome-panel.idl
55
## `idl' lamely fails to strip the path part of the file
56 57 58
## name when computing the name of the output file, so we prod it a
## little.
	idl --name gnome-panel $(srcdir)/gnome-panel.idl
Elliot Lee's avatar
Elliot Lee committed
59

Arturo Espinosa's avatar
Arturo Espinosa committed
60 61 62 63 64 65
panel_SOURCES = 		\
	drawer.c  		\
	drawer.h  		\
	gdkextra.c		\
	gdkextra.h		\
	main.c			\
66
	main.h			\
Arturo Espinosa's avatar
Arturo Espinosa committed
67
	menu.c  		\
68
	cookie.h		\
69
	cookie.c		\
Arturo Espinosa's avatar
Arturo Espinosa committed
70
	menu.h  		\
71 72
	swallow.c  		\
	swallow.h  		\
Arturo Espinosa's avatar
Arturo Espinosa committed
73 74
	mico-glue.cc		\
	mico-glue.h		\
Tom Tromey's avatar
Tom Tromey committed
75
	mico-parse.cc		\
76
	mico-parse.h		\
Arturo Espinosa's avatar
Arturo Espinosa committed
77 78 79 80 81 82 83
	panel.c			\
	panel.h         	\
	panel_config.c  	\
	panel_config.h		\
	panel_config_global.c  	\
	panel_config_global.h  	\
	panel-widget.c  	\
84
	panel-widget.h		\
85 86 87 88
	snapped-widget.c  	\
	snapped-widget.h	\
	drawer-widget.c  	\
	drawer-widget.h		\
89 90
	corner-widget.c  	\
	corner-widget.h		\
91
	panel-util.c		\
92
	panel-util.h		\
93 94
	mulapp.c		\
	mulapp.h		\
Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
95 96
	launcher.c		\
	launcher.h		\
97 98
	logout.c		\
	logout.h		\
99
	$(CORBA_SOURCES)
Elliot Lee's avatar
Elliot Lee committed
100

101
panel_LDADD = $(GNOME_LIBDIR) $(MICO_LIBS) $(GNOMEUI_LIBS) $(INTLLIBS)
102

Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
103 104 105 106
#launcher_applet_SOURCES = \
#	launcher-lib.cc   \
#	launcher-lib.h    \
#	launcher.c
107

108
#launcher_applet_LDADD = libpanel_applet.la $(GNOME_LIBDIR) $(MICO_LIBS) \
Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
109
#			$(GNOMEUI_LIBS) $(INTLLIBS)
110

111 112 113 114
data_DATA = panelrc

## Why not just make this via configure?  Because @datadir@ will be
## expanded incorrectly.
Arturo Espinosa's avatar
Arturo Espinosa committed
115 116 117 118 119 120 121

xpanel: xpanel.in Makefile
## Why do a sed and then an mv?  To avoid problems if the user
## interrupts.
	sed -e 's,\@bindir\@,$(bindir),g' < $(srcdir)/xpanel.in \
	> xpanel.tmp && chmod +x xpanel.tmp && mv -f xpanel.tmp xpanel

122 123 124 125 126
panelrc: panelrc.in Makefile
## Why do a sed and then an mv?  To avoid problems if the user
## interrupts.
	sed -e 's,\@datadir\@,$(datadir),g' < $(srcdir)/panelrc.in \
	  > panelrc.tmp && mv -f panelrc.tmp panelrc
127

128
MOSTLYCLEANFILES = panelrc
129

130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
EXTRA_DIST = panelrc.in panel.in gnome-panel.idl appletsConf.sh.in

## Put `exec' in the name because this should be installed by
## `install-exec', not `install-data'.
confexecdir = $(libdir)
confexec_DATA = appletsConf.sh

#
# Create the appletsConf.sh file from the .sh.in file
#
appletsConf.sh: appletsConf.sh.in Makefile
	sed -e 's,\@GNOME_LIBDIR\@,$(GNOME_LIBDIR),g' \
	    -e 's,\@GNOMEUI_LIBS\@,$(GNOMEUI_LIBS),g' \
	    -e 's,\@GNOME_INCLUDEDIR\@,$(GNOME_INCLUDEDIR),g' \
	    -e 's,\@MICO_LIBS\@,$(MICO_LIBS),g' \
	    < $(srcdir)/appletsConf.sh.in > appletsConf.tmp \
	  && mv appletsConf.tmp appletsConf.sh