OSDN Git Service

add bit parser
[rec10/rec10-git.git] / epgdump / Makefile
index 15fc805..8fab02d 100644 (file)
@@ -1,15 +1,25 @@
 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 -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}
@@ -23,3 +33,6 @@ clean:
 install:               ${TARGETS}
                        install -m755 ${TARGETS} ${PREFIX}/bin
 
+uninstall:             ${TARGETS}
+                       rm ${PREFIX}/bin/${TARGETS}
+