From 11b22d9f33d50f20cba1eaee2aadb55d3580d879 Mon Sep 17 00:00:00 2001 From: Frank Schmirler Date: Thu, 2 Dec 2010 09:48:23 +0100 Subject: Streamdev 0.5.0-rc1 --- libdvbmpeg/Makefile | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) (limited to 'libdvbmpeg/Makefile') diff --git a/libdvbmpeg/Makefile b/libdvbmpeg/Makefile index a586182..481d9c9 100644 --- a/libdvbmpeg/Makefile +++ b/libdvbmpeg/Makefile @@ -1,25 +1,34 @@ -INCS = -I. -CFLAGS = -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fPIC -MFLAG = -M -OBJS = ctools.o ringbuffy.o remux.o transform.o -SRC = $(wildcard *.c) +# +# Makefile for a Video Disk Recorder plugin +# +# $Id: Makefile,v 1.3.4.1 2010/06/14 10:40:13 schmirl Exp $ -DESTDIR = /usr/local +### The object files (add further files here): -.PHONY: clean +OBJS = ctools.o remux.o ringbuffy.o transform.o -clean: - - rm -f *.o *~ *.a .depend +### The main target: +.PHONY: clean libdvbmpegtools.a: $(OBJS) ar -rcs libdvbmpegtools.a $(OBJS) -%.o: %.c - $(CC) -c $(CFLAGS) $(INCS) $(DEFINES) $< +### Implicit rules: + +%.o: %.c + $(CC) $(CFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $< -.depend: - $(CXX) $(DEFINES) $(MFLAG) $(SRC) $(INCS)> .depend +### Dependencies: +MAKEDEP = $(CC) -MM -MG +DEPFILE = .dependencies +$(DEPFILE): Makefile + @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@ --include .depend +-include $(DEPFILE) + +### Targets: + +clean: + @-rm -f $(OBJS) $(DEPFILE) *.a core* *~ -- cgit v1.2.3