Mercurial > pt1.oyama
comparison src/Makefile @ 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 | e413158cae13 |
children | 036ae90f1b01 |
comparison
equal
deleted
inserted
replaced
144:bf96eac4dbb1 | 145:4e39ce051c57 |
---|---|
2 $(error "../config.mak is not present, run configure !") | 2 $(error "../config.mak is not present, run configure !") |
3 endif | 3 endif |
4 include ../config.mak | 4 include ../config.mak |
5 | 5 |
6 PROG = recpt1 | 6 PROG = recpt1 |
7 PROG2 = checksignal | |
8 PROG3 = pt1_lnbd | |
7 | 9 |
8 EXTRADIST = ushare.1 \ | 10 EXTRADIST = ushare.1 \ |
9 cds.h \ | 11 cds.h \ |
10 cms.h \ | 12 cms.h \ |
11 msr.h \ | 13 msr.h \ |
55 decoder.c \ | 57 decoder.c \ |
56 mkpath.c \ | 58 mkpath.c \ |
57 recpt1.c \ | 59 recpt1.c \ |
58 tssplitter_lite.c | 60 tssplitter_lite.c |
59 | 61 |
62 SRCS2 = \ | |
63 checksignal.c | |
64 | |
65 SRCS3 = \ | |
66 pt1_lnbd.c | |
67 | |
68 LIBS2 = -lpthread -lm | |
69 | |
60 OBJS = $(SRCS:.c=.o) | 70 OBJS = $(SRCS:.c=.o) |
71 OBJS2 = $(SRCS2:.c=.o) | |
72 OBJS3 = $(SRCS3:.c=.o) | |
61 | 73 |
62 .SUFFIXES: .c .o | 74 .SUFFIXES: .c .o |
63 | 75 |
64 all: depend $(PROG) | 76 all: depend $(PROG) $(PROG2) $(PROG3) |
65 | 77 |
66 .c.o: | 78 .c.o: |
67 $(CC) -c $(CFLAGS) -g $(OPTFLAGS) -o $@ $< | 79 $(CC) -c $(CFLAGS) -g $(OPTFLAGS) -o $@ $< |
68 | 80 |
69 $(PROG): $(OBJS) | 81 $(PROG): $(OBJS) |
70 $(CC) $(OBJS) $(LDFLAGS) $(EXTRALIBS) -o $@ | 82 $(CC) $(OBJS) $(LDFLAGS) $(EXTRALIBS) -o $@ |
71 | 83 |
84 $(PROG2): $(OBJS2) | |
85 $(CC) $(OBJS2) $(LDFLAGS) $(EXTRALIBS) $(LIBS2) -o $@ | |
86 | |
87 $(PROG3): $(OBJS3) | |
88 $(CC) $(OBJS3) $(LDFLAGS) $(EXTRALIBS) -o $@ | |
89 | |
72 clean: | 90 clean: |
73 -$(RM) -f *.o $(PROG) | 91 -$(RM) -f *.o $(PROG) $(PROG2) $(PROG3) |
74 -$(RM) -f .depend | 92 -$(RM) -f .depend |
75 | 93 |
76 distclean: | 94 distclean: |
77 | 95 |
78 install: $(PROG) | 96 install: $(PROG) $(PROG2) $(PROG3) |
79 $(INSTALL) -d $(bindir) | 97 $(INSTALL) -d $(bindir) |
80 $(INSTALL) $(PROG) $(bindir) | 98 $(INSTALL) $(PROG) $(bindir) |
99 $(INSTALL) $(PROG2) $(bindir) | |
100 $(INSTALL) $(PROG3) $(bindir) | |
81 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG) | 101 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG) |
102 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG2) | |
103 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG3) | |
82 | 104 |
83 depend: | 105 depend: |
84 $(CC) -I.. -MM $(CFLAGS) $(SRCS) 1>.depend | 106 $(CC) -I.. -MM $(CFLAGS) $(SRCS) 1>.depend |
85 | 107 |
86 .PHONY: clean distclean install depend | 108 .PHONY: clean distclean install depend |