~ubuntu-branches/debian/experimental/gpac/experimental

« back to all changes in this revision

Viewing changes to modules/ac3_in/Makefile

  • Committer: Package Import Robot
  • Author(s): Andres Mejia
  • Date: 2012-02-04 00:12:54 UTC
  • Revision ID: package-import@ubuntu.com-20120204001254-l7v7u4kc4m7cxcqn
Tags: upstream-0.4.5+svn3450~dfsg3
ImportĀ upstreamĀ versionĀ 0.4.5+svn3450~dfsg3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include ../../config.mak
 
2
 
 
3
vpath %.c $(SRC_PATH)/modules/ac3_in
 
4
 
 
5
CFLAGS= $(OPTFLAGS) -I"$(SRC_PATH)/include"
 
6
 
 
7
ifeq ($(DEBUGBUILD), yes)
 
8
CFLAGS+=-g
 
9
LDFLAGS+=-g
 
10
endif
 
11
 
 
12
ifeq ($(GPROFBUILD), yes)
 
13
CFLAGS+=-pg
 
14
LDFLAGS+=-pg
 
15
endif
 
16
 
 
17
#common obj
 
18
OBJS= ac3_in.o
 
19
 
 
20
SRCS := $(OBJS:.o=.c) 
 
21
 
 
22
#faad config
 
23
ifeq ($(CONFIG_A52), no)
 
24
else
 
25
OBJS+=liba52_dec.o
 
26
CFLAGS+=-DGPAC_HAS_LIBA52
 
27
#local faad lib
 
28
ifeq ($(CONFIG_FAAD), local)
 
29
EXTRALIBS+=-L../../extra_lib/lib/gcc
 
30
CFLAGS+= -I"$(LOCAL_INC_PATH)"
 
31
endif
 
32
EXTRALIBS+= -la52
 
33
endif
 
34
 
 
35
LIB=gm_ac3_in.$(DYN_LIB_SUFFIX)
 
36
ifeq ($(CONFIG_WIN32),yes)
 
37
#LDFLAGS+=-export-symbols ac3_in.def 
 
38
endif
 
39
 
 
40
 
 
41
all: $(LIB)
 
42
 
 
43
 
 
44
$(LIB): $(OBJS)
 
45
        $(CC) $(SHFLAGS) $(LDFLAGS) -o ../../bin/gcc/$@ $(OBJS) -L../../bin/gcc -lgpac $(EXTRALIBS)
 
46
 
 
47
 
 
48
%.o: %.c
 
49
        $(CC) $(CFLAGS) -c -o $@ $< 
 
50
 
 
51
 
 
52
clean: 
 
53
        rm -f $(OBJS) ../../bin/gcc/$(LIB)
 
54
 
 
55
dep: depend
 
56
 
 
57
depend:
 
58
        rm -f .depend   
 
59
        $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
 
60
 
 
61
distclean: clean
 
62
        rm -f Makefile.bak .depend
 
63
 
 
64
 
 
65
 
 
66
# include dependency files if they exist
 
67
#
 
68
ifneq ($(wildcard .depend),)
 
69
include .depend
 
70
endif