Home | History | Annotate | Download | only in bison
      1 # 
      2 # Copyright 2006 The Android Open Source Project
      3 #
      4 # Android Asset Packaging Tool
      5 #
      6 
      7 ifeq ($(HOST_OS),linux)
      8 
      9 LOCAL_PATH:= $(call my-dir)
     10 include $(CLEAR_VARS)
     11 
     12 LOCAL_SRC_FILES := \
     13 	lib/abitset.c \
     14 	lib/argmatch.c \
     15 	lib/basename.c \
     16 	lib/bitset.c \
     17 	lib/bitset_stats.c \
     18 	lib/bitsetv-print.c \
     19 	lib/bitsetv.c \
     20 	lib/dirname.c \
     21 	lib/dup-safer.c \
     22 	lib/ebitset.c \
     23 	lib/exitfail.c \
     24 	lib/fd-safer.c \
     25 	lib/fopen-safer.c \
     26 	lib/get-errno.c \
     27 	lib/hard-locale.c \
     28 	lib/hash.c \
     29 	lib/lbitset.c \
     30 	lib/mbswidth.c \
     31 	lib/pipe-safer.c \
     32 	lib/quote.c \
     33 	lib/quotearg.c \
     34 	lib/stripslash.c \
     35 	lib/subpipe.c \
     36 	lib/timevar.c \
     37 	lib/vbitset.c \
     38 	lib/xalloc-die.c \
     39 	lib/xmalloc.c \
     40 	lib/xstrndup.c \
     41 	\
     42 	src/LR0.c \
     43 	src/assoc.c \
     44 	src/closure.c \
     45 	src/complain.c \
     46 	src/conflicts.c \
     47 	src/derives.c \
     48 	src/files.c \
     49 	src/getargs.c \
     50 	src/gram.c \
     51 	src/lalr.c \
     52 	src/location.c \
     53 	src/main.c \
     54 	src/muscle_tab.c \
     55 	src/nullable.c \
     56 	src/output.c \
     57 	src/parse-gram.c \
     58 	src/print.c \
     59 	src/print_graph.c \
     60 	src/reader.c \
     61 	src/reduce.c \
     62 	src/relation.c \
     63 	src/scan-gram-c.c \
     64 	src/scan-skel-c.c \
     65 	src/state.c \
     66 	src/symlist.c \
     67 	src/symtab.c \
     68 	src/tables.c \
     69 	src/uniqstr.c \
     70 	src/vcg.c
     71 
     72 LOCAL_MODULE := bison
     73 LOCAL_MODULE_CLASS := EXECUTABLES
     74 LOCAL_IS_HOST_MODULE := true
     75 intermediates := $(call local-intermediates-dir)
     76 
     77 LOCAL_CFLAGS := -DHAVE_CONFIG_H -DPKGDATADIR=\"$(LOCAL_PATH)/data\"
     78 
     79 LOCAL_C_INCLUDES := \
     80 	$(LOCAL_PATH)/lib
     81 
     82 include $(BUILD_HOST_EXECUTABLE)
     83 
     84 endif
     85