Modula3 makefiles tweaks for consistency with other languages - they still don't work though

This commit is contained in:
William S Fulton 2013-04-15 22:22:34 +01:00
commit a6e2ee8580
6 changed files with 24 additions and 30 deletions

View file

@ -7,9 +7,10 @@ CONSTNUMERIC = example_const
SWIGOPT = -c++
MODULA3SRCS = *.[im]3
all:: modula3
check: build
$(MAKE) -f $(TOP)/Makefile modula3_run
modula3::
build:
$(SWIG) -modula3 $(SWIGOPT) -module Example -generateconst $(CONSTNUMERIC) $(TARGET).h
$(CXX) -Wall $(CONSTNUMERIC).c -o $(CONSTNUMERIC)
$(CONSTNUMERIC) >$(CONSTNUMERIC).i
@ -20,7 +21,5 @@ modula3::
mv m3makefile $(MODULA3SRCS) src/
cm3
clean::
clean:
$(MAKE) -f $(TOP)/Makefile modula3_clean
check: all