File: Makefile

package info (click to toggle)
uptime-applet 0.2.0-12
  • links: PTS
  • area: main
  • in suites: woody
  • size: 320 kB
  • ctags: 70
  • sloc: sh: 2,533; ansic: 345; makefile: 54
file content (52 lines) | stat: -rw-r--r-- 1,421 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Makefile for System Uptime Applet

PACKAGE=gnome-core
VERSION=`gnome-config --version`

prefix = `gnome-config --prefix`
sysprefix=`gnome-config --sysconfdir`
includedir='gnome-config applets --cflags`
libdir=`gnome-config applets --libs`

bindir=${prefix}/bin
sharedir=${prefix}/share
etcdir=${sysprefix}/CORBA/servers
target=uptime_applet
helpfile=topic.dat-0.html

ccFlags_release=-O3
ccFlags_debug=-g
ccFlags=${ccFlags_${mode}} -c
cppFlags=-I/usr/lib/glib/include -I/usr/lib/gnome-libs/include
ldFlags_release=-s
ldFlags_debug=-g
ldFlags=${ldFlags_${mode}}
ldLibs=-lgtk -lgdk -lgnome -lgnomesupport -lgnomeui -lpanel_applet -lart_lgpl -lgnorba 

srcs=${target}.c
hdrs=${target}.h
objs=${target}.o

.PHONY: clean

${target}: ${objs}
	gcc ${ldFlags} $^ ${ldLibs} -o $@

${objs}: ${srcs} ${hdrs}
	gcc ${ccFlags} ${cppFlags} ${srcs} -o $@

clean:
	rm -f ${objs} ${target} core

install: ${target}
	install -c -m755 ${target} ${bindir}/${target}
	install -c -m644 ${target}.desktop ${sharedir}/applets/Utility/${target}.desktop
	install -c -m644 ${target}.gnorba ${etcdir}/${target}.gnorba
	install -dc -m555 ${prefix}/share/gnome/help/${target}/C
	install -c -m644 ${helpfile} ${prefix}/share/gnome/help/uptime_applet/C/${helpfile}

uninstall: 
	rm -f ${bindir}/${target}
	rm -f ${sharedir}/applets/Utility/${target}.desktop
	rm -f ${etcdir}/${target}.gnorba
	rm -f ${prefix}/share/gnome/help/uptime_applet/C/topic.dat