comparison arib25v023/arib25/src/Makefile @ 23:f80731a89036

do not link td.o into shared object
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Thu, 26 Feb 2009 16:14:38 +0900
parents 08f9a97364e0
children
comparison
equal deleted inserted replaced
22:08f9a97364e0 23:f80731a89036
13 13
14 PCSC_LIBS ?= `pkg-config libpcsclite --libs` 14 PCSC_LIBS ?= `pkg-config libpcsclite --libs`
15 LIBS = $(PCSC_LIBS) -lm 15 LIBS = $(PCSC_LIBS) -lm
16 LDFLAGS ?= 16 LDFLAGS ?=
17 17
18 OBJS = arib_std_b25.o b_cas_card.o multi2.o td.o ts_section_parser.o 18 OBJS = arib_std_b25.o b_cas_card.o multi2.o ts_section_parser.o
19 HEADERS = arib_std_b25.h b_cas_card.h portable.h 19 HEADERS = arib_std_b25.h b_cas_card.h portable.h
20 TARGET_APP = b25 20 TARGET_APP = b25
21 TARGET_LIB = libarib25.so 21 TARGET_LIB = libarib25.so
22 TARGETS = $(TARGET_APP) $(TARGET_LIB) 22 TARGETS = $(TARGET_APP) $(TARGET_LIB)
23 DEPEND = Makefile.dep 23 DEPEND = Makefile.dep
24 SONAME = $(TARGET_LIB).$(MAJOR) 24 SONAME = $(TARGET_LIB).$(MAJOR)
25 25
26 all: $(TARGETS) 26 all: $(TARGETS)
27 27
28 clean: 28 clean:
29 rm -f $(OBJS) $(TARGETS) $(DEPEND) 29 rm -f $(OBJS) td.o $(TARGETS) $(DEPEND)
30 30
31 $(TARGET_APP): $(OBJS) 31 $(TARGET_APP): $(OBJS) td.o
32 $(CC) $(LDFLAGS) -o $(TARGET_APP) $(OBJS) $(LIBS) 32 $(CC) $(LDFLAGS) -o $(TARGET_APP) $(OBJS) td.o $(LIBS)
33 33
34 $(TARGET_LIB): $(OBJS) 34 $(TARGET_LIB): $(OBJS)
35 $(CC) $(LDFLAGS) -shared -o $(TARGET_LIB) $(OBJS) $(LIBS) -Wl,-soname,$(SONAME) 35 $(CC) $(LDFLAGS) -shared -o $(TARGET_LIB) $(OBJS) $(LIBS) -Wl,-soname,$(SONAME)
36 36
37 $(DEPEND): 37 $(DEPEND):