Mercurial > pt1.oyama
view recpt1/Makefile @ 20:669f7080a8dc
reworked Makefile so that shared object would be built
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 25 Feb 2009 22:54:07 +0900 |
parents | 0a6b831f4b89 |
children | b63f5c100e5a |
line wrap: on
line source
#!/usr/bin/make -f # options B25 = -DB25 ifdef B25 B25_PATH = ../arib25v023/arib25/src B25_CLEAN = clean_b25 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 PREFIX = /usr/local 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 TARGET = recpt1 DEPEND = Makefile.dep all: $(TARGET) clean: $(B25_CLEAN) rm -f $(OBJS) $(TARGET) $(DEPEND) 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=.c) $(CPPFLAGS) > $@ # 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 install: $(TARGET) install -m 755 $(TARGET) $(PREFIX)/bin -include Makefile.dep