diff options
author | Yann Collet <cyan@fb.com> | 2017-05-10 20:26:04 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2017-05-10 20:26:04 (GMT) |
commit | b8575f2d2b1e05c20812215759b29bf2d0f7a708 (patch) | |
tree | a026a79e25bd21d158905e92a62ab4096fed8be2 /programs/Makefile | |
parent | fe932c4527aabd1c642b67fddf90e9be8ea380f8 (diff) | |
download | lz4-b8575f2d2b1e05c20812215759b29bf2d0f7a708.zip lz4-b8575f2d2b1e05c20812215759b29bf2d0f7a708.tar.gz lz4-b8575f2d2b1e05c20812215759b29bf2d0f7a708.tar.bz2 |
updated Makefile
to automatically build manual files with
make all
Diffstat (limited to 'programs/Makefile')
-rw-r--r-- | programs/Makefile | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/programs/Makefile b/programs/Makefile index 4a8103c..2e73780 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -51,7 +51,7 @@ CFLAGS ?= -O3 DEBUGFLAGS:=-g -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow \ -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes \ -Wpointer-arith -Wstrict-aliasing=1 -CFLAGS += $(MOREFLAGS) +CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS) FLAGS = $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) LZ4_VERSION=$(LIBVER) @@ -75,28 +75,17 @@ all: lz4 lz4c all32: CFLAGS+=-m32 all32: all -lz4: CFLAGS += $(DEBUGFLAGS) lz4: $(OBJFILES) $(CC) $(FLAGS) $^ -o $@$(EXT) lz4-release: DEBUGFLAGS= lz4-release: lz4 -lz4c : CFLAGS += $(DEBUGFLAGS) -lz4c : $(SRCFILES) - $(CC) $(FLAGS) -DENABLE_LZ4C_LEGACY_OPTIONS $^ -o $@$(EXT) - -lz4c32: CFLAGS += -m32 $(DEBUGFLAGS) -lz4c32: $(SRCFILES) +lz4c32: CFLAGS += -m32 +lz4c: CPPFLAGS += -DENABLE_LZ4C_LEGACY_OPTIONS +lz4c lz4c32 : $(SRCFILES) $(CC) $(FLAGS) $^ -o $@$(EXT) -clean: - @$(MAKE) -C $(LZ4DIR) $@ > $(VOID) - @$(RM) core *.o *.test tmp* \ - lz4$(EXT) lz4c$(EXT) lz4c32$(EXT) unlz4 lz4cat - @echo Cleaning completed - - lz4.1: lz4.1.md cat $^ | $(MD2ROFF) $(MD2ROFF_FLAGS) | sed -n '/^\.\\\".*/!p' > $@ @@ -108,6 +97,12 @@ clean-man: preview-man: clean-man man man ./lz4.1 +clean: + @$(MAKE) -C $(LZ4DIR) $@ > $(VOID) + @$(RM) core *.o *.test tmp* \ + lz4$(EXT) lz4c$(EXT) lz4c32$(EXT) unlz4 lz4cat + @echo Cleaning completed + #----------------------------------------------------------------------------- # make install is validated only for Linux, OSX, BSD, Hurd and Solaris targets @@ -120,7 +115,6 @@ unlz4: lz4 lz4cat: lz4 ln -s lz4 lz4cat - ifneq (,$(filter $(shell uname),SunOS)) INSTALL ?= ginstall else |