@@ -6,7 +6,7 @@
6# You can also perform a parallel build with 'make -jN', where N is the
6# You can also perform a parallel build with 'make -jN', where N is the
7# number of cores to use.
7# number of cores to use.
9−# PCC, PURESCRIPT_SRC, OUTPUT, and BIN can all be overridden with the
9+# PCC, SRC, OUTPUT, and BIN can all be overridden with the
10# command itself. For example: 'make BIN=myutil'
10# command itself. For example: 'make BIN=myutil'
12# Flags can be added to either the codegen or native build phases.
12# Flags can be added to either the codegen or native build phases.
@@ -14,10 +14,10 @@
15# You can also edit the generated version of this file directly.
15# You can also edit the generated version of this file directly.
17−PCC := {{path}}/pcc
17+PCC := {{path}}/pcc
18−PURESCRIPT_SRC := src
18+SRC := src
19−OUTPUT := output
19+OUTPUT := output
20−BIN := main
20+BIN := main
22override PCCFLAGS += --comments
22override PCCFLAGS += --comments
23override CXXFLAGS += -std=c++11
23override CXXFLAGS += -std=c++11
@@ -54,7 +54,7 @@ debug: codegen
54 @$(MAKE) $(BIN) CXXFLAGS+=$(DEBUG)
54 @$(MAKE) $(BIN) CXXFLAGS+=$(DEBUG)
56codegen: PURESCRIPT_PKG_SRCS=$(foreach d,$(PACKAGE_SOURCES),$(call rwildcard,$(firstword $(subst *, ,$(d))),*.purs))
56codegen: PURESCRIPT_PKG_SRCS=$(foreach d,$(PACKAGE_SOURCES),$(call rwildcard,$(firstword $(subst *, ,$(d))),*.purs))
57−codegen: PURESCRIPT_SRCS=$(call rwildcard,$(PURESCRIPT_SRC)/,*.purs)
57+codegen: PURESCRIPT_SRCS=$(call rwildcard,$(SRC)/,*.purs)
59codegen: $(PURESCRIPT_PKGS)
59codegen: $(PURESCRIPT_PKGS)
60 @$(PCC) $(PCCFLAGS) --output $(OUTPUT) $(PURESCRIPT_PKG_SRCS) $(PURESCRIPT_SRCS)
60 @$(PCC) $(PCCFLAGS) --output $(OUTPUT) $(PURESCRIPT_PKG_SRCS) $(PURESCRIPT_SRCS)