summaryrefslogtreecommitdiff
path: root/Examples/modula3/reference/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/modula3/reference/Makefile')
-rw-r--r--Examples/modula3/reference/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Examples/modula3/reference/Makefile b/Examples/modula3/reference/Makefile
new file mode 100644
index 0000000..b31577a
--- /dev/null
+++ b/Examples/modula3/reference/Makefile
@@ -0,0 +1,21 @@
+TOP = ../..
+SWIG = $(TOP)/../preinst-swig
+SRCS =
+TARGET = example
+INTERFACE = example.i
+SWIGOPT = -c++
+MODULA3SRCS = *.[im]3
+
+all:: modula3
+
+modula3::
+ $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
+ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' modula3
+ m3ppinplace $(MODULA3SRCS)
+ mv m3makefile $(MODULA3SRCS) src/
+ cm3
+
+clean::
+ $(MAKE) -f $(TOP)/Makefile modula3_clean
+
+check: all