vdr-plugin-streamdev/libdvbmpeg/Makefile

39 lines
688 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:57:17 +01:00
# $Id: Makefile,v 1.5 2010/07/30 10:49:28 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:57:17 +01:00
### Disable attribute warn_unused_result
DEFINES += -U_FORTIFY_SOURCE
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* *~