50a3dddcd3f153d71c95cde442f5f7c066d0e387
[uebersetzerbau-ss10.git] / scanner / Makefile
1 NAME := scanner
2 all: $(NAME)
3
4 $(NAME): $(NAME).lex
5         @echo "  FLEX   $<"
6         @flex -o$(NAME).c $(NAME).lex
7         @echo "  COMPILE $<"
8         @gcc -pedantic -ansi -Wall -g -o $(NAME) $(NAME).c -D_GNU_SOURCE -lfl
9
10 .PHONY: clean
11 clean:
12         rm -f $(NAME).o $(NAME) $(NAME).c
13
14 1test: 2test
15
16 2test:
17         /usr/ftp/pub/ublu/test/$(NAME)/test 2>&1
18