1#**************************************************************************
2#*                                                                        *
3#*                                OCaml                                   *
4#*                                                                        *
5#*                 Xavier Clerc, SED, INRIA Rocquencourt                  *
6#*                                                                        *
7#*   Copyright 2010 Institut National de Recherche en Informatique et     *
8#*     en Automatique.                                                    *
9#*                                                                        *
10#*   All rights reserved.  This file is distributed under the terms of    *
11#*   the GNU Lesser General Public License version 2.1, with the          *
12#*   special exception on linking described in the file LICENSE.          *
13#*                                                                        *
14#**************************************************************************
15
16BASEDIR=../..
17LIBRARIES=unix
18ADD_COMPFLAGS=-I $(OTOPDIR)/otherlibs/$(UNIXLIBVAR)unix
19LD_PATH=$(TOPDIR)/otherlibs/$(UNIXLIBVAR)unix
20
21ifeq ($(OS),Windows_NT)
22ADD_BYTERUN_FLAGS="-I $(OTOPDIR)/otherlibs/win32unix"
23endif
24
25default: reflector.exe fdstatus.exe cmdline_prog.exe
26	@$(MAKE) check
27
28include $(BASEDIR)/makefiles/Makefile.several
29include $(BASEDIR)/makefiles/Makefile.common
30
31%.exe: %.c
32ifeq ($(CCOMPTYPE),msvc)
33	@set -o pipefail ; $(BYTECC) /Fe$*.exe $*.c | tail -n +2
34else
35	@$(BYTECC) -o $*.exe $*.c
36endif
37