Fixed lots of warning and made code compatible with C89 and ANSI with -pedantic.
[pforth] / build / unix / Makefile
index 8896f7c..162cf5b 100644 (file)
@@ -27,11 +27,13 @@ TEMPOBJECTDIR = $(PFORTHDIR)/tempobjects
 WIDTHOPT=
 
 FULL_WARNINGS =  \
 WIDTHOPT=
 
 FULL_WARNINGS =  \
+        -c89 \
         -fsigned-char \
         -fno-builtin \
         -fno-unroll-loops \
         -fpeephole \
         -fno-keep-inline-functions \
         -fsigned-char \
         -fno-builtin \
         -fno-unroll-loops \
         -fpeephole \
         -fno-keep-inline-functions \
+        -pedantic \
         -Wcast-qual \
         -Wall \
         -Wwrite-strings \
         -Wcast-qual \
         -Wall \
         -Wwrite-strings \
@@ -117,6 +119,12 @@ help:
        @echo "   The file 'fth/pfdicdat.h' is generated by pForth. It contains a binary image of the Forth dictionary."
        @echo "   It allows pForth to work as a standalone image that does not need to load a dictionary file."
 
        @echo "   The file 'fth/pfdicdat.h' is generated by pForth. It contains a binary image of the Forth dictionary."
        @echo "   It allows pForth to work as a standalone image that does not need to load a dictionary file."
 
+test: $(PFORTHAPP)
+       cd $(FTHDIR); ../pforth_standalone -q t_corex.fth
+       cd $(FTHDIR); ../pforth_standalone -q t_strings.fth
+       cd $(FTHDIR); ../pforth_standalone -q t_locals.fth
+       cd $(FTHDIR); ../pforth_standalone -q t_alloc.fth
+       cd $(FTHDIR); ../pforth_standalone -q t_floats.fth
 
 clean:
        rm -f $(PFOBJS) $(PFEMBOBJS)
 
 clean:
        rm -f $(PFOBJS) $(PFEMBOBJS)