diff options
author | Frank Schmirler <vdr@schmirler.de> | 2010-12-02 09:57:17 +0100 |
---|---|---|
committer | Mikko Matilainen <mikkom@iki.fi> | 2011-03-22 21:16:18 +0200 |
commit | 6ea5efe93960fc761dbb5e0b2d93d9b5818d5d7c (patch) | |
tree | 836d96c9a4688a01745719787a7a0e83804356f8 /libdvbmpeg | |
parent | 0a860a1e3e45ee83563b09beb93ede0e99eb75fb (diff) | |
download | vdr-plugin-streamdev-6ea5efe93960fc761dbb5e0b2d93d9b5818d5d7c.tar.gz vdr-plugin-streamdev-6ea5efe93960fc761dbb5e0b2d93d9b5818d5d7c.tar.bz2 |
Snapshot 2010-09-15
Diffstat (limited to 'libdvbmpeg')
-rw-r--r-- | libdvbmpeg/Makefile | 41 |
1 files changed, 27 insertions, 14 deletions
diff --git a/libdvbmpeg/Makefile b/libdvbmpeg/Makefile index a586182..4a78a12 100644 --- a/libdvbmpeg/Makefile +++ b/libdvbmpeg/Makefile @@ -1,25 +1,38 @@ -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.5 2010/07/30 10:49:28 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 +### Disable attribute warn_unused_result + +DEFINES += -U_FORTIFY_SOURCE +### The main target: + +.PHONY: clean libdvbmpegtools.a: $(OBJS) ar -rcs libdvbmpegtools.a $(OBJS) -%.o: %.c - $(CC) -c $(CFLAGS) $(INCS) $(DEFINES) $< +### Implicit rules: -.depend: - $(CXX) $(DEFINES) $(MFLAG) $(SRC) $(INCS)> .depend +%.o: %.c + $(CC) $(CFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $< +### Dependencies: +MAKEDEP = $(CC) -MM -MG +DEPFILE = .dependencies --include .depend +$(DEPFILE): Makefile + @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@ + +-include $(DEPFILE) + +### Targets: + +clean: + @-rm -f $(OBJS) $(DEPFILE) *.a core* *~ |