import source from 1.3.40
[external/swig.git] / Examples / modula3 / class / Makefile
1 TOP        = ../..
2 SWIG       = $(TOP)/../preinst-swig
3 SRCS       = 
4 TARGET     = example
5 PLATFORM   = LINUXLIBC6
6 INTERFACE  = example.i
7 SWIGOPT    = -c++
8 MODULA3SRCS = *.[im]3
9
10 all::   modula3
11
12 modula3::
13         $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
14         SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' modula3
15         m3ppinplace $(MODULA3SRCS)
16 # compilation of example_wrap.cxx is started by cm3
17 #       $(CXX) -c $(TARGET)_wrap.cxx
18         mv example_wrap.cxx m3makefile $(MODULA3SRCS) src/
19         ln -sf ../example.h src/example.h
20         cm3
21
22 clean::
23         $(MAKE) -f $(TOP)/Makefile modula3_clean
24
25 check: all