-
Notifications
You must be signed in to change notification settings - Fork 79
/
Copy pathMakefile
67 lines (52 loc) · 2.2 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#**************************************************************************
#* *
#* OCaml *
#* *
#* Xavier Leroy, projet Cristal, INRIA Rocquencourt *
#* *
#* Copyright 1999 Institut National de Recherche en Informatique et *
#* en Automatique. *
#* *
#* All rights reserved. This file is distributed under the terms of *
#* the GNU Lesser General Public License version 2.1, with the *
#* special exception on linking described in the file LICENSE. *
#* *
#**************************************************************************
# CR ocaml 5 merge: this file only exists to get the dune build to work
# while we hack on the merge conflicts; upstream has merged it into the top-level
# Makefile. We should see what we can do to delete this file.
# Makefile for the parser generator.
ROOTDIR = ..
include $(ROOTDIR)/Makefile.common
OCAMLYACC_INCLUDE_PATH = $(ROOTDIR)/runtime
OC_CPPFLAGS += -I$(OCAMLYACC_INCLUDE_PATH)
ifeq "$(UNIX_OR_WIN32)" "win32"
WSTR_OBJ = wstr
else
WSTR_OBJ =
endif
ocamlyacc_SOURCES := $(addsuffix .c,\
$(WSTR_OBJ) closure error lalr lr0 main mkpar output reader skeleton \
symtab verbose warshall)
ocamlyacc_OBJECTS := $(ocamlyacc_SOURCES:.c=.$(O))
generated_files := ocamlyacc$(EXE) $(ocamlyacc_OBJECTS)
all: ocamlyacc$(EXE)
ocamlyacc$(EXE): $(ocamlyacc_OBJECTS)
$(MKEXE) -o $@ $^ $(EXTRALIBS)
.PHONY: clean
clean:
rm -f ocamlyacc ocamlyacc.exe wstr.o wstr.obj \
$(ocamlyacc_SOURCES:.c=.o) $(ocamlyacc_SOURCES:.c=.obj)
depend:
closure.$(O): defs.h
error.$(O): defs.h
lalr.$(O): defs.h
lr0.$(O): defs.h
main.$(O): defs.h
mkpar.$(O): defs.h
output.$(O): defs.h
reader.$(O): defs.h
skeleton.$(O): defs.h
symtab.$(O): defs.h
verbose.$(O): defs.h
warshall.$(O): defs.h