1 ##===- utils/Burg/Makefile ---------------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file was developed by the LLVM research group and is distributed under
6 # the University of Illinois Open Source License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
11 BUILT_SOURCES
= gram.tab.c gram.tab.h
13 EXTRA_DIST
= gram.yc gram.tab.c gram.tab.h sample.gr
15 include $(LEVEL
)/Makefile.common
17 gram.tab.c gram.tab.h
: gram.yc
18 $(Verb
) $(BISON
) -o gram.tab.c
-d
$<
20 $(ObjDir
)/lex.o
: gram.tab.h
23 $(Verb
) $(RM
) -rf gram.tab.h gram.tab.c core
* *.aux
*.log
*.
dvi sample sample.c tmp
26 $(Verb
) latex doc
; latex doc
28 check:: $(ToolBuildPath
) $(BUILD_SRC_DIR
)/sample.gr
29 $(ToolBuildPath
) -I
<$(BUILD_SRC_DIR
)/sample.gr
>sample.c \
30 && $(CC
) $(CFLAGS
) -o sample sample.c
&& .
/sample
31 $(ToolBuildPath
) -I
$(BUILD_SRC_DIR
)/sample.gr
>tmp \
33 $(ToolBuildPath
) -I
<$(BUILD_SRC_DIR
)/sample.gr
-o tmp \
35 $(ToolBuildPath
) -I
$(BUILD_SRC_DIR
)/sample.gr
-o tmp \
37 $(ToolBuildPath
) -I
-O0
<$(BUILD_SRC_DIR
)/sample.gr
>tmp \
39 $(ToolBuildPath
) -I
-= <$(BUILD_SRC_DIR
)/sample.gr
>tmp \