This repository has been archived on 2021-03-01. You can view files and clone it, but cannot push or open issues or pull requests.
kaneton/kaneton/library/Makefile
Mercier Pierre-Olivier fee4dd4e6d Initial snapshot
2013-02-11 22:04:30 +01:00

95 lines
1.8 KiB
Makefile

#
# ---------- header -----------------------------------------------------------
#
# project kaneton
#
# license kaneton
#
# file /home/mycure/kaneton/kaneton/library/Makefile
#
# created matthieu bucchianeri [sat sep 1 12:40:51 2007]
# updated julien quintard [thu dec 16 11:42:02 2010]
#
#
# ---------- component --------------------------------------------------------
#
component := kaneton/library
#
# ---------- dependencies -----------------------------------------------------
#
include ../../environment/env.mk
#
# ---------- directives -------------------------------------------------------
#
.PHONY: main clear prototypes headers
#
# ---------- variables --------------------------------------------------------
#
LIBRARY_C := alloc.c \
ctype.c \
format.c \
memcpy.c \
memcmp.c \
memset.c \
printf.c \
random.c \
snprintf.c \
sprintf.c \
strchr.c \
strcmp.c \
strcpy.c \
strdup.c \
strlen.c \
strncmp.c \
strncpy.c \
strrchr.c \
strtol.c \
strtoul.c \
sum2.c
LIBRARY_O := $(LIBRARY_C:.c=.o)
LIBRARY_INCLUDE := $(_LIBRARY_INCLUDE_DIR_)/library.h
#
# ---------- rules ------------------------------------------------------------
#
ifeq ($(behaviour),default)
main: $(_LIBRARY_LO_)
$(_LIBRARY_LO_): $(LIBRARY_O)
$(call env_remove,$(_LIBRARY_LO_),)
$(call env_archive,$(_LIBRARY_LO_),$(LIBRARY_O),)
clear:
$(call env_remove,$(LIBRARY_O),)
$(call env_remove,$(_LIBRARY_LO_),)
$(call env_purge,)
prototypes:
$(call env_prototypes,$(LIBRARY_INCLUDE),)
headers:
$(call env_remove,$(_DEPENDENCY_MK_),)
$(call env_headers,$(LIBRARY_C),)
endif
#
# ---------- dependencies -----------------------------------------------------
#
-include ./$(_DEPENDENCY_MK_)