Add c++11 support (gcc10/gcc11) to p7zip
[oi-userland.git] / make-rules / common-lisp.mk
blobbf62acd84e9a35df2acd5a35827dfe587c691074
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2015 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
16 # Rules to install a common lisp library package.
18 # To use these rules, just include ../make-rules/common-lisp.mk in your
19 # Makefile and define "build" and "install" targets. E.g.,
21 # build: $(BUILD_32)
23 # install: $(INSTALL_32)
25 # Since common lisp libraries are all source code, there is no need for
26 # BUILD_64 and INSTALL_64.
28 .NOTPARALLEL:
30 INSTALL_DIR = $(PROTOCLDIR)/source/$(COMPONENT_NAME)
32 $(BUILD_DIR)/%/.built: $(SOURCE_DIR)/.prep
33 $(MKDIR) $(@D)
34 $(TOUCH) $@
36 $(BUILD_DIR)/%/.installed: $(BUILD_DIR)/%/.built
37 $(MKDIR) $(PROTOCLDIR)
38 $(MKDIR) $(PROTOCLDIR)/source
39 $(MKDIR) $(PROTOCLDIR)/systems
40 $(MKDIR) $(INSTALL_DIR)
41 $(CP) -a $(SOURCE_DIR)/* $(INSTALL_DIR)
42 (cd $(PROTOCLDIR)/systems; \
43 $(RM) $(COMPONENT_NAME).asd; \
44 $(LN) -s ../source/$(COMPONENT_NAME)/$(COMPONENT_NAME).asd)
45 $(TOUCH) $@
47 clean::
48 $(RM) -r $(BUILD_DIR) $(PROTO_DIR)