Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

235 lines (187 sloc) 5.473 kb
.PHONY: clean all
USE_OCAMLFIND = true
OCAMLPACKS[] =
oUnit
extlib
CamlGI
str
compiler-libs.bytecomp
if $(not $(OCAMLFIND_EXISTS))
eprintln('This project requires ocamlfind, but is was not found.')
eprintln('You need to install ocamlfind and run "omake --configure".')
exit 1
OCAMLFLAGS += -dtypes -g -thread -w A-4-9 -warn-error A-4-6-9-27-31-33
OCAMLINCLUDES += ../parsing
OCAMLINCLUDES += ../typing
NATIVE_ENABLED = true
BYTE_ENABLED = true
CGI_FILES[] =
chconfig
controller
hList
list2
searchid
search
base
main
CGI_PROGRAM = index.cgi
all:: $(OCamlProgram $(CGI_PROGRAM), $(CGI_FILES))
CLI_FILES[] =
chconfig
controller
hList
list2
searchid
search
base
cli
CLI_PROGRAM = ocamlas
all:: $(OCamlProgram $(CLI_PROGRAM), $(CLI_FILES))
# OCAML_LIBS +=
# OCAML_CLIBS +=
# OCAML_OTHER_LIBS += toplevellib
# OCAML_LIB_FLAGS +=
#
all:: modules.txt
modules.txt : modules-init.sh
./modules-init.sh
clean:
rm -f *.cm* *.o *.omc $(CGI_PROGRAM) $(CLI_PROGRAM) *.run *.opt *~ *.annot *Test-runner
.DEFAULT: all
# test
public.OUnitTest(name,files) =
protected.test_file = $(addsuffix Test,$(name))
protected.target = $(addsuffix -runner,$(test_file))
protected.src_files = $(files)
.PHONY: check check-$(name) clean check-detail-$(name) check-detail
OCamlProgram($(target), $(test_file) $(src_files) $(OUNIT_LIBS))
check-$(name): $(target)
$(addprefix ./,$(target))
check-detail-$(name): $(target)
($(addprefix ./,$(target)) -verbose ; true) | tee -a $(ROOT)/unittest.log
check: check-$(name)
check-detail: check-detail-$(name)
export
OUNIT_LIBS[] =
base
hList
OUnitTest(config, chconfig)
OUnitTest(search, search chconfig searchid list2)
OUnitTest(controller, controller)
########################################################################
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this file, to deal in the File without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the File, and to permit persons to whom the
# File is furnished to do so, subject to the following condition:
#
# THE FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE FILE OR
# THE USE OR OTHER DEALINGS IN THE FILE.
########################################################################
# The standard OMakefile.
# You will usually need to modify this file for your project.
# Delete this line once you have configured this file
# eprintln($(CWD)/OMakefile is not configured)
########################################################################
# Phony targets are scoped, so you probably want to declare them first.
#
# .PHONY: all install clean
########################################################################
# Subdirectories.
# You may want to include some subdirectories in this project.
# If so, define the subdirectory targets and uncomment this section.
#
# .SUBDIRS:
########################################################################
# C configuration.
# Delete this section if you are not building C files.
#
################################################
# Configuration. You might want to modify any of these
# configuration variables.
#
# CFLAGS +=
# ASFLAGS +=
# LDFLAGS +=
# INCLUDES +=
################################################
# Uncomment the following section if you want
# to build a C program in the current directory.
#
# CFILES[] =
# file1
# main
#
# MAIN = main
#
# .DEFAULT: $(CProgram $(MAIN), $(CFILES))
################################################
# Uncomment the following section if you want to build a C library
# in the current directory.
#
# LIBFILES[] =
# file1
# file2
#
# LIB = libxxx
#
# .DEFAULT: $(StaticCLibrary $(LIB), $(LIBFILES))
########################################################################
# OCaml configuration.
# Delete this section if you are not building OCaml files.
#
################################################
# Configuration. You may want to modify any of these configuration
# variables.
#
#
# This project requires ocamlfind (default - false).
#
# USE_OCAMLFIND = true
#
# OCAMLPACKS[] =
# pack1
# pack2
#
# if $(not $(OCAMLFIND_EXISTS))
# eprintln(This project requires ocamlfind, but is was not found.)
# eprintln(You need to install ocamlfind and run "omake --configure".)
# exit 1
#
# Include path
#
#
# Various options
#
# OCAMLFLAGS +=
# OCAMLCFLAGS +=
# OCAMLOPTFLAGS +=
# OCAML_LINK_FLAGS +=
# OCAML_BYTE_LINK_FLAGS +=
# OCAML_NATIVE_LINK_FLAGS +=
################################################
# Generated files
#
# Workaround for the fact that ocamldep does not pay attention to .mll
# and .mly files.
#
# OCamlGeneratedFiles(parser.ml lexer.ml)
################################################
# Build an OCaml library
#
# FILES[] =
# file1
# file2
#
# LIB = main
#
# .DEFAULT: $(OCamlLibrary $(LIB), $(FILES))
################################################
# Build an OCaml program
#
Jump to Line
Something went wrong with that request. Please try again.