2016-02-18 07:11:59 -08:00
|
|
|
#**************************************************************************
|
|
|
|
#* *
|
|
|
|
#* 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. *
|
|
|
|
#* *
|
|
|
|
#**************************************************************************
|
1999-11-17 10:59:06 -08:00
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
# Makefile for the parser generator.
|
|
|
|
|
2018-09-17 05:51:01 -07:00
|
|
|
ROOTDIR = ..
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2018-09-17 05:51:01 -07:00
|
|
|
include $(ROOTDIR)/Makefile.config
|
2019-09-11 00:16:15 -07:00
|
|
|
include $(ROOTDIR)/Makefile.common
|
2018-09-17 05:51:01 -07:00
|
|
|
|
|
|
|
OC_CPPFLAGS += -I$(ROOTDIR)/runtime
|
|
|
|
|
|
|
|
ocamlyacc_SOURCES := $(addsuffix .c,\
|
|
|
|
closure error lalr lr0 main mkpar output reader skeleton symtab verbose \
|
|
|
|
warshall)
|
|
|
|
|
|
|
|
ocamlyacc_OBJECTS := $(ocamlyacc_SOURCES:.c=.$(O))
|
|
|
|
|
|
|
|
generated_files := ocamlyacc$(EXE) $(ocamlyacc_OBJECTS) version.h
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2000-08-10 02:58:08 -07:00
|
|
|
all: ocamlyacc$(EXE)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
Unicode support for the Windows runtime (#1200)
* Add support code
* Explicitly reference ANSI Windows APIs
* Adapt Sys.is_directory
* Adapt ocamlrun
* Add Changes entry
* Add testsuite
* Adapt Unix.open_process{_in,_out,_full,}, Unix.create_process{_env,}
* Adapt headernt.c
* Adapt Pervasives.open_{in,out}, Filename.temp_file, etc.
* Adapt Sys.file_exists
* Adapt Sys.remove
* Adapt Sys.chdir
* Adapt Sys.getcwd
* Adapt Sys.getenv
* Adapt Sys.command
* Adapt Sys.readdir
* Adapt CPLUGINS
* Remove use of FormatMessageA, CreateFileA
* Adapt Unix.mkdir
* Adapt Unix.openfile
* Adapt Unix.readlink
* Adapt Unix.rename
* Adapt Unix.{LargeFile,}.{l,}stat
* Adapt Unix.system
* Adapt Unix.{open,read}dir
* Adapt Unix.link
* Adapt Unix.symlink
* Adapt Unix.getcwd
* Adapt Unix.rmdir
* Adapt Unix.utimes
* Adapt Unix.unlink
* Adapt Unix.chdir
* Adapt Unix.chmod
* Adapt Unix.{execv,execve,execvp,execvpe}
* Compile with -DUNICODE -D_UNICODE under Windows
* Add configure-time switch, Config.windows_unicode
* Adapt Unix.putenv
* Re-implement Unix.environment using GetEnvironmentStrings()
* Use Unicode-aware flexdll
* Adapt Unix.environment
* AppVeyor: bootstrap flexdll
* Adapt tests/embedded/cmmain.c
* Adapt tests/lib-dynlink-csharp/entry.c
* Remove exec tests
* Fixup
* Pass -municode to MinGW compiler
* Try to fix tests/embedded
* Adapt Sys.rename
* Correct Changes entry
* Makefile.several: use $(O) and $(NATIVECODE_ONLY)
* Display => skipped correctly for tests/win-unicode
* Add missing casts to execv* calls
It's not clear why these aren't necessary for with char, but they are
necessary with wchar_t on GCC (but not MSVC).
* Missing header in systhreads (Win32 only)
* Revert "Pass -municode to MinGW compiler"
This reverts commit a4ce7fb319c429068a5b9d1ab14a2cc3969c355f.
* Revert "Try to fix tests/embedded"
This reverts commit 5197d8922295b7b339b970ec3189374aa15de4b8.
* Revert "Remove exec tests"
This reverts commit 306ccef2e79eca5b38ecfa285b912c7bcf3e9f52.
* Don't pass $(LDFLAGS) when build ocamlc.opt
It's already included via CC anyway, and it causes Unicode problems for
Winodws (because the linker options need to be prefixed "-link" to go via
flexlink).
* Use wmain on Windows for ocamlrun
* Build Unicode applications on Windows
* Use wmain in headernt.c
* Minor correction to win-unicode Makefile
* Switch submodule to FlexDLL 0.36
* Build ocamlyacc as an ANSI application
* Revert "Fixup"
This reverts commit 500bd6b575ffd6c5b71c6953e55d740f0b090185.
* Fix casts for execvp/execve
* Remove tabs from test code
* Fix Changes entry
* shell32.lib is no longer necessary
* Free allocated string
* Changes: signal breaking change
* Disable exec_tests
* Protect with CAML_INTERNALS
2017-09-18 08:41:29 -07:00
|
|
|
ifeq ($(TOOLCHAIN),cc)
|
|
|
|
MKEXE_ANSI=$(MKEXE)
|
|
|
|
endif
|
|
|
|
|
2018-09-17 05:51:01 -07:00
|
|
|
ocamlyacc$(EXE): $(ocamlyacc_OBJECTS)
|
|
|
|
$(MKEXE_ANSI) -o $@ $^ $(EXTRALIBS)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2018-09-17 05:51:01 -07:00
|
|
|
version.h : $(ROOTDIR)/VERSION
|
|
|
|
echo "#define OCAML_VERSION \"`sed -e 1q $< | tr -d '\r'`\"" > $@
|
2004-11-26 17:04:19 -08:00
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
clean:
|
2018-09-17 05:51:01 -07:00
|
|
|
rm -f $(generated_files)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
depend:
|
|
|
|
|
2016-03-12 21:23:27 -08:00
|
|
|
closure.$(O): defs.h
|
|
|
|
error.$(O): defs.h
|
|
|
|
lalr.$(O): defs.h
|
|
|
|
lr0.$(O): defs.h
|
|
|
|
main.$(O): defs.h version.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
|