OSDN Git Service

stop using trunk directory in rectool
[rec10/rec10-git.git] / epgdump / Makefile
index 8f2d778..8fab02d 100644 (file)
@@ -1,20 +1,25 @@
 PREFIX         = /usr/local
 TARGETS        = epgdump
-OBJ_TARGETS    = epgdump.o aribstr.o eit.o ts.o util.o psi.o sdt.o cdt.o sdtt.o dsmcc.o tot.o clt2png.o
-HEDDERDEPEND   = eit.h psi.h sdt.h cdt.h sdtt.h dsmcc.h tot.h clt2png.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 -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}