mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-23 05:13:48 +00:00
samples/c_interface/cplusplus_calls_mercury/Mmakefile:
samples/c_interface/mercury_calls_cplusplus/Mmakefile:
samples/c_interface/simpler_cplusplus_calls_mercury/Mmakefile:
As above.
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
#-----------------------------------------------------------------------------#
|
|
# vim: ts=8 sw=8 noexpandtab
|
|
#-----------------------------------------------------------------------------#
|
|
# This source file is hereby placed in the public domain. -fjh (the author).
|
|
#-----------------------------------------------------------------------------#
|
|
MAIN_TARGET=all
|
|
|
|
depend: mercury_main.depend
|
|
all: mercury_main
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
.SUFFIXES: .cc
|
|
.cc.o:
|
|
$(CXX) $(CXXFLAGS) -c $<
|
|
|
|
CXX=$(MGNUC) $(ALL_GRADEFLAGS) $(ALL_MGNUCFLAGS)
|
|
|
|
# Pass `-g' to the C compiler and linker, so we can use a debugger (e.g. gdb).
|
|
CXXFLAGS=-g
|
|
MGNUCFLAGS=-g
|
|
MLFLAGS=-g
|
|
|
|
# Tell the Mercury linker to link in cpp_main.o
|
|
MLOBJS=cpp_main.o
|
|
MLLIBS=-lstdc++
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
# We also need to add header file dependencies.
|
|
cpp_main.o: cpp_main.h mercury_lib.mh
|
|
cpp_main_int.o: cpp_main.h
|
|
|
|
# Ensure sure that `mmake clean' removes cpp_main.o
|
|
clean_local:
|
|
rm -f cpp_main.o
|
|
|
|
#-----------------------------------------------------------------------------#
|