head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2017.12.07.05.55.35;	author dholland;	state Exp;
branches;
next	;
commitid	qELf3ZFTO2gPdVhA;


desc
@@


1.1
log
@Add some preliminary stuff in pursuit of testing compat syscalls.

So far this just has some (partial) specs and some code for reading
the specs in; it doesn't actually do anything yet...

It is ocaml because ocaml is the least awful choice for prototyping
compiler stuff.
@
text
@TOP=..
include $(TOP)/mk/base.mk

PROG=testcompatgen
SRCS=\
	main.ml

SUPPORTDIR=../support
PARSERDIR=../parser

#
# Note: unlike with normal Unix C libs, which work the other way
# around, OCAMLLIBS must be ordered with lower-level stuff first;
# otherwise the higher-level stuff won't link to it.
#

#OCAMLLIBS+=unix.$(OCAMLLIBEXT) nums.$(OCAMLLIBEXT)
OCAMLLIBS+=nums.$(OCAMLLIBEXT)

OCAMLINCS+=-I $(SUPPORTDIR)
OCAMLLIBS+=$(SUPPORTDIR)/libsupport.$(OCAMLLIBEXT)
OCAMLLIBDEPS+=$(SUPPORTDIR)/libsupport.$(OCAMLLIBEXT)

OCAMLINCS+=-I $(PARSERDIR)
OCAMLLIBS+=$(PARSERDIR)/libparser.$(OCAMLLIBEXT)
OCAMLLIBDEPS+=$(PARSERDIR)/libparser.$(OCAMLLIBEXT)

include $(TOP)/mk/ocaml.mk
@
