comparison build/Makefile.in @ 47:d385af306a13

Fix Makefile.in for cbc build
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 09 Dec 2018 11:28:04 +0900
parents 2cf249471370
children
comparison
equal deleted inserted replaced
46:e3cd4e21b560 47:d385af306a13
80 80
81 OBJECTS = src/core/callsite@obj@ \ 81 OBJECTS = src/core/callsite@obj@ \
82 src/core/args@obj@ \ 82 src/core/args@obj@ \
83 src/core/exceptions@obj@ \ 83 src/core/exceptions@obj@ \
84 src/core/interp@obj@ \ 84 src/core/interp@obj@ \
85 src/core/cbc-interp@obj@ \
85 src/core/threadcontext@obj@ \ 86 src/core/threadcontext@obj@ \
86 src/core/compunit@obj@ \ 87 src/core/compunit@obj@ \
87 src/core/bytecode@obj@ \ 88 src/core/bytecode@obj@ \
88 src/core/frame@obj@ \ 89 src/core/frame@obj@ \
89 src/core/callstack@obj@ \ 90 src/core/callstack@obj@ \
240 src/core/threadcontext.h \ 241 src/core/threadcontext.h \
241 src/core/callsite.h \ 242 src/core/callsite.h \
242 src/core/args.h \ 243 src/core/args.h \
243 src/core/exceptions.h \ 244 src/core/exceptions.h \
244 src/core/interp.h \ 245 src/core/interp.h \
246 src/core/oplables-cbc-codes.h \
245 src/core/alloc.h \ 247 src/core/alloc.h \
246 src/core/vector.h \ 248 src/core/vector.h \
247 src/core/frame.h \ 249 src/core/frame.h \
248 src/core/callstack.h \ 250 src/core/callstack.h \
249 src/core/compunit.h \ 251 src/core/compunit.h \
473 MINILUA = 3rdparty/dynasm/minilua@exe@ 475 MINILUA = 3rdparty/dynasm/minilua@exe@
474 DYNASM = $(MINILUA) 3rdparty/dynasm/dynasm.lua 476 DYNASM = $(MINILUA) 3rdparty/dynasm/dynasm.lua
475 DYNASM_SCRIPTS = 3rdparty/dynasm/dynasm.lua 3rdparty/dynasm/dasm_x86.lua 477 DYNASM_SCRIPTS = 3rdparty/dynasm/dynasm.lua 3rdparty/dynasm/dasm_x86.lua
476 DYNASM_HEADERS = 3rdparty/dynasm/dasm_proto.h 3rdparty/dynasm/dasm_x86.h 478 DYNASM_HEADERS = 3rdparty/dynasm/dasm_proto.h 3rdparty/dynasm/dasm_x86.h
477 479
478 .SUFFIXES: .c @obj@ .i @asm@ .dasc .expr .tile 480 .SUFFIXES: .c .cbc @obj@ .i @asm@ .dasc .expr .tile
479 481
480 all: moar@exe@ pkgconfig/moar.pc 482 all: moar@exe@ pkgconfig/moar.pc
481 483
482 install: all 484 install: all
483 $(MKPATH) "$(DESTDIR)$(BINDIR)" 485 $(MKPATH) "$(DESTDIR)$(BINDIR)"
583 585
584 .c@obj@: 586 .c@obj@:
585 $(MSG) compiling $@ 587 $(MSG) compiling $@
586 $(CMD)$(CC) @ccswitch@ $(CFLAGS) @objflags@ $(CINCLUDES) @ccout@$@ $*.c 588 $(CMD)$(CC) @ccswitch@ $(CFLAGS) @objflags@ $(CINCLUDES) @ccout@$@ $*.c
587 589
590 .cbc.i:
591 $(MSG) pre-processing $@
592 $(CMD)$(CC) @cppswitch@ $(CFLAGS) @objflags@ $(CINCLUDES) @cppout@$@ $*.cbc
593
594 .cbc@asm@:
595 $(MSG) generating assembler for $@
596 $(CMD)$(CC) @asmswitch@ $(CFLAGS) @objflags@ $(CINCLUDES) @asmout@$@ $*.cbc
597
598 .cbc@obj@:
599 $(MSG) compiling $@
600 $(CMD)$(CC) @ccswitch@ $(CFLAGS) @objflags@ $(CINCLUDES) @ccout@$@ $*.cbc
601
588 602
589 src/main@obj@: src/main.c 603 src/main@obj@: src/main.c
590 $(MSG) compiling $@ 604 $(MSG) compiling $@
591 $(CMD)$(CC) @ccswitch@ $(CFLAGS) @mainflags@ $(CINCLUDES) @ccout@$@ $*.c 605 $(CMD)$(CC) @ccswitch@ $(CFLAGS) @mainflags@ $(CINCLUDES) @ccout@$@ $*.c
592 606