diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-11-14 20:03:21 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-11-14 20:03:21 +0000 |
commit | d22a970196e532292d20dbaa5dc25ed5c35f6bc1 (patch) | |
tree | 88114434c6b9080a268f8bfe2f26e07939c05c7e /perl_checker.src/Makefile | |
parent | a4a7e80c8c89ae1e962a86ae14e2f1865f95d1f7 (diff) | |
download | perl-MDK-Common-d22a970196e532292d20dbaa5dc25ed5c35f6bc1.tar perl-MDK-Common-d22a970196e532292d20dbaa5dc25ed5c35f6bc1.tar.gz perl-MDK-Common-d22a970196e532292d20dbaa5dc25ed5c35f6bc1.tar.bz2 perl-MDK-Common-d22a970196e532292d20dbaa5dc25ed5c35f6bc1.tar.xz perl-MDK-Common-d22a970196e532292d20dbaa5dc25ed5c35f6bc1.zip |
*** empty log message ***
Diffstat (limited to 'perl_checker.src/Makefile')
-rw-r--r-- | perl_checker.src/Makefile | 92 |
1 files changed, 11 insertions, 81 deletions
diff --git a/perl_checker.src/Makefile b/perl_checker.src/Makefile index 6318ac5..5d28fa6 100644 --- a/perl_checker.src/Makefile +++ b/perl_checker.src/Makefile @@ -1,84 +1,14 @@ -CSLC = ocamlcp -p a -CSLC = ocamlc -CSLOPT = ocamlopt -CSLDEP = ocamldep -CSLLEX = ocamllex -CSLYACC = ocamlyacc -v -CSLFLAGS = -w A -g -CSLOPTFLAGS = +# OCAMLC = ocamlcp -p a +OCAMLBCFLAGS = -w A +YFLAGS = -v +TRASH = parser.output +RESULT = perl_checker +BCSUFFIX = _debug +SOURCES = common.ml types.mli info.ml parser_helper.ml parser.mly lexer.mll perl_checker.ml +LIBS = unix -LEX_FILES = $(wildcard *.mll) -YACC_FILES = $(wildcard *.mly) -TMP_FILES = $(YACC_FILES:%.mly=%.mli) $(YACC_FILES:%.mly=%.output) $(YACC_FILES:%.mly=%.ml) $(LEX_FILES:%.mll=%.ml) +NAME = shyant -ALL_PROGS = perl_checker_debug perl_checker +default: debug-code native-code -PROG_OBJS_WITH_CMI = parser_helper.cmo parser.cmo print.cmo perl_checker.cmo -PROG_OBJS = common.cmo flags.cmo info.cmo $(LEX_FILES:%.mll=%.cmo) $(PROG_OBJS_WITH_CMI) -CMA_FILES = unix.cma - -PROG_OBJX_WITH_CMI = $(PROG_OBJS_WITH_CMI:%.cmo=%.cmx) -PROG_OBJX = $(PROG_OBJS:%.cmo=%.cmx) -CMXA_FILES = $(CMA_FILES:%.cma=%.cmxa) - -.PHONY: depend tags clean - -default: .compiling TAGS $(ALL_PROGS) - rm -f .compiling - -all: perl_checker - -perl_checker_debug: .depend $(PROG_OBJS) - $(CSLC) -custom $(CSLFLAGS) $(LIBDIRS) -o $@ $(CMA_FILES) $(PROG_OBJS) - -perl_checker: .depend $(PROG_OBJX) - $(CSLOPT) $(CSLOPTFLAGS) $(LIBDIRS) -o $@ $(CMXA_FILES) $(PROG_OBJX) - -.compiling: - touch $@ - -# Common rules -.SUFFIXES: .ml .mli .cmo .cmi .cmx .mll .mly - -%.ml: %.mll types.cmi parser.cmi - $(CSLLEX) $< - -%.mli %.ml: %.mly - $(CSLYACC) $< - -$(PROG_OBJS_WITH_CMI): %.cmo: %.cmi - -$(PROG_OBJX_WITH_CMI): %.cmx: %.cmi - -%.cmo: %.ml - $(CSLC) $(CSLFLAGS) -c $< - -%.cmx: %.ml - $(CSLOPT) $(CSLOPTFLAGS) -c $< - -.mli.cmi: - $(CSLC) $(CSLFLAGS) -c $< - -clean: - rm -f $(ALL_PROGS) *~ *.o *.cm[iox] $(TMP_FILES) .depend .compiling TAGS gmon.out ocamlprof.dump - -tags: - ocamltags *.ml - -TAGS: - ocamltags *.ml - -# Dependencies -depend: .depend -.depend: - $(CSLDEP) $(INCLUDES) *.mli *.mll *.ml > .depend - -# missing dependencies: -perl_checker.cmo: lexer.cmi parser.cmi -perl_checker.cmx: lexer.cmi parser.cmi -lexer.cmx: common.cmi parser.cmi -lexer.cmo: common.cmi parser.cmi -parser.cmo: parser_helper.cmi -parser.cmx: parser_helper.cmi - --include .depend +-include OCamlMakefile
\ No newline at end of file |