1 #################################################################################
5 # The Glorious fptools Boilerplate Makefile
7 # This one file should be included (directly or indirectly) by all Makefiles
8 # in the fptools hierarchy.
10 #################################################################################
12 # We want to disable all the built-in rules that make uses; having them
13 # just slows things down, and we write all the rules ourselves.
14 # Setting .SUFFIXES to empty disables them all.
15 MAKEFLAGS += --no-builtin-rules
17 # FPTOOLS_TOP is the *relative* path to the fptools toplevel directory from the
18 # location where a project Makefile was invoked. It is set by looking at the
19 # current value of TOP.
24 # This rule makes sure that "all" is the default target, regardless of where it appears
25 # THIS RULE MUST REMAIN FIRST!
30 # Now follow the pieces of boilerplate
31 # The "-" signs tell make not to complain if they don't exist
33 include $(TOP)/mk/config.mk
34 # All configuration information
35 # (generated by "configure" from config.mk.in)
39 include $(TOP)/mk/paths.mk
40 # Variables that say where things belong (e.g install directories)
41 # and where we are right now
42 # Also defines variables for standard files (SRCS, LIBS etc)
45 include $(TOP)/mk/opts.mk
46 # Variables that control the option flags for all the
49 include $(TOP)/mk/suffix.mk
50 # Suffix rules for Haskell, C and literate
52 ifeq "$(BootingFromHc)" "YES"
53 include $(TOP)/mk/bootstrap.mk
56 -include $(TOP)/mk/build.mk
57 # (Optional) build-specific configuration
63 # The dependencies file from the current directory