changeset 145:4e39ce051c57

Able to compile the checksignal. Fixed Makefile(pt1_lnbd compilation).
author Naoya OYAMA <naoya.oyama@gmail.com>
date Thu, 16 Aug 2012 21:57:34 +0900
parents bf96eac4dbb1
children 066f33b2213a
files src/Makefile src/checksignal.c
diffstat 2 files changed, 25 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/Makefile	Wed Aug 01 23:23:24 2012 +0900
+++ b/src/Makefile	Thu Aug 16 21:57:34 2012 +0900
@@ -4,6 +4,8 @@
 include ../config.mak
 
 PROG = recpt1
+PROG2 = checksignal
+PROG3 = pt1_lnbd
 
 EXTRADIST = ushare.1 \
 	cds.h \
@@ -57,11 +59,21 @@
 	recpt1.c \
 	tssplitter_lite.c
 
+SRCS2 = \
+        checksignal.c
+
+SRCS3 = \
+        pt1_lnbd.c
+
+LIBS2 = -lpthread -lm
+
 OBJS = $(SRCS:.c=.o)
+OBJS2 = $(SRCS2:.c=.o)
+OBJS3 = $(SRCS3:.c=.o)
 
 .SUFFIXES: .c .o
 
-all: depend $(PROG)
+all: depend $(PROG) $(PROG2) $(PROG3)
 
 .c.o:
 	$(CC) -c $(CFLAGS) -g $(OPTFLAGS) -o $@ $<
@@ -69,16 +81,26 @@
 $(PROG): $(OBJS)
 	$(CC) $(OBJS) $(LDFLAGS) $(EXTRALIBS) -o $@
 
+$(PROG2): $(OBJS2)
+	$(CC) $(OBJS2) $(LDFLAGS) $(EXTRALIBS) $(LIBS2) -o $@
+
+$(PROG3): $(OBJS3)
+	$(CC) $(OBJS3) $(LDFLAGS) $(EXTRALIBS) -o $@
+
 clean:
-	-$(RM) -f *.o $(PROG)
+	-$(RM) -f *.o $(PROG) $(PROG2) $(PROG3)
 	-$(RM) -f .depend
 
 distclean:
 
-install: $(PROG)
+install: $(PROG) $(PROG2) $(PROG3)
 	$(INSTALL) -d $(bindir)
 	$(INSTALL) $(PROG) $(bindir)
+	$(INSTALL) $(PROG2) $(bindir)
+	$(INSTALL) $(PROG3) $(bindir)
 	$(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG)
+	$(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG2)
+	$(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG3)
 
 depend:
 	$(CC) -I.. -MM $(CFLAGS) $(SRCS) 1>.depend
--- a/src/checksignal.c	Wed Aug 01 23:23:24 2012 +0900
+++ b/src/checksignal.c	Thu Aug 16 21:57:34 2012 +0900
@@ -39,13 +39,6 @@
 /* type definitions */
 typedef int boolean;
 
-typedef struct thread_data {
-    int ch;
-    int lnb;    /* LNB voltage */
-    int tfd;    /* tuner fd */
-    ISDB_T_FREQ_CONV_TABLE *table;
-} thread_data;
-
 /* globals */
 boolean f_exit = FALSE;
 boolean use_bell = FALSE;