-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
55 lines (43 loc) · 1.04 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
###
### Makefile for JM H.264/AVC encoder/decoder
###
### generated for UNIX/LINUX environments
### by Limin Wang([email protected])
###
SUBDIRS := lencod ldecod rtpdump rtp_loss
### include debug information: 1=yes, 0=no
DBG?= 0
### enforce 32-bit build : 1=yes, 0=no
M32?= 0
### static link : 1=yes, 0=no
STC?= 0
### OPENMP support : 1=yes, 0=no
OPENMP?= 0
#check for LLVM and silence warnings accordingly
LLVM = $(shell $(CC) --version | grep LLVM)
ifneq ($(LLVM),)
CFLAGS+=-Qunused-arguments
else
CFLAGS+=-Wno-unused-but-set-variable
endif
export DBG
export STC
export M32
export OPENMP
export CFLAGS
.PHONY: default all distclean clean tags depend $(SUBDIRS)
default: all
all: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
clean depend:
@echo "Cleaning dependencies"
@for i in $(SUBDIRS); do make -C $$i $@; done
tags:
@echo "update tag table at top directory"
@ctags -R .
@for i in $(SUBDIRS); do make -C $$i $@; done
distclean: clean
@echo "Cleaning all"
@rm -f tags
@for i in $(SUBDIRS); do make -C $$i $@; done