Makefile.am 2.92 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

Elliot Lee's avatar
Elliot Lee committed
19
INCLUDES =	 			\
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  
24

25
# launcher_applet logout_applet
26 27 28 29 30 31 32
CORBA_SOURCES = \
	gnome-panel.cc \
	gnome-panel.h

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

33 34
lib_LTLIBRARIES = libpanel_applet.la

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

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

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

BUILT_SOURCES = $(CORBA_SOURCES)

49
gnome-panel.cc gnome-panel.h: gnome-panel.idl
50 51 52 53
## `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
54

Arturo Espinosa's avatar
Arturo Espinosa committed
55 56 57 58 59 60 61 62 63 64
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
65
	mico-parse.cc		\
66
	mico-parse.h		\
Arturo Espinosa's avatar
Arturo Espinosa committed
67 68 69 70 71 72 73
	panel.c			\
	panel.h         	\
	panel_config.c  	\
	panel_config.h		\
	panel_config_global.c  	\
	panel_config_global.h  	\
	panel-widget.c  	\
74 75
	panel-widget.h		\
	$(CORBA_SOURCES)
Elliot Lee's avatar
Elliot Lee committed
76

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

## FIXME: move clock applet into clock
clock_applet_SOURCES = \
	clock.c
82

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

85 86
#launcher_applet_SOURCES = \
3	launcher.c
87

88
#launcher_applet_LDADD = libpanel_applet.la $(GNOME_LIBDIR) $(MICO_LIBS) -lXt $(GNOMEUI_LIBS) $(INTLLIBS)
89

90
#logout_applet_SOURCES = \
91 92
	logout.c

93
#logout_applet_LDADD = libpanel_applet.la $(GNOME_LIBDIR) $(MICO_LIBS) -lXt $(GNOMEUI_LIBS) $(INTLLIBS)
94

95 96 97 98
data_DATA = panelrc

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

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

106 107 108 109 110
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
111

112
MOSTLYCLEANFILES = panelrc
113

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