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

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

12 13 14
test:
	echo $(CXXCOMPILE)

Raja R Harinath's avatar
Raja R Harinath committed
15
INCLUDES = -I. -I$(srcdir) 			\
16
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
Tom Tromey's avatar
Tom Tromey committed
17
	-I$(includedir) $(GNOME_INCLUDEDIR)
Elliot Lee's avatar
Elliot Lee committed
18

19 20 21
## FIXME: logout should really be an internal applets since it is just
## too trivial 
bin_PROGRAMS = panel logout_applet launcher_applet
22

23 24
bin_SCRIPTS = panel.sh

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

29
MICO_VERS = 2.0.5
30 31
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 \
Tom Tromey's avatar
Tom Tromey committed
36
	mico-parse.cc \
37
	panel-util.c  \
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
## `idl' lamely fails to strip the path part of the file
50 51 52
## 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
	panel-util.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 80 81 82
launcher_applet_SOURCES = \
	launcher-lib.cc   \
	launcher-lib.h    \
	launcher.c
83

84
launcher_applet_LDADD = libpanel_applet.la $(GNOME_LIBDIR) $(MICO_LIBS) -lXt $(GNOMEUI_LIBS) $(INTLLIBS)
85

86
logout_applet_SOURCES = \
87 88
	logout.c

89
logout_applet_LDADD = libpanel_applet.la $(GNOME_LIBDIR) $(MICO_LIBS) -lXt $(GNOMEUI_LIBS) $(INTLLIBS)
90

91 92 93 94
data_DATA = panelrc

## Why not just make this via configure?  Because @datadir@ will be
## expanded incorrectly.
Arturo Espinosa's avatar
Arturo Espinosa committed
95 96 97 98 99 100 101

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

102 103 104 105 106
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
107

108
MOSTLYCLEANFILES = panelrc
109

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