File: Makefile

package info (click to toggle)
wmfishtime 1%3A1.24-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 176 kB
  • ctags: 107
  • sloc: ansic: 1,798; makefile: 22
file content (33 lines) | stat: -rw-r--r-- 841 bytes parent folder | download | duplicates (2)
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
# For Debian packaging
DESTDIR =

# where to install this program
PREFIX = $(DESTDIR)/usr/X11R6

# no user serviceable parts below this line
# optimization cflags
#CFLAGS = -O3 -Wall `gtk-config --cflags` ${EXTRA}
# profiling cflags
# CFLAGS=-ansi -pedantic -Wall -pg -O3 `gtk-config --cflags` ${EXTRA} -DPRO
# test coverage cflags
# CFLAGS=-fprofile-arcs -ftest-coverage -Wall -ansi -pedantic -g `gtk-config --cflags` ${EXTRA} -DPRO


CC = gcc
SHELL = sh
OBJS = fishmon.o
LIBS = `gtk-config --libs | sed "s/-lgtk//g"`
INSTALL = -m 755

all: wmfishtime

wmfishtime: $(OBJS)
	$(CC) $(CFLAGS) -o wmfishtime $(OBJS) $(LIBS)

clean:
	rm -rf wmfishtime *.o *.bb* *.gcov gmon.* *.da *~ .xvpics

# You're going to have to be root to do this!
install:
	install $(INSTALL) wmfishtime $(PREFIX)/bin
	install $(INSTALL) wmfishtime.1 $(PREFIX)/man/man1