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

CXX = mico-c++
Tom Tromey's avatar
Tom Tromey committed
4 5 6 7
## 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
8

9 10 11
test:
	echo $(CXXCOMPILE)

12 13 14
## FIXME: convert all applets to CORBA
#SUBDIRS  = menu mailcheck clock launcher batmon netwatch logout \
#	@PROGRAMS_PANEL_CDPLAYER@
Elliot Lee's avatar
Elliot Lee committed
15

16 17
#FIXME: without libapplet in a separate dir, cdplayer won't compile
#SUBDIRS  = @PROGRAMS_PANEL_CDPLAYER@ batmon mailcheck netwatch
Arturo Espinosa's avatar
Arturo Espinosa committed
18

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

23
bin_PROGRAMS = panel clock_applet logout_applet launcher_applet
24 25 26 27 28 29 30 31

CORBA_SOURCES = \
	gnome-panel.cc \
	gnome-panel.h

MICO_VERS = 2.0.3
MICO_LIBS = -lmicocoss$(MICO_VERS) -lmicoaux$(MICO_VERS) -lmico$(MICO_VERS)

32 33
lib_LTLIBRARIES = libpanel_applet.la

34 35
libpanel_applet_la_SOURCES = \
	applet-lib.cc \
36
	gtkplug.c \
Tom Tromey's avatar
Tom Tromey committed
37
	mico-parse.cc \
38 39
	$(CORBA_SOURCES)

40 41
#libpanel_appletinclude_HEADERS = applet-lib.h \
#	applet-widget.h
42 43 44 45 46 47

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

BUILT_SOURCES = $(CORBA_SOURCES)

48
gnome-panel.cc gnome-panel.h: gnome-panel.idl
49 50 51 52
## `idl' version 2.0.3 lamely fails to strip the path part of the file
## 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
53

Arturo Espinosa's avatar
Arturo Espinosa committed
54 55 56 57 58 59 60 61 62 63
panel_SOURCES = 		\
	drawer.c  		\
	drawer.h  		\
	gdkextra.c		\
	gdkextra.h		\
	main.c			\
	menu.c  		\
	menu.h  		\
	mico-glue.cc		\
	mico-glue.h		\
Tom Tromey's avatar
Tom Tromey committed
64
	mico-parse.cc		\
65
	mico-parse.h		\
Arturo Espinosa's avatar
Arturo Espinosa committed
66 67 68 69 70 71 72
	panel.c			\
	panel.h         	\
	panel_config.c  	\
	panel_config.h		\
	panel_config_global.c  	\
	panel_config_global.h  	\
	panel-widget.c  	\
73
	panel-widget.h		\
74
	gtksocket.c		\
75
	$(CORBA_SOURCES)
Elliot Lee's avatar
Elliot Lee committed
76

77 78
panel_LDADD = $(GNOME_LIBDIR) $(MICO_LIBS) -lXt $(GNOMEUI_LIBS) $(INTLLIBS)

79
## FIXME: move clock applet into extra_applets
80 81
clock_applet_SOURCES = \
	clock.c
82

83 84
clock_applet_LDADD = libpanel_applet.la $(GNOME_LIBDIR) $(MICO_LIBS) -lXt $(GNOMEUI_LIBS) $(INTLLIBS)

85 86 87 88
launcher_applet_SOURCES = \
	launcher-lib.cc   \
	launcher-lib.h    \
	launcher.c
89

90
launcher_applet_LDADD = libpanel_applet.la $(GNOME_LIBDIR) $(MICO_LIBS) -lXt $(GNOMEUI_LIBS) $(INTLLIBS)
91

92
logout_applet_SOURCES = \
93 94
	logout.c

95
logout_applet_LDADD = libpanel_applet.la $(GNOME_LIBDIR) $(MICO_LIBS) -lXt $(GNOMEUI_LIBS) $(INTLLIBS)
96

97 98 99 100
data_DATA = panelrc

## Why not just make this via configure?  Because @datadir@ will be
## expanded incorrectly.
Arturo Espinosa's avatar
Arturo Espinosa committed
101 102 103 104 105 106 107

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

108 109 110 111 112
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
113

114
MOSTLYCLEANFILES = panelrc
115

Arturo Espinosa's avatar
Arturo Espinosa committed
116
EXTRA_DIST = panelrc.in panel.in