Makefile.am 3.45 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
CFLAGS += -D_DRAWER_
11

Tom Tromey's avatar
Tom Tromey committed
12
CXX = mico-c++
Tom Tromey's avatar
Tom Tromey committed
13 14 15 16
## 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.
CXXFLAGS =
Tom Tromey's avatar
Tom Tromey committed
17

18 19 20
test:
	echo $(CXXCOMPILE)

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

25
bin_PROGRAMS = panel #launcher_applet
26

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

31 32
libpanel_appletincludedir = $(includedir)

33 34
lib_LTLIBRARIES = libpanel_applet.la

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

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

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

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

BUILT_SOURCES = $(CORBA_SOURCES)

55
gnome-panel.cc gnome-panel.h: gnome-panel.idl
56
## `idl' lamely fails to strip the path part of the file
57 58 59
## 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
60

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

96
panel_LDADD = $(GNOME_LIBDIR) $(MICO_LIBS) $(GNOMEUI_LIBS) $(INTLLIBS)
97

Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
98 99 100 101
#launcher_applet_SOURCES = \
#	launcher-lib.cc   \
#	launcher-lib.h    \
#	launcher.c
102

103
#launcher_applet_LDADD = libpanel_applet.la $(GNOME_LIBDIR) $(MICO_LIBS) \
Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
104
#			$(GNOMEUI_LIBS) $(INTLLIBS)
105

106 107 108 109
data_DATA = panelrc

## Why not just make this via configure?  Because @datadir@ will be
## expanded incorrectly.
Arturo Espinosa's avatar
Arturo Espinosa committed
110 111 112 113 114 115 116

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

117 118 119 120 121
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
122

123
MOSTLYCLEANFILES = panelrc
124

125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
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' \
	    -e 's,\@INTLLIBS\@,$(INTLLIBS),g' \
	    < $(srcdir)/appletsConf.sh.in > appletsConf.tmp \
	  && mv appletsConf.tmp appletsConf.sh