2004-12-30 23:43:55 +01:00
|
|
|
INCS = -I.
|
2005-02-08 16:21:19 +01:00
|
|
|
CFLAGS = -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fPIC
|
2004-12-30 23:43:55 +01:00
|
|
|
MFLAG = -M
|
2008-04-07 16:40:39 +02:00
|
|
|
OBJS = ctools.o ringbuffy.o remux.o transform.o
|
2004-12-30 23:43:55 +01:00
|
|
|
SRC = $(wildcard *.c)
|
|
|
|
|
|
|
|
DESTDIR = /usr/local
|
|
|
|
|
2008-04-07 16:40:39 +02:00
|
|
|
.PHONY: clean
|
2004-12-30 23:43:55 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
- rm -f *.o *~ *.a .depend
|
|
|
|
|
|
|
|
libdvbmpegtools.a: $(OBJS)
|
|
|
|
ar -rcs libdvbmpegtools.a $(OBJS)
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) -c $(CFLAGS) $(INCS) $(DEFINES) $<
|
|
|
|
|
|
|
|
.depend:
|
2008-04-07 16:40:39 +02:00
|
|
|
$(CXX) $(DEFINES) $(MFLAG) $(SRC) $(INCS)> .depend
|
2004-12-30 23:43:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-include .depend
|