Files
mercury/samples/c_interface/c_calls_mercury/Mmakefile
Julien Fischer 0cd62edc7c Clean-ups and fixes for the C interface examples.
samples/c_interface/*:
    Replace left over references to the old c_header_code pragma.

    Replace some uses of '__' as a module qualifier.

    Replace tabs with spaces.

    Add some missing words.
2023-02-25 12:53:26 +11:00

29 lines
951 B
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
#-----------------------------------------------------------------------------#
# Pass `-g' to the C compiler and linker, so we can use a debugger (e.g. gdb)
MGNUCFLAGS=-g
MLFLAGS=-g
# Tell the Mercury linker to link in c_main.o and mercury_lib.o
MLOBJS=c_main.o
#-----------------------------------------------------------------------------#
c_main.o: mercury_lib.mh c_main.h
# make sure that `mmake clean' removes c_main.o
clean_local:
rm -f c_main.o
#-----------------------------------------------------------------------------#