-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
60 lines (50 loc) · 2.11 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# GNU Makefile template for user ESMF application
################################################################################
################################################################################
## This Makefile must be able to find the "esmf.mk" Makefile fragment in the ##
## 'include' line below. Following the ESMF User's Guide, a complete ESMF ##
## installation should ensure that a single environment variable "ESMFMKFILE" ##
## is made available on the system. This variable should point to the ##
## "esmf.mk" file. ##
## ##
## This example Makefile uses the "ESMFMKFILE" environment variable. ##
## ##
## If you notice that this Makefile cannot find variable ESMFMKFILE then ##
## please contact the person responsible for the ESMF installation on your ##
## system. ##
## As a work-around you can simply hardcode the path to "esmf.mk" in the ##
## include line below. However, doing so will render this Makefile a lot less ##
## flexible and non-portable. ##
################################################################################
HR := ========================================
HR := $(HR)$(HR)
COMMA := ,
DIR := $(CURDIR)
all: cap app
cap:
@echo $(HR)
@echo "Making Cap"
make -f makefile.sample_cap nuopc DEBUG=$(DEBUG)
app:
@echo $(HR)
@echo "Making Application"
make -f makefile.app COMP1_MK=sample_cap.mk DEBUG=$(DEBUG)
dust: dustapp
distclean: distcleanapp cleancap
clean: cleanapp cleancap
dustapp:
@echo $(HR)
@echo "Cleaning Output"
make -f makefile.app dust
distcleanapp:
@echo $(HR)
@echo "Cleaning Application and Output"
make -f makefile.app distclean
cleanapp:
@echo $(HR)
@echo "Cleaning Application"
make -f makefile.app clean
cleancap:
@echo $(HR)
@echo "Cleaning Cap"
make -f makefile.sample_cap nuopcclean