Home | History | Annotate | Download | only in bison
      1 # Copyright 2006 The Android Open Source Project
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License");
      4 # you may not use this file except in compliance with the License.
      5 # You may obtain a copy of the License at
      6 #
      7 #      http://www.apache.org/licenses/LICENSE-2.0
      8 #
      9 # Unless required by applicable law or agreed to in writing, software
     10 # distributed under the License is distributed on an "AS IS" BASIS,
     11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 # See the License for the specific language governing permissions and
     13 # limitations under the License.
     14 
     15 LOCAL_PATH:= $(call my-dir)
     16 
     17 ###########################################
     18 include $(CLEAR_VARS)
     19 
     20 LOCAL_MODULE := libbison
     21 
     22 LOCAL_C_INCLUDES := \
     23     $(LOCAL_PATH)/$(BUILD_OS)-lib \
     24     $(LOCAL_PATH)/lib
     25 
     26 LOCAL_SRC_FILES := \
     27     lib/abitset.c \
     28     lib/argmatch.c \
     29     lib/asnprintf.c \
     30     lib/basename-lgpl.c \
     31     lib/basename.c \
     32     lib/binary-io.c \
     33     lib/bitrotate.c \
     34     lib/bitset.c \
     35     lib/bitset_stats.c \
     36     lib/bitsetv-print.c \
     37     lib/bitsetv.c \
     38     lib/c-ctype.c \
     39     lib/c-strcasecmp.c \
     40     lib/c-strncasecmp.c \
     41     lib/cloexec.c \
     42     lib/close-stream.c \
     43     lib/closeout.c \
     44     lib/dirname-lgpl.c \
     45     lib/dirname.c \
     46     lib/dup-safer-flag.c \
     47     lib/dup-safer.c \
     48     lib/ebitset.c \
     49     lib/exitfail.c \
     50     lib/fatal-signal.c \
     51     lib/fd-hook.c \
     52     lib/fd-safer-flag.c \
     53     lib/fd-safer.c \
     54     lib/fopen-safer.c \
     55     lib/fprintf.c \
     56     lib/fseterr.c \
     57     lib/get-errno.c \
     58     lib/hash.c \
     59     lib/isnand.c \
     60     lib/isnanf.c \
     61     lib/isnanl.c \
     62     lib/lbitset.c \
     63     lib/localcharset.c \
     64     lib/math.c \
     65     lib/mbchar.c \
     66     lib/mbschr.c \
     67     lib/mbsrchr.c \
     68     lib/mbswidth.c \
     69     lib/mbuiter.c \
     70     lib/pipe-safer.c \
     71     lib/pipe2-safer.c \
     72     lib/pipe2.c \
     73     lib/printf-args.c \
     74     lib/printf-frexp.c \
     75     lib/printf-frexpl.c \
     76     lib/printf-parse.c \
     77     lib/printf.c \
     78     lib/progname.c \
     79     lib/quotearg.c \
     80     lib/sig-handler.c \
     81     lib/snprintf.c \
     82     lib/spawn-pipe.c \
     83     lib/sprintf.c \
     84     lib/stdio.c \
     85     lib/strerror_r.c \
     86     lib/stripslash.c \
     87     lib/strnlen1.c \
     88     lib/timevar.c \
     89     lib/unistd.c \
     90     lib/vasnprintf.c \
     91     lib/vbitset.c \
     92     lib/vfprintf.c \
     93     lib/vsnprintf.c \
     94     lib/vsprintf.c \
     95     lib/wait-process.c \
     96     lib/wctype-h.c \
     97     lib/xalloc-die.c \
     98     lib/xmalloc.c \
     99     lib/xmemdup0.c \
    100     lib/xsize.c \
    101     lib/xstrndup.c \
    102     lib/yyerror.c \
    103     lib/glthread/lock.c \
    104     lib/glthread/threadlib.c \
    105     lib/uniwidth/width.c
    106 
    107 ifeq ($(BUILD_OS),darwin)
    108 LOCAL_SRC_FILES += \
    109     lib/error.c \
    110     lib/fpending.c \
    111     lib/getdelim.c \
    112     lib/getline.c \
    113     lib/getopt.c \
    114     lib/getopt1.c \
    115     lib/obstack.c \
    116     lib/obstack_printf.c \
    117     lib/open.c \
    118     lib/perror.c \
    119     lib/rawmemchr.c \
    120     lib/stat.c \
    121     lib/strchrnul.c \
    122     lib/strerror-override.c \
    123     lib/strerror.c \
    124     lib/strndup.c \
    125     lib/strnlen.c \
    126     lib/strverscmp.c \
    127     lib/wcwidth.c
    128 endif
    129 
    130 ifeq ($(BUILD_OS),linux)
    131 LOCAL_SRC_FILES += \
    132     lib/fcntl.c
    133 endif
    134 
    135 include $(BUILD_HOST_STATIC_LIBRARY)
    136 ###########################################
    137 
    138 include $(CLEAR_VARS)
    139 
    140 LOCAL_MODULE := bison
    141 
    142 LOCAL_C_INCLUDES := \
    143     $(LOCAL_PATH)/$(BUILD_OS)-lib \
    144     $(LOCAL_PATH)/lib
    145 
    146 LOCAL_CFLAGS := -DPKGDATADIR=\"$(LOCAL_PATH)/data\"
    147 
    148 LOCAL_STATIC_LIBRARIES := libbison
    149 
    150 LOCAL_SRC_FILES := \
    151     src/AnnotationList.c \
    152     src/InadequacyList.c \
    153     src/LR0.c \
    154     src/Sbitset.c \
    155     src/assoc.c \
    156     src/closure.c \
    157     src/complain.c \
    158     src/conflicts.c \
    159     src/derives.c \
    160     src/files.c \
    161     src/getargs.c \
    162     src/gram.c \
    163     src/graphviz.c \
    164     src/ielr.c \
    165     src/lalr.c \
    166     src/location.c \
    167     src/main.c \
    168     src/muscle-tab.c \
    169     src/named-ref.c \
    170     src/nullable.c \
    171     src/output.c \
    172     src/parse-gram.c \
    173     src/print-xml.c \
    174     src/print.c \
    175     src/print_graph.c \
    176     src/reader.c \
    177     src/reduce.c \
    178     src/relation.c \
    179     src/scan-code-c.c \
    180     src/scan-gram-c.c \
    181     src/scan-skel-c.c \
    182     src/state.c \
    183     src/symlist.c \
    184     src/symtab.c \
    185     src/tables.c \
    186     src/uniqstr.c
    187 
    188 include $(BUILD_HOST_EXECUTABLE)
    189