mirror of
https://github.com/VictorEijkhout/TheArtOfHPC_vol3_cppf08programming.git
synced 2026-01-24 22:44:48 +09:00
106 lines
2.0 KiB
Makefile
106 lines
2.0 KiB
Makefile
# -*- makefile -*-
|
|
################################################################
|
|
####
|
|
#### This makefile is part of the course
|
|
#### Introduction to Scientific Programming in C++ and Fortran
|
|
#### copyright 2017-2023 Victor Eijkhout (eijkhout@tacc.utexas.edu)
|
|
####
|
|
################################################################
|
|
|
|
PROGRAMS = any pointx twopoint pointy printfpoint coutpoint \
|
|
arrayaddr arraypass starconst \
|
|
ptr0 ptr1 ptr2 ptr3 pointrectangle dynrectangle \
|
|
cintpointer ptrdouble
|
|
WRONGS = address
|
|
|
|
LANGUAGE = CXX
|
|
include ../Make.inc
|
|
CPPSTANDARD = 17
|
|
|
|
RUNS =
|
|
|
|
RUNS += run_address
|
|
run_address : address
|
|
@./address
|
|
|
|
RUNS += run_arrayaddr
|
|
run_arrayaddr : arrayaddr
|
|
@./arrayaddr
|
|
|
|
RUNS += run_arraypass
|
|
run_arraypass : arraypass
|
|
@./arraypass
|
|
|
|
RUNS += run_pointx
|
|
run_pointx : pointx
|
|
@./pointx
|
|
|
|
RUNS += run_starconst run_starconst1
|
|
run_starconst run_starconst1 : starconst
|
|
run_starconst :
|
|
@./starconst
|
|
run_starconst1 :
|
|
@./starconst \
|
|
| awk '/cptrinc/ {p=0} p==1 {print} /CPTRINC/ {p=1}'
|
|
|
|
RUNS += run_twopoint
|
|
run_twopoint : twopoint
|
|
@./twopoint
|
|
|
|
RUNS += run_pointy
|
|
run_pointy : pointy
|
|
@./pointy
|
|
|
|
RUNS += run_printfpoint
|
|
run_printfpoint : printfpoint
|
|
@./printfpoint
|
|
|
|
RUNS += run_coutpoint
|
|
run_coutpoint : coutpoint
|
|
@./coutpoint
|
|
|
|
RUNS += run_cintpointer
|
|
run_cintpointer : cintpointer
|
|
@./cintpointer
|
|
|
|
RUNS += run_ptr0
|
|
run_ptr0 : ptr0
|
|
@./ptr0
|
|
|
|
RUNS += run_ptr1
|
|
run_ptr1 : ptr1
|
|
@./ptr1
|
|
|
|
RUNS += run_ptr2
|
|
run_ptr2 : ptr2
|
|
@./ptr2
|
|
|
|
RUNS += run_ptr3a run_ptr3b
|
|
run_ptr3a : ptr3
|
|
@./ptr3 \
|
|
| awk '/pointer3a/ {p=0} p==1 {print} /Pointer3a/ {p=1}'
|
|
run_ptr3b : ptr3
|
|
@./ptr3 \
|
|
| awk '/pointer3b/ {p=0} p==1 {print} /Pointer3b/ {p=1}'
|
|
|
|
RUNS += run_ptrdouble run_ptrdoubleinit
|
|
run_ptrdouble : ptrdouble
|
|
@./ptrdouble \
|
|
| awk '/double/ {p=0} p==1 {print} /Double/ {p=1}'
|
|
run_ptrdoubleinit : ptrdouble
|
|
@./ptrdouble \
|
|
| awk '/init/ {p=0} p==1 {print} /Init/ {p=1}'
|
|
|
|
RUNS += run_dynrect
|
|
run_dynrect : dynrectangle
|
|
@./dynrectangle
|
|
|
|
RUNS += run_any
|
|
run_any : any
|
|
@./any
|
|
|
|
.PHONY: ${RUNS}
|
|
|
|
include ../../makefiles/Make.cmake
|
|
include ../../makefiles/Make.clean
|