OSDN Git Service

add dist
[rec10/rec10-git.git] / dist / trunk / tstools / epgdump / Makefile
diff --git a/dist/trunk/tstools/epgdump/Makefile b/dist/trunk/tstools/epgdump/Makefile
new file mode 100755 (executable)
index 0000000..53be5ba
--- /dev/null
@@ -0,0 +1,31 @@
+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
+
+LANG           = C
+CC             = gcc
+
+#CFLAGS                = -std=c99 -O2 -Wall -g
+CFLAGS         = -std=c99 -O2 -Wall -ggdb
+
+LIBS           = 
+
+.c.o:                  ${CC} ${CFLAGS} -c $<
+
+all:                   ${TARGETS}
+
+${TARGETS}:            ${OBJ_TARGETS}
+                       ${CC} ${CFLAGS} ${OBJ_TARGETS} -o $@ ${LDFLAGS} ${LIBS}
+
+${OBJ_TARGETS}:        ${HEDDERDEPEND}
+
+clean:
+                       rm -f core ${TARGETS} *.o
+
+install:               ${TARGETS}
+                       install -m755 ${TARGETS} ${PREFIX}/bin
+
+uninstall:             ${TARGETS}
+                       rm ${PREFIX}/bin/${TARGETS}
+