1# 2# %CopyrightBegin% 3# 4# Copyright Ericsson AB 2005-2016. All Rights Reserved. 5# 6# Licensed under the Apache License, Version 2.0 (the "License"); 7# you may not use this file except in compliance with the License. 8# You may obtain a copy of the License at 9# 10# http://www.apache.org/licenses/LICENSE-2.0 11# 12# Unless required by applicable law or agreed to in writing, software 13# distributed under the License is distributed on an "AS IS" BASIS, 14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15# See the License for the specific language governing permissions and 16# limitations under the License. 17# 18# %CopyrightEnd% 19# 20 21include @erts_lib_make_ethread@ 22 23CC = @CC@ 24CFLAGST = @ERTS_CFLAGS@ 25LIBST = @ERTS_LIBS@ 26CFLAGSF = @CFLAGS@ 27LIBSF = @LIBS@ 28CP=cp 29CHMOD=chmod 30 31COMMON_CFLAGS = -Wall @DEFS@ -I@erts_lib_include_internal@ -I@erts_lib_include_internal_generated@ 32 33EPTF_CFLAGS = $(CFLAGSF) $(COMMON_CFLAGS) 34EPTF_LIBS = -L@erts_lib_internal_path@ -lerts_internal@type_marker@ $(LIBSF) 35 36EPTT_CFLAGS = -DTHREAD_SAFE $(ETHR_DEFS) $(CFLAGST) $(COMMON_CFLAGS) 37EPTT_LIBS = -L@erts_lib_internal_path@ -lerts_internal_r@type_marker@ $(ETHR_LIBS) $(LIBST) 38 39GCC = .@DS@gccifier -CC"$(CC)" 40 41PROGS = erl_print_tests.true@exe@ erl_print_tests.false@exe@ 42 43all: $(PROGS) 44 45@IFEQ@ (@cross@, yes) 46gccifier@exe@: 47 $(CP) ..@DS@utils@DS@gccifier.sh gccifier@exe@ 48 $(CHMOD) a+x gccifier@exe@ 49@ELSE@ 50gccifier@exe@: ..@DS@utils@DS@gccifier.c 51 $(CC) $(CFLAGST) -o gccifier@exe@ ..@DS@utils@DS@gccifier.c $(LIBST) 52@ENDIF@ 53 54erl_print_tests.false@exe@: gccifier@exe@ erl_print_tests.c 55 $(GCC) $(EPTF_CFLAGS) -o erl_print_tests.false@exe@ erl_print_tests.c $(EPTF_LIBS) 56 57erl_print_tests.true@exe@: gccifier@exe@ erl_print_tests.c 58 $(GCC) $(EPTT_CFLAGS) -o erl_print_tests.true@exe@ erl_print_tests.c $(EPTT_LIBS) 59