vdr-plugin-streamdev/libdvbmpeg/Makefile

39 lines
688 B
Makefile
Raw Permalink Normal View History

2010-12-02 09:57:17 +01:00
#
# Makefile for a Video Disk Recorder plugin
#
# $Id: Makefile,v 1.5 2010/07/30 10:49:28 schmirl Exp $
2004-12-30 23:43:55 +01:00
2010-12-02 09:57:17 +01:00
### The object files (add further files here):
2004-12-30 23:43:55 +01:00
2010-12-02 09:57:17 +01:00
OBJS = ctools.o remux.o ringbuffy.o transform.o
2004-12-30 23:43:55 +01:00
2010-12-02 09:57:17 +01:00
### Disable attribute warn_unused_result
DEFINES += -U_FORTIFY_SOURCE
2004-12-30 23:43:55 +01:00
2010-12-02 09:57:17 +01:00
### The main target:
.PHONY: clean
2004-12-30 23:43:55 +01:00
libdvbmpegtools.a: $(OBJS)
ar -rcs libdvbmpegtools.a $(OBJS)
2010-12-02 09:57:17 +01:00
### Implicit rules:
2004-12-30 23:43:55 +01:00
2010-12-02 09:57:17 +01:00
%.o: %.c
$(CC) $(CFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $<
2004-12-30 23:43:55 +01:00
2010-12-02 09:57:17 +01:00
### Dependencies:
2004-12-30 23:43:55 +01:00
2010-12-02 09:57:17 +01:00
MAKEDEP = $(CC) -MM -MG
DEPFILE = .dependencies
2004-12-30 23:43:55 +01:00
2010-12-02 09:57:17 +01:00
$(DEPFILE): Makefile
@$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@
-include $(DEPFILE)
### Targets:
clean:
@-rm -f $(OBJS) $(DEPFILE) *.a core* *~