Commit | Line | Data |
---|---|---|
970ed795 | 1 | ############################################################################### |
3abe9331 | 2 | # Copyright (c) 2000-2015 Ericsson Telecom AB |
970ed795 EL |
3 | # All rights reserved. This program and the accompanying materials |
4 | # are made available under the terms of the Eclipse Public License v1.0 | |
5 | # which accompanies this distribution, and is available at | |
6 | # http://www.eclipse.org/legal/epl-v10.html | |
7 | ############################################################################### | |
8 | # Makefile for the TTCN-3 parser | |
9 | ||
10 | OBJECTS= parser.tab.o lex.yy.o | |
11 | TARGETS= parser | |
12 | ||
13 | .c.o: | |
14 | gcc -c -O2 -Wall $< | |
15 | ||
16 | all: $(TARGETS) | |
17 | ||
18 | clean: | |
19 | -rm $(OBJECTS) $(TARGETS) lex.yy.c parser.tab.c parser.output parser.tab.h | |
20 | ||
21 | parser.tab.c: parser.y | |
22 | bison -dv $< | |
23 | ||
24 | lex.yy.c: parser.l parser.tab.c | |
25 | flex parser.l | |
26 | ||
27 | parser: $(OBJECTS) | |
28 | gcc -o $@ $(OBJECTS) |