comparison stream/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 68df3b19a160
children d4f6e0e5de2e
comparison
equal deleted inserted replaced
21258:ed01090d1192 21259:92b122592776
128 ifeq ($(DVBIN),yes) 128 ifeq ($(DVBIN),yes)
129 SRCS += stream_dvb.c 129 SRCS += stream_dvb.c
130 SRCS += dvb_tune.c 130 SRCS += dvb_tune.c
131 endif 131 endif
132 132
133 OBJS = $(SRCS:.c=.o) 133 CFLAGS = -I../loader $(LIBAV_INC)
134 INCLUDE = -I.. -I../loader $(LIBAV_INC)
135 CFLAGS = $(INCLUDE) $(OPTFLAGS)
136 134
137 .SUFFIXES: .c .o 135 include ../mpcommon.mak
138 136
139 # .PHONY: all clean 137 clean::
140 138 rm -f realrtsp/*.o realrtsp/*.a realrtsp/*~ \
141 all: $(LIBNAME)
142
143 .c.o:
144 $(CC) -c $(CFLAGS) -o $@ $<
145
146 $(LIBNAME): $(OBJS)
147 $(AR) r $(LIBNAME) $(OBJS)
148 $(RANLIB) $(LIBNAME)
149
150 clean:
151 rm -f *.o *.a *~ \
152 realrtsp/*.o realrtsp/*.a realrtsp/*~ \
153 librtsp/*.o librtsp/*.a librtsp/*~ \ 139 librtsp/*.o librtsp/*.a librtsp/*~ \
154 freesdp/*.o freesdp/*.a freesdp/*~ 140 freesdp/*.o freesdp/*.a freesdp/*~
155
156 distclean: clean
157 rm -f .depend
158
159 dep depend:
160 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
161
162 ifneq ($(wildcard .depend),)
163 include .depend
164 endif