/[debian]/bti/branches/upstream/current/Makefile
ViewVC logotype

Diff of /bti/branches/upstream/current/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1620 by gregoa, Sat Feb 14 17:35:18 2009 UTC revision 1621 by gregoa, Thu Mar 12 15:49:54 2009 UTC
# Line 16  Line 16 
16  #  #
17  #  #
18    
19  VERSION = 014  VERSION = 015
20    
21  PROGRAM = bti  PROGRAM = bti
22    
# Line 34  CC = $(CROSS_COMPILE)gcc Line 34  CC = $(CROSS_COMPILE)gcc
34  LD = $(CROSS_COMPILE)gcc  LD = $(CROSS_COMPILE)gcc
35  AR = $(CROSS_COMPILE)ar  AR = $(CROSS_COMPILE)ar
36    
37  override CFLAGS += -g -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -O2  XML2_CFLAGS = `xml2-config --cflags`
38    override CFLAGS += -g -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -O2 $(XML2_CFLAGS)
39    
40  WARNINGS        = -Wstrict-prototypes -Wsign-compare -Wshadow \  WARNINGS        = -Wstrict-prototypes -Wsign-compare -Wshadow \
41                    -Wchar-subscripts -Wmissing-declarations -Wnested-externs \                    -Wchar-subscripts -Wmissing-declarations -Wnested-externs \
# Line 60  export E Q Line 61  export E Q
61  # We need -lpthread for the pthread example  # We need -lpthread for the pthread example
62  #LIB_OBJS = -lcurl -lnsl -lssl -lcrypto  #LIB_OBJS = -lcurl -lnsl -lssl -lcrypto
63  LIB_OBJS = -lcurl -lnsl -lreadline  LIB_OBJS = -lcurl -lnsl -lreadline
64    LIB_XML2 = `xml2-config --libs`
65    
66  all:    $(PROGRAM) $(MAN_PAGES)  all:    $(PROGRAM) $(MAN_PAGES)
67    
68  # "Static Pattern Rule" to build all programs  # "Static Pattern Rule" to build all programs
69  bti: %: $(HEADERS) $(GEN_HEADERS) $(CORE_OBJS)  bti: %: $(HEADERS) $(GEN_HEADERS) $(CORE_OBJS)
70          $(E) "  LD      " $@          $(E) "  LD      " $@
71          $(Q) $(LD) $(LDFLAGS) $(CORE_OBJS) -o $@ $(LIB_OBJS)          $(Q) $(LD) $(LDFLAGS) $(CORE_OBJS) -o $@ $(LIB_OBJS) $(LIB_XML2)
72    
73    
74  # build the objects  # build the objects

Legend:
Removed from v.1620  
changed lines
  Added in v.1621

  ViewVC Help
Powered by ViewVC 1.1.26