PREFIX = /usr/local
TARGETS = epgdump
-OBJ_TARGETS = epgdump.o aribstr.o eit.o ts.o util.o sdt.o
-HEDDERDEPEND = eit.h sdt.h aribstr.h ts.h util.h
+OBJ_TARGETS = epgdump.o aribstr.o eit.o ts.o util.o psi.o sdt.o cdt.o sdtt.o dsmcc.o tot.o bit.o clt2png.o
+HEDDERDEPEND = aribstr.h eit.h ts.h util.h psi.h sdt.h cdt.h sdtt.h dsmcc.h tot.h bit.h clt2png.h
LANG = C
CC = gcc
#CFLAGS = -std=c99 -O2 -Wall -g
+#CFLAGS = -std=c99 -O0 -Wall -ggdb
CFLAGS = -std=c99 -O2 -Wall -ggdb
+#CFLAGS = -std=c99 -O2 -Wall -ggdb -lefence
+
+CXX = g++
+CXXFLAGS = -O2 -Wall -ggdb -lstdc++
LIBS =
.c.o: ${CC} ${CFLAGS} -c $<
+.cpp.o: $(CXX) $(CXXFLAGS) -o $@ -c $^
+
all: ${TARGETS}
${TARGETS}: ${OBJ_TARGETS}