Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 42 lines (36 sloc) 0.938 kB
e0d6430 @mimaki add mruby sources
mimaki authored
1 # makefile discription.
db99923 @matz build process restructured
matz authored
2 # basic build file for mruby
e0d6430 @mimaki add mruby sources
mimaki authored
3
4 # compiler, linker (gcc)
5 CC = gcc
6 LL = gcc
7 DEBUG_MODE = 1
8 ifeq ($(DEBUG_MODE),1)
db99923 @matz build process restructured
matz authored
9 CFLAGS = -g -O3
e0d6430 @mimaki add mruby sources
mimaki authored
10 else
11 CFLAGS = -O3
12 endif
13 ALL_CFLAGS = -Wall -Werror-implicit-function-declaration $(CFLAGS)
db99923 @matz build process restructured
matz authored
14 ifeq ($(OS),Windows_NT)
15 MAKE_FLAGS = --no-print-directory CC=$(CC) LL=$(LL) ALL_CFLAGS='$(ALL_CFLAGS)'
16 else
17 MAKE_FLAGS = --no-print-directory CC='$(CC)' LL='$(LL)' ALL_CFLAGS='$(ALL_CFLAGS)'
18 endif
e0d6430 @mimaki add mruby sources
mimaki authored
19
20 ##############################
21 # generic build targets, rules
22
23 .PHONY : all
db99923 @matz build process restructured
matz authored
24 all :
4390ff1 @matz Makefile: run make at src first
matz authored
25 @$(MAKE) -C src $(MAKE_FLAGS)
0026d5f @matz run make -c mrblib from top
matz authored
26 @$(MAKE) -C mrblib $(MAKE_FLAGS)
db99923 @matz build process restructured
matz authored
27 @$(MAKE) -C tools/mruby $(MAKE_FLAGS)
917d70e @bovi mirb - Embeddable Interactive Ruby Shell
bovi authored
28 @$(MAKE) -C tools/mirb $(MAKE_FLAGS)
29
8085817 @matz make test restructuring
matz authored
30 # mruby test
31 .PHONY : test
ec8f97d @matz add "all" to test dependency
matz authored
32 test : all
c8c0ef8 @bovi mrit - Embeddable Ruby ISO Test
bovi authored
33 @$(MAKE) -C test $(MAKE_FLAGS)
34
e0d6430 @mimaki add mruby sources
mimaki authored
35 # clean up
36 .PHONY : clean
37 clean :
db99923 @matz build process restructured
matz authored
38 @$(MAKE) clean -C src $(MAKE_FLAGS)
39 @$(MAKE) clean -C tools/mruby $(MAKE_FLAGS)
917d70e @bovi mirb - Embeddable Interactive Ruby Shell
bovi authored
40 @$(MAKE) clean -C tools/mirb $(MAKE_FLAGS)
c8c0ef8 @bovi mrit - Embeddable Ruby ISO Test
bovi authored
41 @$(MAKE) clean -C test $(MAKE_FLAGS)
Something went wrong with that request. Please try again.