cake
/
libp7
Archived
1
0
Fork 1
This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
libp7/Makefile.vars

74 lines
2.1 KiB
Makefile
Executable File

#!/usr/bin/make -f
#******************************************************************************#
# _____ _ #
# Makefile.vars |_ _|__ _ _| |__ ___ _ _ #
# | Project : libp7 | |/ _ \| | | | '_ \ / _ \ | | | #
# | | (_) | |_| | | | | __/ |_| | #
# By: thomas <thomas@touhey.fr> |_|\___/ \__,_|_| |_|\___|\__, |.fr #
# Last updated: 2016/08/16 12:37:40 |___/ #
# #
#******************************************************************************#
# INCLUDE CONFIGURATION
include Makefile.cfg
# PROJECT MAIN INFORMATION
NAME = p7
# DIRECTORIES
## Headers directory
INCDIR = ./include
## Sources directory
SRCDIR = ./src
## Objects directory
OBJDIR = ./obj
## Documentation directory
DOCDIR = ./doc
## Manpages directory
MANDIR = ./man
# MODULES
MODULES = core utils packet protocol
# MODULES CONTENT
## core: main content
SRC_core = init geterror log
## utils: useful functions for packets management
SRC_utils = checksum escape
## packet: direct packet management
SRC_packet = recv receive send \
send_ack send_check send_command send_data send_error send_roleswp send_term
## protocol: layer of abstraction to make the usage of the lib easier
SRC_protocol = start term \
getusername sendfile reqfile delfile
# MAN SECTIONS
MAN_SECTIONS = 3
# MAN PAGES
MAN_3 = libp7 \
p7_init p7_geterror p7_error \
p7_sendfile p7_sendstream p7_reqfile p7_delfile
# BINARY UTILITIES
## Compiler
CC = gcc
CHKFLAGS = -Wall -Wextra -Wno-unused-macros -Wno-vla -Wno-padded \
-Wno-gnu-zero-variadic-macro-arguments
CFLAGS = -I $(INCDIR) $(CHKFLAGS) -std=gnu11 -D LOGLEVEL="ll_$(LOG_LEVEL)"
## Archive manager
AR = ar
## Library optimizer
RANLIB = ranlib
## Make a directory
MD = mkdir -p
## File remover
RM = rm -f
## Documentation creator
A2X = a2x
## Installer
INST = install
## GZipper
GZIP = gzip -f
# END OF FILE