michael@0: #! gmake michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: ####################################################################### michael@0: # (1) Include initial platform-independent assignments (MANDATORY). # michael@0: ####################################################################### michael@0: michael@0: include manifest.mn michael@0: michael@0: ####################################################################### michael@0: # (2) Include "global" configuration information. (OPTIONAL) # michael@0: ####################################################################### michael@0: michael@0: include $(CORE_DEPTH)/coreconf/config.mk michael@0: michael@0: ####################################################################### michael@0: # (3) Include "component" configuration information. (OPTIONAL) # michael@0: ####################################################################### michael@0: michael@0: michael@0: ####################################################################### michael@0: # (4) Include "local" platform-dependent assignments (OPTIONAL). # michael@0: ####################################################################### michael@0: michael@0: include config.mk michael@0: michael@0: ####################################################################### michael@0: # (5) Execute "global" rules. (OPTIONAL) # michael@0: ####################################################################### michael@0: michael@0: include $(CORE_DEPTH)/coreconf/rules.mk michael@0: michael@0: ####################################################################### michael@0: # (6) Execute "component" rules. (OPTIONAL) # michael@0: ####################################################################### michael@0: michael@0: michael@0: michael@0: ####################################################################### michael@0: # (7) Execute "local" rules. (OPTIONAL). # michael@0: ####################################################################### michael@0: michael@0: export:: private_export michael@0: michael@0: test: $(PROGRAMS) michael@0: @cd $(OBJDIR); \ michael@0: if echo hello world | ./minigzip | ./minigzip -d && ./example; then \ michael@0: echo ' *** zlib test OK ***'; \ michael@0: else \ michael@0: echo ' *** zlib test FAILED ***'; false; \ michael@0: fi michael@0: -@rm -f foo.gz