Alpine3D

Alpine3D Svn Source Tree

Root/trunk/alpine3d/snowdrift/Makefile.inc

1#/***********************************************************************************/
2#/* Swiss Federal Institute for Snow and Avalanche Research SLF-DAVOS */
3# -----------------------------------------------------------------------------
4# GENERAL INFO AUTHORS: PERRY BARTELT and MICHAEL LEHNING SLF-DAVOS
5# -----------------------------------------------------------------------------
6#/**********************************************************************************/
7#/* RESEARCH VERSION 3.0 */
8#/* Corresponds to OPERATIONAL VERSION 4.1 */
9#/**********************************************************************************/
10
11######## Sources, objects, headers
12SNOWDRIFT_OBJ = $(SNOWDRIFTDIR)/SnowDrift.o \
13$(SNOWDRIFTDIR)/Saltation.o \
14$(SNOWDRIFTDIR)/Suspension.o \
15$(SNOWDRIFTDIR)/Sublimation.o \
16$(SNOWDRIFTDIR)/checksum.o \
17$(SNOWDRIFTDIR)/LegacyIO.o \
18$(SNOWDRIFTDIR)/SnowDriftFEInit.o \
19$(SNOWDRIFTDIR)/SnowDriftFENumerics.o \
20$(SNOWDRIFTDIR)/SnowDriftFEControl.o \
21$(SNOWDRIFTDIR)/Cell.o
22SNOWDRIFT_OBJ_POPC = $(SNOWDRIFTDIR)/SnowDrift.stub.o \
23$(SNOWDRIFTDIR)/PackSnowDrift_par.o \
24$(SNOWDRIFTDIR)/SnowDrift_par.o \
25$(SNOWDRIFTDIR)/Saltation_par.o \
26$(SNOWDRIFTDIR)/Suspension_par.o \
27$(SNOWDRIFTDIR)/Sublimation_par.o \
28$(SNOWDRIFTDIR)/checksum_par.o \
29$(SNOWDRIFTDIR)/LegacyIO_par.o \
30$(SNOWDRIFTDIR)/SnowDriftFEInit_par.o \
31$(SNOWDRIFTDIR)/SnowDriftFENumerics_par.o \
32$(SNOWDRIFTDIR)/SnowDriftFEControl_par.o \
33$(SNOWDRIFTDIR)/Cell_par.o
34
35####### Build rules
36
37snowdrift: $(SNOWDRIFTDIR)/libsnowdrift.a
38
39snowdrift_par: snowdrift_lib_par snowdrift_module_par
40
41snowdrift_lib_par: $(SNOWDRIFTDIR)/libsnowdriftpopc.a
42
43snowdrift_module_par: $(SNOWDRIFTDIR)/snowdrift.module
44
45snowdrift_clean:
46-$(DEL_FILE) $(SNOWDRIFTDIR)/*~ $(SNOWDRIFTDIR)/core $(SNOWDRIFTDIR)/*.core $(SNOWDRIFTDIR)/*.a $(SNOWDRIFTDIR)/*.o $(SNOWDRIFTDIR)/*.module
47-$(DEL_FILE) $(SNOWDRIFTDIR)/_par*
48
49####### Compile
50$(SNOWDRIFTDIR)/libsnowdrift.a: $(SNOWDRIFT_OBJ)
51ar -r $@ $(SNOWDRIFT_OBJ)
52ranlib $@
53
54$(SNOWDRIFTDIR)/snowdrift.module: $(SNOWDRIFTDIR)/PackSnowDrift_par.o $(LIBS_POPC)
55$(POPCC) -object -popcld=$(LINKER) -o $@ $(SNOWDRIFTDIR)/PackSnowDrift_par.o $(LDFLAGS) $(LDFLAGS_POPC)
56
57$(SNOWDRIFTDIR)/libsnowdriftpopc.a: $(SNOWDRIFT_OBJ_POPC)
58ar -r $@ $(SNOWDRIFT_OBJ_POPC)
59ranlib $@
60

Archive Download this file

Revision: HEAD