Mercurial > pt1
diff recpt1/Makefile @ 10:e3059e3cf5e7
revised Makefile.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 23 Feb 2009 14:35:26 +0900 |
parents | 6801fe7e04ff |
children | 0a6b831f4b89 |
line wrap: on
line diff
--- a/recpt1/Makefile Mon Feb 23 14:28:35 2009 +0900 +++ b/recpt1/Makefile Mon Feb 23 14:35:26 2009 +0900 @@ -1,5 +1,4 @@ #!/usr/bin/make -f -# $Id: Makefile 5663 2008-09-15 17:53:59Z clworld $ # options B25 = -DB25 @@ -7,36 +6,37 @@ ifdef B25 B25_PATH = ../arib25v023/arib25/src B25_CLEAN = clean_b25 -# B25_OBJS = B25Decoder.o B25_OBJS_EXT = $(B25_PATH)/arib_std_b25.o $(B25_PATH)/b_cas_card.o $(B25_PATH)/multi2.o $(B25_PATH)/ts_section_parser.o PCSC_LDLIBS ?= `pkg-config libpcsclite --libs` B25_LIBS = $(PCSC_LDLIBS) -lm endif DIST = . -CC = gcc -CFLAGS = -O2 -g -Wall -pthread -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(B25) -I../driver -LDFLAGS = +CC = gcc +CPPFLAGS = -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(B25) +CFLAGS = -O2 -g -pthread +LDFLAGS = OBJS = recpt1.o $(B25_OBJS_EXT) decoder.o -LIBS = -lpthread +LIBS = -lpthread TARGET = $(DIST)/recpt1 +DEPEND = Makefile.dep all: $(TARGET) clean: $(B25_CLEAN) - rm -f $(OBJS) $(TARGET) + rm -f $(OBJS) $(TARGET) $(DEPEND) ifdef B25 clean_b25: cd $(B25_PATH); make clean endif -$(TARGET): $(OBJS) +$(TARGET): $(OBJS) $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) $(B25_LIBS) -depend: - $(CC) -MM $(OBJS:.o=.cpp) > Makefile.dep +$(DEPEND): + $(CC) -MM $(OBJS:.o=.c) $(CPPFLAGS) > $@ # B25_OBJS_EXT $(B25_PATH)/arib_std_b25.o: