Last change
on this file since 1761 was
1761,
checked in by Kana Sugimoto, 14 years ago
|
New Development: Yes
JIRA Issue: No
Ready for Test: Yes
Interface Changes: No
What Interface Changed:
Test Programs: gmake; gmake install @$ASAPROOT
then asap2to3 is installed to $CASAARCH/bin/
Put in Release Notes: Yes
Module(s): asap2to3
Description:
added apps/Makefile so that asap2to3 to be built and installed to $CASAARCH/bin
|
File size:
937 bytes
|
Line | |
---|
1 | ### Notice: |
---|
2 | ### This Makefile assumes CASA+CASACore enviroment. |
---|
3 | ### For who wants to build ASAP with older CASA without CASACore |
---|
4 | ### environment, replace $(CASAPATH) with $(AIPSPATH). |
---|
5 | |
---|
6 | # the casa environment AIPSPATH has to be defined |
---|
7 | CASAROOT := $(word 1, $(CASAPATH)) |
---|
8 | CASAARCH := $(word 2, $(CASAPATH)) |
---|
9 | |
---|
10 | COREINCD := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=COREINCD eval_vars) && echo $$COREINCD) |
---|
11 | CASALIB := $(CASAROOT)/$(CASAARCH)/lib |
---|
12 | |
---|
13 | # the compiler |
---|
14 | ifndef CXX |
---|
15 | CXX := g++ |
---|
16 | endif |
---|
17 | |
---|
18 | # compiler flags |
---|
19 | CXXFLAGS := -fPIC -O3 -g |
---|
20 | CXXFLAGS += -ansi -Wno-long-long -Wall |
---|
21 | |
---|
22 | # darwin specific flags |
---|
23 | ifeq "$(CASAARCH)" "darwin" |
---|
24 | CXXFLAGS += -Wno-long-double |
---|
25 | endif |
---|
26 | |
---|
27 | INCDIRS := -I$(COREINCD) |
---|
28 | LIBS := -L$(CASALIB) -lcasa_tables -lcasa_casa |
---|
29 | |
---|
30 | OBJECTS := asap2to3 |
---|
31 | |
---|
32 | .SUFFIXES: .cpp |
---|
33 | |
---|
34 | .cpp: |
---|
35 | $(CXX) $(CXXFLAGS) $(INCDIRS) $(LIBS) -o $@ $< |
---|
36 | |
---|
37 | all : $(OBJECTS) |
---|
38 | |
---|
39 | $(OBJECTS): |
---|
40 | |
---|
41 | clean : |
---|
42 | -rm -f $(OBJECTS) |
---|
Note: See
TracBrowser
for help on using the repository browser.