• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ################################################################
2# Copyright (C) Przemyslaw Skibinski 2016-present
3# All rights reserved.
4#
5# BSD license
6# Redistribution and use in source and binary forms, with or without modification,
7# are permitted provided that the following conditions are met:
8#
9# * Redistributions of source code must retain the above copyright notice, this
10#   list of conditions and the following disclaimer.
11#
12# * Redistributions in binary form must reproduce the above copyright notice, this
13#   list of conditions and the following disclaimer in the documentation and/or
14#   other materials provided with the distribution.
15#
16# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
20# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
23# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26#
27# You can contact the author at :
28#  - LZ4 source repository : https://github.com/Cyan4973/lz4
29#  - LZ4 forum froup : https://groups.google.com/forum/#!forum/lz4c
30# ################################################################
31
32
33CFLAGS ?= -O3
34CFLAGS += -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wno-comment
35CFLAGS += $(MOREFLAGS)
36FLAGS   = $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
37
38
39
40# Define *.exe as extension for Windows systems
41ifneq (,$(filter Windows%,$(OS)))
42EXT =.exe
43else
44EXT =
45endif
46
47
48.PHONY: default gen_manual
49
50default: gen_manual
51
52gen_manual: gen_manual.cpp
53	$(CXX)      $(FLAGS) $^ -o $@$(EXT)
54
55
56clean:
57	@$(RM) gen_manual$(EXT)
58	@echo Cleaning completed
59