equal
deleted
inserted
replaced
|
1 # |
|
2 # Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 # All rights reserved. |
|
4 # This component and the accompanying materials are made available |
|
5 # under the terms of the License "Eclipse Public License v1.0" |
|
6 # which accompanies this distribution, and is available |
|
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 # |
|
9 # Initial Contributors: |
|
10 # Nokia Corporation - initial contribution. |
|
11 # |
|
12 # Contributors: |
|
13 # |
|
14 # Description: |
|
15 # Generate some source files |
|
16 # Note that the YACC and LEX tools used expect to see Unix-style |
|
17 # path names and will hang horribly if given DOS pathnames |
|
18 # |
|
19 |
|
20 |
|
21 YACC=bison |
|
22 LEX= flex |
|
23 |
|
24 GENERATED_FILES= \ |
|
25 $(EPOCROOT)epoc32\build\generatedcpp\rcomp\rcomp.cpp \ |
|
26 $(EPOCROOT)epoc32\build\generatedcpp\rcomp\rcomp.hpp \ |
|
27 $(EPOCROOT)epoc32\build\generatedcpp\rcomp\rcompl.cpp |
|
28 |
|
29 $(EPOCROOT)epoc32\build\generatedcpp\rcomp\rcompl.cpp : ..\src\rcomp.l |
|
30 perl -w -S emkdir.pl "$(EPOCROOT)epoc32\build\generatedcpp\rcomp" |
|
31 $(LEX) -t $< > $@ |
|
32 |
|
33 $(EPOCROOT)epoc32\build\generatedcpp\rcomp\rcomp.cpp $(EPOCROOT)epoc32\build\generatedcpp\rcomp\rcomp.hpp : ..\src\rcomp.y |
|
34 perl -w -S emkdir.pl "$(EPOCROOT)epoc32\build\generatedcpp\rcomp" |
|
35 $(YACC) -d -o $@ $< |
|
36 |
|
37 do_nothing: |
|
38 @rem do nothing |
|
39 |
|
40 # |
|
41 # The targets invoked by bld... |
|
42 # |
|
43 |
|
44 # Do the work in the MAKMAKE target, in the hope of getting the files |
|
45 # created in time to scan them in the processing of RCOMP.MMP |
|
46 |
|
47 MAKMAKE : $(GENERATED_FILES) |
|
48 |
|
49 BLD : MAKMAKE |
|
50 |
|
51 SAVESPACE : MAKMAKE |
|
52 |
|
53 CLEAN : |
|
54 erase $(GENERATED_FILES) |
|
55 |
|
56 FREEZE : do_nothing |
|
57 |
|
58 LIB : do_nothing |
|
59 |
|
60 CLEANLIB : do_nothing |
|
61 |
|
62 RESOURCE : do_nothing |
|
63 |
|
64 FINAL : do_nothing |
|
65 |
|
66 RELEASABLES : do_nothing |
|
67 |