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.2 2010/07/19 13:49:28 schmirl Exp $
|
2010-12-02 09:48:23 +01:00
|
|
|
|
|
|
|
### The object files (add further files here):
|
|
|
|
|
|
|
|
OBJS = tsremux.o ts2es.o ts2pes.o ts2ps.o extern.o
|
|
|
|
|
|
|
|
### The main target:
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
remux.a: $(OBJS)
|
|
|
|
ar -rcs remux.a $^
|
|
|
|
|
|
|
|
### Implicit rules:
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $<
|
|
|
|
|
|
|
|
### Dependencies:
|
|
|
|
|
|
|
|
MAKEDEP = $(CXX) -MM -MG
|
|
|
|
DEPFILE = .dependencies
|
|
|
|
|
|
|
|
$(DEPFILE): Makefile
|
|
|
|
@$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@
|
|
|
|
|
|
|
|
-include $(DEPFILE)
|
|
|
|
|
|
|
|
### Targets:
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@-rm -f $(OBJS) $(DEPFILE) *.a core* *~
|