Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 116 lines (97 sloc) 3.157 kb
e383654a » pmichaud
2009-11-18 First simple version.
1 # Copyright (C) 2006-2009, The Perl Foundation.
2 # $Id$
3
4 PARROT_ARGS =
5
6 # values from parrot_config
7 PARROT_BIN_DIR = @bindir@
8 PARROT_VERSION = @versiondir@
9 PARROT_INCLUDE_DIR = @includedir@$(PARROT_VERSION)
10 PARROT_LIB_DIR = @libdir@$(PARROT_VERSION)
11 PARROT_SRC_DIR = @srcdir@$(PARROT_VERSION)
12 PARROT_LIBRARY_DIR = $(PARROT_LIB_DIR)/library
13 HAS_ICU = @has_icu@
14
15 CC = @cc@
16 CFLAGS = @ccflags@ @cc_shared@ @cc_debug@ @ccwarn@ @cc_hasjit@ @cg_flag@ @gc_flag@
17 EXE = @exe@
18 LD = @ld@
19 LDFLAGS = @ldflags@ @ld_debug@
20 LD_LOAD_FLAGS = @ld_load_flags@
21 LIBPARROT = @inst_libparrot_ldflags@
22 O = @o@
23 LOAD_EXT = @load_ext@
24 PERL = @perl@
25 CP = @cp@
26 MV = @mv@
27 RM_F = @rm_f@
28 MKPATH = $(PERL) -MExtUtils::Command -e mkpath
29 CHMOD = $(PERL) -MExtUtils::Command -e chmod
30
31 # locations of parrot resources
32 PARROT = $(PARROT_BIN_DIR)/parrot$(EXE)
33 PARROT_NQP = $(PARROT_BIN_DIR)/parrot-nqp$(EXE)
34 PBC_TO_EXE = $(PARROT_BIN_DIR)/pbc_to_exe$(EXE)
35 PARROT_TOOLS_DIR = $(PARROT_LIB_DIR)/tools
36 PARROT_PERL_LIB = $(PARROT_TOOLS_DIR)/lib
37
38 NQP_LANG_DIR = $(PARROT_LIB_DIR)/languages/nqp
39
40 PMTCL_EXE = pmtcl$(EXE)
bdf4eda3 » pmichaud
2009-11-18 Refactor into separate Grammar/Actions/Compiler/Commands files.
41 PMTCL_G_PIR = src/gen/pmtcl-grammar.pir
42 PMTCL_A_PIR = src/gen/pmtcl-actions.pir
43 PMTCL_C_PIR = src/gen/pmtcl-compiler.pir
44 PMTCL_B_PIR = src/gen/pmtcl-commands.pir
7cdde975 » pmichaud
2009-11-23 Refactor lexical handling. Introduce a new TclLexPad class
45 TCLLEXPAD_PIR = src/gen/tcllexpad.pir
8add5bfa » pmichaud
2009-11-29 Add initial version of AREs (only matches regex literals for now).
46 ARE_G_PIR = src/gen/are-grammar.pir
47 ARE_A_PIR = src/gen/are-actions.pir
48 ARE_C_PIR = src/gen/are-compiler.pir
7cdde975 » pmichaud
2009-11-23 Refactor lexical handling. Introduce a new TclLexPad class
49
bdf4eda3 » pmichaud
2009-11-18 Refactor into separate Grammar/Actions/Compiler/Commands files.
50 PMTCL_SOURCES = \
51 src/PmTcl.pir \
52 $(PMTCL_G_PIR) \
53 $(PMTCL_A_PIR) \
54 $(PMTCL_C_PIR) \
55 $(PMTCL_B_PIR) \
7cdde975 » pmichaud
2009-11-23 Refactor lexical handling. Introduce a new TclLexPad class
56 $(TCLLEXPAD_PIR) \
8add5bfa » pmichaud
2009-11-29 Add initial version of AREs (only matches regex literals for now).
57 $(ARE_G_PIR) \
58 $(ARE_A_PIR) \
59 $(ARE_C_PIR) \
11e9695c » coke
2009-11-29 Add a string HLL class that has a more accurate get_bool vtable.
60 src/class/tcllist.pir \
61 src/class/tclstring.pir
e383654a » pmichaud
2009-11-18 First simple version.
62
63 CLEANUPS = \
64 *.manifest \
65 *.pdb \
66 *.c\
67 *.o\
68 src/gen/*.pir \
69
70 all: $(PMTCL_EXE)
71
72 $(PMTCL_EXE) : $(PMTCL_SOURCES)
bdf4eda3 » pmichaud
2009-11-18 Refactor into separate Grammar/Actions/Compiler/Commands files.
73 $(PARROT) -o pmtcl.pbc src/PmTcl.pir
e383654a » pmichaud
2009-11-18 First simple version.
74 $(PBC_TO_EXE) pmtcl.pbc
75
ee54091f » pmichaud
2009-11-23 Change handling of src/gen a bit.
76 $(PMTCL_G_PIR): src/PmTcl/Grammar.pm
bdf4eda3 » pmichaud
2009-11-18 Refactor into separate Grammar/Actions/Compiler/Commands files.
77 $(PARROT_NQP) --target=pir -o $(PMTCL_G_PIR) src/PmTcl/Grammar.pm
ee54091f » pmichaud
2009-11-23 Change handling of src/gen a bit.
78 $(PMTCL_A_PIR): src/PmTcl/Actions.pm
bdf4eda3 » pmichaud
2009-11-18 Refactor into separate Grammar/Actions/Compiler/Commands files.
79 $(PARROT_NQP) --target=pir -o $(PMTCL_A_PIR) src/PmTcl/Actions.pm
ee54091f » pmichaud
2009-11-23 Change handling of src/gen a bit.
80 $(PMTCL_C_PIR): src/PmTcl/Compiler.pm
bdf4eda3 » pmichaud
2009-11-18 Refactor into separate Grammar/Actions/Compiler/Commands files.
81 $(PARROT_NQP) --target=pir -o $(PMTCL_C_PIR) src/PmTcl/Compiler.pm
ee54091f » pmichaud
2009-11-23 Change handling of src/gen a bit.
82 $(PMTCL_B_PIR): src/PmTcl/Commands.pm
bdf4eda3 » pmichaud
2009-11-18 Refactor into separate Grammar/Actions/Compiler/Commands files.
83 $(PARROT_NQP) --target=pir -o $(PMTCL_B_PIR) src/PmTcl/Commands.pm
7cdde975 » pmichaud
2009-11-23 Refactor lexical handling. Introduce a new TclLexPad class
84 $(TCLLEXPAD_PIR): src/TclLexPad.pm
85 $(PARROT_NQP) --target=pir -o $(TCLLEXPAD_PIR) src/TclLexPad.pm
8add5bfa » pmichaud
2009-11-29 Add initial version of AREs (only matches regex literals for now).
86 $(ARE_G_PIR): src/ARE/Grammar.pm
87 $(PARROT_NQP) --target=pir -o $(ARE_G_PIR) src/ARE/Grammar.pm
88 $(ARE_A_PIR): src/ARE/Actions.pm
89 $(PARROT_NQP) --target=pir -o $(ARE_A_PIR) src/ARE/Actions.pm
90 $(ARE_C_PIR): src/ARE/Compiler.pm
91 $(PARROT_NQP) --target=pir -o $(ARE_C_PIR) src/ARE/Compiler.pm
bdf4eda3 » pmichaud
2009-11-18 Refactor into separate Grammar/Actions/Compiler/Commands files.
92
b9ed51d4 » perlpilot
2009-11-24 [makefile] add a simple test target
93 ## testing
94
9aeb25c2 » coke
2009-11-28 Add another test to make test!
95 TEST_FILES = \
96 t/sanity.t \
28026649 » coke
2009-11-28 found another passing test.
97 t/cmd_concat.t \
e9f559a0 » coke
2009-11-28 Recover t/cmd_split.t ...
98 t/cmd_llength.t \
232402ea » coke
2009-11-28 reclaim t/cmd_join.t -
99 t/cmd_join.t \
4c699d5b » coke
2009-11-28 The only bit of status we had reported so far is now built into 'make…
100 t/cmd_split.t \
101 t/tcl_command_subst.t
9aeb25c2 » coke
2009-11-28 Add another test to make test!
102
b9ed51d4 » perlpilot
2009-11-24 [makefile] add a simple test target
103 test: $(PMTCL_EXE)
9aeb25c2 » coke
2009-11-28 Add another test to make test!
104 prove --exec=./$(PMTCL_EXE) $(TEST_FILES)
b9ed51d4 » perlpilot
2009-11-24 [makefile] add a simple test target
105
e383654a » pmichaud
2009-11-18 First simple version.
106 ## cleaning
107
108 clean:
109 $(RM_F) $(CLEANUPS)
110
111 distclean: realclean
112
113 realclean: clean
114 $(RM_F) Makefile
115
116 testclean:
Something went wrong with that request. Please try again.