File: Makefile

package info (click to toggle)
wmtune 1.1-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 140 kB
  • ctags: 120
  • sloc: ansic: 1,437; makefile: 61
file content (28 lines) | stat: -rw-r--r-- 780 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
RADIOCARD = 	USE_V4L # Can be RADIOTRACK, ZOLTRIX, KERNEL
PREFIX	=	/usr
INCDIR	=	-I/usr/X11R6/include
LIBDIR	=	-L/usr/X11R6/lib
LIBS	=	-lXpm -lXext -lX11 -lm
OBJS	=	src/wmtune.o src/wmgeneral/wmgeneral.o

.c.o:
	gcc -c -O2 -Wall -D$(shell echo `uname -s`) $< -o $*.o $(INCDIR) -D$(RADIOCARD)

all: wmtune

wmtune: $(OBJS)
	gcc -o wmtune $^ $(LIBDIR) $(LIBS)

install:: all
	install -s -m 0755 -o root wmtune $(DESTDIR)$(PREFIX)/bin
	install -m 0644 -o root -g root README $(DESTDIR)/usr/share/doc/wmtune/README
	install -m 0644 -o root -g root wmtunerc $(DESTDIR)/usr/share/doc/wmtune/examples/wmtunerc
	install -d $(DESTDIR)$(PREFIX)/share/man/man1
	install -m 0644 wmtune.1 $(DESTDIR)$(PREFIX)/share/man/man1


clean:
	for i in $(OBJS) ; do \
		rm -f $$i; \
	done
	rm -f wmtune