| 1 |
############################################################################## |
| 2 |
# Copyright (c) 2000-2021 Ericsson Telecom AB |
| 3 |
# All rights reserved. This program and the accompanying materials |
| 4 |
# are made available under the terms of the Eclipse Public License v2.0 |
| 5 |
# which accompanies this distribution, and is available at |
| 6 |
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html |
| 7 |
# |
| 8 |
# Contributors: |
| 9 |
# Balasko, Jeno |
| 10 |
# Forstner, Matyas |
| 11 |
# Szabo, Janos Zoltan – initial implementation |
| 12 |
# |
| 13 |
############################################################################## |
| 14 |
# Makefile for the TTCN-3 parser |
| 15 |
|
| 16 |
OBJECTS= parser.tab.o lex.yy.o |
| 17 |
TARGETS= parser |
| 18 |
|
| 19 |
.c.o: |
| 20 |
gcc -c -O2 -Wall $< |
| 21 |
|
| 22 |
all: $(TARGETS) |
| 23 |
|
| 24 |
clean: |
| 25 |
-rm $(OBJECTS) $(TARGETS) lex.yy.c parser.tab.c parser.output parser.tab.h |
| 26 |
|
| 27 |
parser.tab.c: parser.y |
| 28 |
bison -dv $< |
| 29 |
|
| 30 |
lex.yy.c: parser.l parser.tab.c |
| 31 |
flex parser.l |
| 32 |
|
| 33 |
parser: $(OBJECTS) |
| 34 |
gcc -o $@ $(OBJECTS) |