Mercurial > pt1.oyama
diff recpt1/Makefile @ 0:67e8eca28a80
initial import
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 16 Feb 2009 15:41:49 +0900 |
parents | |
children | 29f3b2bbbd67 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/recpt1/Makefile Mon Feb 16 15:41:49 2009 +0900 @@ -0,0 +1,51 @@ +#!/usr/bin/make -f +# $Id: Makefile 5663 2008-09-15 17:53:59Z clworld $ + +# options +B25 = -DB25 + +ifdef B25 + B25_PATH = ../arib25v021/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 = + +OBJS = test.o $(B25_OBJS_EXT) +LIBS = -lpthread +TARGET = $(DIST)/recpt1 + +all: $(TARGET) + +clean: $(B25_CLEAN) + rm -f $(OBJS) $(TARGET) + +ifdef B25 +clean_b25: + cd $(B25_PATH); make clean +endif + +$(TARGET): $(OBJS) + $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) $(B25_LIBS) + +depend: + $(CC) -MM $(OBJS:.o=.cpp) > Makefile.dep + +# B25_OBJS_EXT +$(B25_PATH)/arib_std_b25.o: + cd $(B25_PATH); make all +$(B25_PATH)/b_cas_card.o: + cd $(B25_PATH); make all +$(B25_PATH)/multi2.o: + cd $(B25_PATH); make all +$(B25_PATH)/ts_section_parser.o: + cd $(B25_PATH); make all + +-include Makefile.dep