Mercurial > pt1.oyama
diff 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 |
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