wmclockmon: update change-log
[dockapps.git] / wmradio / Makefile.in
blob3ca2130940be6e11a926563dfd58aa73be876102
1 PREFIX=@prefix@
2 BINDIR=$(PREFIX)/bin/
3 LIBDIR=$(PREFIX)/lib/wmradio/
4 MANDIR=$(PREFIX)/man/man1/
6 TARGETS=@TARGETS@
8 CC=@CC@
10 LIBXOSD_CFLAGS=@LIBXOSD_CFLAGS@
11 LIBXOSD_LIBS=@LIBXOSD_LIBS@
13 X_CFLAGS=@X_CFLAGS@
14 X_LIBS=@X_LIBS@ -lXpm -lXext -lX11 -lm
16 PANEL_CFLAGS=-DGNOME_RADIO @PANEL_CFLAGS@
17 PANEL_LIBS=@PANEL_LIBS@
19 EXTRA_CFLAGS=-Wall -D SKIN_DIR=\"$(LIBDIR)\"
21 BASESOURCE=skin.c \
22 radio.c \
23 rc.c lists.c ini.c \
24 wmradio.c \
25 fifo.c \
26 stationnames.c \
27 osd.c
29 WMRADIOSOURCE=wm_envelope.c $(BASESOURCE)
30 XRADIOSOURCE=x_envelope.c $(BASESOURCE)
31 GNOMERADIOSOURCE=gnome_applet_envelope.c $(BASESOURCE)
33 SKINFILES=skins/wave.skin skins/wave.xpm \
34 skins/default.skin skins/default.xpm \
35 skins/startrek.skin skins/startrek.xpm \
36 skins/gdefault.skin skins/gdefault.xpm \
37 skins/biggray.skin skins/biggray.xpm
39 all: $(TARGETS)
41 wmradio: $(WMRADIOSOURCE)
42 $(CC) $(EXTRA_CFLAGS) $(X_CFLAGS) $(LIBXOSD_CFLAGS) \
43 $(WMRADIOSOURCE) -o wmradio \
44 $(X_LIBS) $(LIBXOSD_LIBS)
46 xwmradio: $(XRADIOSOURCE)
47 $(CC) $(EXTRA_CFLAGS) $(X_CFLAGS) $(LIBXOSD_CFLAGS) \
48 $(XRADIOSOURCE) -o xwmradio \
49 $(X_LIBS) $(LIBXOSD_LIBS)
51 gwmradio: $(GNOMERADIOSOURCE)
52 $(CC) $(EXTRA_CFLAGS) $(PANEL_CFLAGS) \
53 $(GNOMERADIOSOURCE) -o gwmradio \
54 $(X_LIBS) $(PANEL_LIBS) $(LIBXOSD_LIBS)
56 xor: xor.c skin.c
57 $(CC) $(CFLAGS) xor.c skin.c -o xor $(LIBFLAGS)
59 clean:
60 /bin/rm -f xor $(TARGETS) *~ *.o
62 install: wmradio
63 install -m 755 -d $(RPM_BUILD_ROOT)$(BINDIR)
64 install -m 755 -d $(RPM_BUILD_ROOT)$(MANDIR)
65 install -m 755 wmradio $(RPM_BUILD_ROOT)$(BINDIR)
66 install -m 755 xwmradio $(RPM_BUILD_ROOT)$(BINDIR)
67 install -m 755 wmradio-remote $(RPM_BUILD_ROOT)$(BINDIR)
68 install -m 755 config/wmradio-config.py $(RPM_BUILD_ROOT)$(BINDIR)
69 install -m 644 doc/wmradio.1 $(RPM_BUILD_ROOT)$(MANDIR)
70 install -m 755 -d $(RPM_BUILD_ROOT)`pkg-config gnome-desktop-2.0 --variable=prefix`/share/applications
71 install -m 755 -d $(RPM_BUILD_ROOT)`pkg-config gnome-desktop-2.0 --variable=prefix`/share/pixmaps
72 install -m 644 misc/wmradio.png $(RPM_BUILD_ROOT)`pkg-config gnome-desktop-2.0 --variable=prefix`/share/pixmaps/
73 install -m 644 misc/wmradio.desktop $(RPM_BUILD_ROOT)`pkg-config gnome-desktop-2.0 --variable=prefix`/share/applications/
74 install -m 644 misc/wmradio-config.desktop $(RPM_BUILD_ROOT)`pkg-config gnome-desktop-2.0 --variable=prefix`/share/applications/
76 ginstall: gwmradio
77 install -d $(RPM_BUILD_ROOT)`gnome-config --prefix`/share/applets/Multimedia
78 install -d $(RPM_BUILD_ROOT)`gnome-config --sysconfdir`/CORBA/servers
79 install -m 755 gwmradio $(RPM_BUILD_ROOT)$(BINDIR)
80 install -m 644 gwmradio.desktop $(RPM_BUILD_ROOT)`gnome-config --prefix`/share/applets/Multimedia/
81 install -m 644 gwmradio.gnorba $(RPM_BUILD_ROOT)`gnome-config --sysconfdir`/CORBA/servers/
83 install-skins:
84 install -m 755 -d $(RPM_BUILD_ROOT)$(LIBDIR)
85 install -m 644 $(SKINFILES) $(RPM_BUILD_ROOT)$(LIBDIR)