Mercurial > mplayer.hg
comparison libmpcodecs/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 | e57ac78dc8e7 |
children | 45cdeb103b6f |
comparison
equal
deleted
inserted
replaced
21258:ed01090d1192 | 21259:92b122592776 |
---|---|
303 OBJS=$(SRCS:.c=.o) | 303 OBJS=$(SRCS:.c=.o) |
304 | 304 |
305 SRCS2=$(ENCODER_SRCS) | 305 SRCS2=$(ENCODER_SRCS) |
306 OBJS2=$(SRCS2:.c=.o) | 306 OBJS2=$(SRCS2:.c=.o) |
307 | 307 |
308 CFLAGS = -I. -I.. \ | 308 CFLAGS = -I.. \ |
309 -Inative \ | 309 -Inative \ |
310 -I../libmpdemux \ | 310 -I../libmpdemux \ |
311 -I../stream \ | 311 -I../stream \ |
312 -I../loader \ | 312 -I../loader \ |
313 $(LIBAV_INC) \ | 313 $(LIBAV_INC) \ |
314 $(OPTFLAGS) \ | |
315 -D_GNU_SOURCE \ | 314 -D_GNU_SOURCE \ |
316 | 315 |
317 .SUFFIXES: .c .o | 316 include ../mpcommon.mak |
318 | |
319 # .PHONY: all clean | |
320 | |
321 .c.o: | |
322 $(CC) -c $(CFLAGS) -o $@ $< | |
323 | 317 |
324 all: $(LIBS) | 318 all: $(LIBS) |
325 | |
326 $(LIBNAME): $(OBJS) | |
327 $(AR) r $@ $^ | |
328 $(RANLIB) $@ | |
329 | 319 |
330 $(LIBNAME2): $(OBJS2) | 320 $(LIBNAME2): $(OBJS2) |
331 $(AR) r $@ $^ | 321 $(AR) r $@ $^ |
332 $(RANLIB) $@ | 322 $(RANLIB) $@ |
333 | 323 |
334 clean: | 324 clean:: |
335 rm -f *.o *.a *~ | |
336 rm -f native/*.o native/*.a native/*~ | 325 rm -f native/*.o native/*.a native/*~ |
337 | 326 |
338 distclean: clean | |
339 rm -f .depend | |
340 | |
341 dep depend: | |
342 $(CC) -MM $(CFLAGS) $(SRCS) $(SRCS2) 1>.depend | |
343 | |
344 ifneq ($(wildcard .depend),) | |
345 include .depend | |
346 endif | |
347 |