Revision 14eb32985e558b53f71e8a5b1eda63e2ddb8c005 authored by Timur Pocheptsov on 27 March 2014, 07:37:42 UTC, committed by Timur Pocheptsov on 27 March 2014, 07:37:42 UTC
1 parent 7cb3454
Module.mk
# Module.mk for zip module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000
MODNAME := zip
MODDIR := $(ROOT_SRCDIR)/core/$(MODNAME)
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
ZIPDIR := $(MODDIR)
ZIPDIRS := $(ZIPDIR)/src
ZIPDIRI := $(ZIPDIR)/inc
##### libZip (part of libCore) #####
ZIPL := $(MODDIRI)/LinkDef.h
ZIPDICTH := $(MODDIRI)/Compression.h
ZIPOLDH := $(MODDIRI)/Bits.h \
$(MODDIRI)/Tailor.h \
$(MODDIRI)/ZDeflate.h \
$(MODDIRI)/ZIP.h \
$(MODDIRI)/ZTrees.h \
$(MODDIRI)/Compression.h
ZIPOLDS := $(MODDIRS)/ZDeflate.c \
$(MODDIRS)/ZInflate.c
ZIPNEWH := $(MODDIRI)/crc32.h \
$(MODDIRI)/deflate.h \
$(MODDIRI)/inffast.h \
$(MODDIRI)/inffixed.h \
$(MODDIRI)/inflate.h \
$(MODDIRI)/inftrees.h \
$(MODDIRI)/trees.h \
$(MODDIRI)/zconf.h \
$(MODDIRI)/zlib.h \
$(MODDIRI)/gzguts.h \
$(MODDIRI)/zutil.h
ZIPNEWS := $(MODDIRS)/adler32.c \
$(MODDIRS)/compress.c \
$(MODDIRS)/crc32.c \
$(MODDIRS)/deflate.c \
$(MODDIRS)/gzclose.c \
$(MODDIRS)/gzlib.c \
$(MODDIRS)/gzread.c \
$(MODDIRS)/gzwrite.c \
$(MODDIRS)/infback.c \
$(MODDIRS)/inffast.c \
$(MODDIRS)/inflate.c \
$(MODDIRS)/inftrees.c \
$(MODDIRS)/trees.c \
$(MODDIRS)/uncompr.c \
$(MODDIRS)/zutil.c
ifeq ($(BUILTINZLIB),yes)
ZIPH := $(ZIPOLDH) $(ZIPNEWH)
ZIPS := $(ZIPOLDS) $(ZIPNEWS)
else
ZIPH := $(ZIPOLDH)
ZIPS := $(ZIPOLDS)
endif
ZIPS1 := $(MODDIRS)/Compression.cxx
ZIPO := $(call stripsrc,$(ZIPS:.c=.o) $(ZIPS1:.cxx=.o))
ZIPDEP := $(ZIPO:.o=.d)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(ZIPH))
# include all dependency files
INCLUDEFILES += $(ZIPDEP)
##### local rules #####
.PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)
include/%.h: $(ZIPDIRI)/%.h
cp $< $@
all-$(MODNAME): $(ZIPO)
clean-$(MODNAME):
@rm -f $(ZIPO)
clean:: clean-$(MODNAME)
distclean-$(MODNAME): clean-$(MODNAME)
@rm -f $(ZIPDEP) $(ZIPDS) $(ZIPDH)
distclean:: distclean-$(MODNAME)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...