File: Makefile

package info (click to toggle)
wmtv 0.6.5-3potato3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 196 kB
  • ctags: 222
  • sloc: ansic: 2,038; makefile: 61
file content (26 lines) | stat: -rw-r--r-- 527 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
#
#	Makefile for wmtv
#
INCDIR	=	-I/usr/X11R6/include
LIBDIR	=	-L/usr/X11R6/lib
LIBS	=	-lXpm -lXext -lX11 -lXxf86dga -lXxf86vm
OBJS	=	src/wmtv.o \
			src/wmgeneral/wmgeneral.o \

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

all: wmtv

wmtv: $(OBJS)
	cc -g -o wmtv $^ $(LIBDIR) $(LIBS)

install: all
	install -s -m 4755 -o root wmtv $(DESTDIR)/usr/X11R6/bin/wmtv
	install -m 0644 -o root -g root wmtvrc.sample $(DESTDIR)/etc/wmtvrc

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