delete mention of ^Y; currently don't allow ^Y or ^E.
[unix-history] / usr / src / usr.bin / pascal / pdx / Makefile
index c5685c7..da51d18 100644 (file)
@@ -2,7 +2,7 @@
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
-#      @(#)Makefile    1.18 (Berkeley) %G%
+#      @(#)Makefile    1.19 (Berkeley) %G%
 #
 # make file for pdx
 #
 #
 # make file for pdx
 #
@@ -31,7 +31,8 @@ SRCDIR        = ../src/
 INSTALL        = ${DESTDIR}/usr/ucb/pdx
 
 RM     = /bin/rm -f
 INSTALL        = ${DESTDIR}/usr/ucb/pdx
 
 RM     = /bin/rm -f
-CFLAGS = -Disvaxpx -I.. -I../${SRCDIR} -DOBJ -DADDR32 -O
+CFLAGS = -I.. -I../${SRCDIR} -DOBJ -DADDR32 -O
+LINTFLAGS= -I. -I${SRCDIR} -DOBJ -DADDR32
 LDFLAGS        = # -i for pdp-11
 
 .c.o:
 LDFLAGS        = # -i for pdp-11
 
 .c.o:
@@ -42,10 +43,6 @@ LDFLAGS      = # -i for pdp-11
            ${CC} ${CFLAGS} -c $$a:t \
        '
 
            ${CC} ${CFLAGS} -c $$a:t \
        '
 
-.s.o:
-       @echo "assembling $*.s"
-       @cc -c $*.s
-
 #
 # source directory specifications
 #
 #
 # source directory specifications
 #
@@ -103,8 +100,7 @@ MACHOBJ =\
        ${MACHINE}optab.o\
        ${MACHINE}printdata.o\
        ${MACHINE}printerror.o\
        ${MACHINE}optab.o\
        ${MACHINE}printdata.o\
        ${MACHINE}printerror.o\
-       ${MACHINE}printinst.o\
-       ${MACHINE}pxerrors.o
+       ${MACHINE}printinst.o
 
 PROCOBJ =\
        ${PROCESS}runcont.o\
 
 PROCOBJ =\
        ${PROCESS}runcont.o\
@@ -157,6 +153,15 @@ profile: ${OBJS}
        @echo "linking with -p"
        @cc ${LDFLAGS} -p ${OBJS} ${LIB}
 
        @echo "linking with -p"
        @cc ${LDFLAGS} -p ${OBJS} ${LIB}
 
+lint:
+       @cd ${COMMAND}; yacc -d grammar.yacc; lex token.lex
+       -@lint ${LINTFLAGS} `echo ${OBJS} library.c | sed 's/\.o/.c/g'`
+       @${RM} ${COMMAND}lex.yy.c ${COMMAND}y.tab.c
+
+cerror.o:
+       @echo "assembling `machine`/$*.s"
+       @cc -c `machine`/$*.s
+
 ${COMMAND}y.tab.o: ${COMMAND}grammar.yacc
        cd ${COMMAND}; yacc -d grammar.yacc; cc -c ${CFLAGS} y.tab.c
        ${RM} ${COMMAND}y.tab.c
 ${COMMAND}y.tab.o: ${COMMAND}grammar.yacc
        cd ${COMMAND}; yacc -d grammar.yacc; cc -c ${CFLAGS} y.tab.c
        ${RM} ${COMMAND}y.tab.c
@@ -179,6 +184,8 @@ install: a.out
 clean:
        ${RM} a.out *.o */*.o
 
 clean:
        ${RM} a.out *.o */*.o
 
+depend:
+
 #
 # Warning:  This will produce a very long listing.  You would be better
 #           off just looking at things on-line.
 #
 # Warning:  This will produce a very long listing.  You would be better
 #           off just looking at things on-line.