mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-23 21:33:49 +00:00
Estimated hours taken: 0.75 Use sub-modules to package up the modules in extras/complex_numbers into a single module. extras/complex_numbers/complex_lib.m: extras/complex_numbers/complex_numbers.m: Rename complex_lib.m as complex_numbers.m, and modify it to use sub-modules. extras/complex_numbers/*.m: extras/complex_numbers/tests/complex_test.m: extras/complex_numbers/samples/fft.m: Add `complex_numbers:' to all of the `:- module' and `:- import_module' declarations. extras/complex_numbers/Mmakefile: extras/complex_numbers/tests/Mmakefile: extras/complex_numbers/samples/Mmakefile: Modify to reflect the renaming from `complex_lib' to `complex_numbers'.
14 lines
494 B
Plaintext
14 lines
494 B
Plaintext
# COMPLEX_NUMBERS_DIR specifies the location of the complex number library,
|
|
# e.g. `/foo/bar/mercury-<version>/extra/complex_numbers'.
|
|
COMPLEX_NUMBERS_DIR = ..
|
|
|
|
# The following stuff tells Mmake to use the complex number library
|
|
VPATH = $(COMPLEX_NUMBERS_DIR):$(MMAKE_VPATH)
|
|
MCFLAGS = -I$(COMPLEX_NUMBERS_DIR)
|
|
MLFLAGS = -R$(COMPLEX_NUMBERS_DIR) -L$(COMPLEX_NUMBERS_DIR)
|
|
MLLIBS = -lcomplex_numbers
|
|
C2INITFLAGS = $(COMPLEX_NUMBERS_DIR)/complex_numbers.init
|
|
|
|
MAIN_TARGET = fft
|
|
depend : fft.depend
|