Last change
on this file since 462 was 331, checked in by coas-nagasima, 6 years ago |
prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl
|
File size:
1.1 KB
|
Rev | Line | |
---|
[331] | 1 | #
|
---|
| 2 | # credits: 01..13.c from the pcc cpp-tests suite
|
---|
| 3 | #
|
---|
| 4 |
|
---|
| 5 | TOP = ../..
|
---|
| 6 | include $(TOP)/Makefile
|
---|
| 7 | SRC = $(TOPSRC)/tests/pp
|
---|
| 8 | VPATH = $(SRC)
|
---|
| 9 |
|
---|
| 10 | files = $(patsubst %.$1,%.test,$(notdir $(wildcard $(SRC)/*.$1)))
|
---|
| 11 | TESTS = $(call files,c) $(call files,S)
|
---|
| 12 |
|
---|
| 13 | all test : $(sort $(TESTS))
|
---|
| 14 |
|
---|
| 15 | DIFF_OPTS = -Nu -b -B
|
---|
| 16 |
|
---|
| 17 | # Filter source directory in warnings/errors (out-of-tree builds)
|
---|
| 18 | FILTER = 2>&1 | sed 's,$(SRC)/,,g'
|
---|
| 19 |
|
---|
| 20 | %.test: %.c %.expect
|
---|
| 21 | @echo PPTest $* ...
|
---|
| 22 | -@$(TCC) -E -P $< $(FILTER) >$*.output 2>&1 ; \
|
---|
| 23 | diff $(DIFF_OPTS) $(SRC)/$*.expect $*.output \
|
---|
| 24 | && rm -f $*.output
|
---|
| 25 |
|
---|
| 26 | %.test: %.S %.expect
|
---|
| 27 | @echo PPTest $* ...
|
---|
| 28 | -@$(TCC) -E -P $< $(FILTER) >$*.output 2>&1 ; \
|
---|
| 29 | diff $(DIFF_OPTS) $(SRC)/$*.expect $*.output \
|
---|
| 30 | && rm -f $*.output
|
---|
| 31 |
|
---|
| 32 | # automatically generate .expect files with gcc:
|
---|
| 33 | %.expect: # %.c
|
---|
| 34 | gcc -E -P $*.[cS] >$*.expect 2>&1
|
---|
| 35 |
|
---|
| 36 | # tell make not to delete
|
---|
| 37 | .PRECIOUS: %.expect
|
---|
| 38 |
|
---|
| 39 | clean:
|
---|
| 40 | rm -f *.output
|
---|
| 41 |
|
---|
| 42 | 02.test : DIFF_OPTS += -w
|
---|
| 43 | # 15.test : DIFF_OPTS += -I"^XXX:"
|
---|
| 44 |
|
---|
| 45 | # diff options:
|
---|
| 46 | # -b ighore space changes
|
---|
| 47 | # -w ighore all whitespace
|
---|
| 48 | # -B ignore blank lines
|
---|
| 49 | # -I <RE> ignore lines matching RE
|
---|
Note:
See
TracBrowser
for help on using the repository browser.