comparison libmpdemux/Makefile @ 21259:92b122592776

Merge common parts of all Makefiles into one file included by all.
author diego
date Sun, 26 Nov 2006 18:12:36 +0000
parents c0400a8091a8
children c1bddf9fcee7
comparison
equal deleted inserted replaced
21258:ed01090d1192 21259:92b122592776
101 101
102 ifeq ($(STREAMING_LIVE555),yes) 102 ifeq ($(STREAMING_LIVE555),yes)
103 SRCS += demux_rtp.cpp demux_rtp_codec.cpp 103 SRCS += demux_rtp.cpp demux_rtp_codec.cpp
104 endif 104 endif
105 105
106 OBJS = $(SRCS:.c=.o) 106 CFLAGS = -I../stream -I../loader $(LIBAV_INC)
107 OBJS += $(SRCS:.cpp=.o) 107
108 INCLUDE = -I.. -I../stream -I../loader $(LIBAV_INC)
109 CFLAGS = $(INCLUDE) $(OPTFLAGS)
110 CPLUSPLUSFLAGS = $(CFLAGS) -D__STDC_LIMIT_MACROS 108 CPLUSPLUSFLAGS = $(CFLAGS) -D__STDC_LIMIT_MACROS
111 109
112 .SUFFIXES: .c .cpp .o
113
114 # .PHONY: all clean
115
116 all: $(LIBNAME)
117
118 .c.o:
119 $(CC) -c $(CFLAGS) -o $@ $<
120 .cpp.o: 110 .cpp.o:
121 $(CC) -c $(CPLUSPLUSFLAGS) -o $@ $< 111 $(CC) -c $(CPLUSPLUSFLAGS) -o $@ $<
122 112
123 $(LIBNAME): $(OBJS) 113 include ../mpcommon.mak
124 $(AR) r $(LIBNAME) $(OBJS)
125 $(RANLIB) $(LIBNAME)
126
127 clean:
128 rm -f *.o *.a *~
129
130 distclean: clean
131 rm -f .depend
132
133 dep depend:
134 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
135
136 ifneq ($(wildcard .depend),)
137 include .depend
138 endif