forked from lorenzdev/mpeg-scrambling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
80 lines (67 loc) · 2.19 KB
/
makefile
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
###########################################################
# The makefile for the MPEG program.
# There should be no changes for most UNIX compilers.
###########################################################
# edit following line to specify proper OS compiler
# (gcc for Windows, cc for Unix and GNU\Linux)
CC = gcc
# w ang g parameters have been introduced for debug purposes
# remove them in production environment
MFLAGS = -O3 -g -w
DEFS = system.h globals.h marker.h watermark.h scrambling.h cJSON.h
BASELINE = mpeg.o codec.o huffman.o io.o chendct.o lexer.o marker.o me.o mem.o stat.o stream.o transform.o watermark.o scrambling.o cJSON.c facedetector.o
.c.o:
$(CC) $(MFLAGS) -c $*.c
.c.ln:
lint -c $*.c
all: facedetector mpeg
clean:
rm *.o mpeg
facedetector:
g++ $(MFLAGS) facedetector.cpp `pkg-config --cflags --libs opencv` -c
mpeg: $(BASELINE)
g++ $(MFLAGS) $(BASELINE) `pkg-config --cflags --libs opencv` -lm -o mpeg
mpeg.o: mpeg.c $(DEFS) mpeg.h
codec.o: codec.c $(DEFS)
marker.o: marker.c $(DEFS) marker.h
huffman.o: huffman.c $(DEFS) huffman.h
io.o: io.c $(DEFS)
chendct.o: chendct.c $(DEFS)
lexer.o:lexer.c
mem.o: mem.c
me.o: me.c
stat.o: stat.c
stream.o: stream.c $(DEFS)
transform.o: transform.c $(DEFS) dct.h
watermark.o: watermark.c $(DEFS) watermark.h
scrambling.o: scrambling.c $(DEFS) scrambling.h facedetector.h
cJSON.o: cJSON.c $(DEFS) cJSON.h
lcheck: mpeg.ln codec.ln marker.ln huffman.ln io.ln chendct.ln lexer.ln mem.ln me.ln stat.ln stream.ln transform.ln
lint mpeg.ln codec.ln marker.ln huffman.ln io.ln chendct.ln lexer.ln mem.ln me.ln stat.ln stream.ln transform.ln
#
# Should you wish to modify the interpreter
# or the Huffman tables, use these commands.
#
#
#ctables.h: tables.h htable
# rm -f ctables.h
# htable <tables.h >ctables.h
#
# Make sure that you move the first comment from the start to
# within the braces %{ /* */ %} in htable.lex, lexer.l,
# otherwise it will give you a error (definitions too long).
# Caution: the htable name may conflict with /usr/etc/htable
# on some machines.
#
#htable:htable.lex
# lex htable.lex
# mv lex.yy.c htable.c
# $(CC) htable.c -o htable -ll
#
#
# Caution: Sometimes -ll is required.
#
#lexer.c:lexer.l
# lex lexer.l
# mv lex.yy.c lexer.c
#