File: Makefile

package info (click to toggle)
vstream 0.4.5-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 216 kB
  • ctags: 812
  • sloc: ansic: 2,615; makefile: 72
file content (54 lines) | stat: -rw-r--r-- 1,321 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Defines:

#An attempt at provinding NTSC synchronisation

#DEFS=-DNTSC

#Sometimes X reports depth=24 in 32bpp mode - if so, define FIX32

DEFS=-DFIX32 #-DNTSC

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
OPTIMISATION += -g
else 
OPTIMISATION += -O2
endif

#CFLAGS= -Wall -O6 -mcpu=pentiumpro -malign-double -malign-loops=5 -malign-jumps=5 -malign-functions=5 $(DEFS)
CFLAGS = -Wall $(OPTIMISATION) $(DEFS) -I`pwd`/debian/bttv -I`pwd`/debian/bttv/linux
DESTDIR = /usr/bin

all:	stream audioconv str2ppm audioclip xsv xfv ppm2str

install:
	install -o root -m 0755 stream audioconv str2ppm audioclip xsv xfv ppm2str $(DESTDIR)

str2ppm:	str2ppm.c getframe.o
	gcc $(CFLAGS) -o str2ppm getframe.o str2ppm.c

ppm2str:	ppm2str.c
	gcc $(CFLAGS) -o ppm2str ppm2str.c

stream:	stream.c XJ.o
	gcc $(CFLAGS) -L/usr/X11R6/lib -lXext -o stream XJ.o stream.c

audioconv:	audioconv.c
	gcc $(CFLAGS) -o audioconv audioconv.c

audioclip:	audioclip.c
	gcc $(CFLAGS) -o audioclip audioclip.c

getframe.o:	getframe.c
	gcc $(CFLAGS) -c getframe.c

xsv:	xsv.c XJ.o
	gcc $(CFLAGS) -L/usr/X11R6/lib -lXext -o xsv XJ.o xsv.c

xfv:	xfv.c XJ.o getframe.o
	gcc $(CFLAGS) -L/usr/X11R6/lib -lXext -o xfv XJ.o getframe.o xfv.c

XJ.o:	XJ.h XJ.c
	gcc $(CFLAGS) -c XJ.c

clean:	
	rm *.o stream str2ppm audioconv audioclip core *~ xsv ppm2str xfv