ag/codea: remove cscope.out tags too
[uebersetzerbau-ss10.git] / codea / Makefile
index 7439d1c4649849e8c7b6967e0ea0cfb34d13e335..f3292ef4accfb8f53ad7460e91bb9e8126811f38 100644 (file)
@@ -1,6 +1,6 @@
 SHELL := bash
 NAME := codea
-CFLAGS := -ansi -pedantic -D_GNU_SOURCE
+CFLAGS := -ansi -pedantic -D_GNU_SOURCE -g
 OBJS := scanner.o parser.o symtable.o code.o chelper.o tree.o
 
 all: $(NAME)
@@ -16,7 +16,9 @@ scanner.c: oxout.l
 #dirty deps ;)
 %.o: %.c parser.h symtable.h chelper.h tree.h
        @echo "  CC      $<"
+       @cp $< tmp.c
        @gcc -c $(CFLAGS) $< #-Wall
+       @rm tmp.c
 
 parser.c: oxout.y chelper.h tree.h
        @echo "  YACC    $<"
@@ -34,9 +36,14 @@ oxout.y oxout.l: parser.y scanner.lex
 
 .PHONY: clean
 clean:
+       rm -f $(NAME) $(OBJS) scanner.c parser.{h,c,output} oxout.{y,l,h} code.c cscope.out tags
+
+.PHONY: myclean
+myclean:
        rm -f $(NAME) $(OBJS) scanner.c parser.{h,c,output} oxout.{y,l,h} code.c
 
-1test: 2test
+1test:
+       ./modtest
 
-2test:
+lvatest:
        /usr/ftp/pub/ublu/test/$(NAME)/test 2>&1