vdr-plugin-streamdev/libdvbmpeg/Makefile

35 lines
616 B
Makefile
Raw Normal View History

2010-12-02 09:48:23 +01:00
#
# Makefile for a Video Disk Recorder plugin
#
2010-12-02 09:51:02 +01:00
# $Id: Makefile,v 1.4 2010/07/19 13:49:26 schmirl Exp $
2010-12-02 08:53:01 +01:00
2010-12-02 09:48:23 +01:00
### The object files (add further files here):
2010-12-02 08:53:01 +01:00
2010-12-02 09:48:23 +01:00
OBJS = ctools.o remux.o ringbuffy.o transform.o
2010-12-02 08:53:01 +01:00
2010-12-02 09:48:23 +01:00
### The main target:
2010-12-02 08:53:01 +01:00
2010-12-02 09:48:23 +01:00
.PHONY: clean
2010-12-02 08:53:01 +01:00
libdvbmpegtools.a: $(OBJS)
ar -rcs libdvbmpegtools.a $(OBJS)
2010-12-02 09:48:23 +01:00
### Implicit rules:
%.o: %.c
$(CC) $(CFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $<
2010-12-02 08:53:01 +01:00
2010-12-02 09:48:23 +01:00
### Dependencies:
2010-12-02 08:53:01 +01:00
2010-12-02 09:48:23 +01:00
MAKEDEP = $(CC) -MM -MG
DEPFILE = .dependencies
2010-12-02 08:53:01 +01:00
2010-12-02 09:48:23 +01:00
$(DEPFILE): Makefile
@$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@
2010-12-02 08:53:01 +01:00
2010-12-02 09:48:23 +01:00
-include $(DEPFILE)
### Targets:
clean:
@-rm -f $(OBJS) $(DEPFILE) *.a core* *~