# Copyright (C) 2017, Regents of the University of Texas
# Written by Cuong Chau <ckcuong@cs.utexas.edu>
# License: A 3-clause BSD license.  See the LICENSE file distributed with
# ACL2.

# Usage:

# make JOBS=4 \
#      ACL2=<Path of the ACL2 image>

# To remove certificate files, etc., execute the following:
#
# make clean ACL2=<Path of the ACL2 image>

#======================================================================
.PHONY: all clean
#======================================================================

ifndef ACL2
 $(error Variable ACL2 is undefined.)
endif

BUILD_DIR := $(dir $(ACL2))books/build
JOBS ?= 4

#======================================================================

all:
	$(BUILD_DIR)/cert.pl -j $(JOBS) -a $(ACL2) *.lisp arbitration/*.lisp fifo/*.lisp gcd/*.lisp serial-adder/*.lisp serial-adder/32-bit-serial-adder-old/*.lisp telescope/*.lisp

clean:
	$(BUILD_DIR)/clean.pl

