Changeset 1895 for trunk/external


Ignore:
Timestamp:
08/24/10 17:49:49 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Added 'test' target to create library for testing.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/external/libpyrap/Makefile

    r1892 r1895  
    1111PYRAPROOT := $(EXTDIR)/pyrap-0.3.2/
    1212PYRAPDIR := $(EXTDIR)/pyrap-0.3.2/pyrap/Converters
     13TESTDIR := $(PYRAPDIR)/test
    1314
    1415# the casa environment AIPSPATH has to be defined
     
    2223
    2324TARGET := libpyrap.so
     25TESTMOD := $(TESTDIR)/_tConvert.so
    2426INSTDIR := $(CASAROOT)/$(CASAARCH)/lib
    2527
     
    8789#          $(PYRAPDIR)/PycArrayNA.h
    8890
     91TESTSRC := $(TESTDIR)/tConvert.cc
     92TESTOBJ := $(TESTDIR)/tConvert.o
     93
    8994all: $(TARGET)
    9095
     
    98103
    99104clean:
    100         @rm -rf $(OBJECTS) $(TARGET)
     105        rm -rf $(OBJECTS) $(TARGET)
     106        rm -rf $(TESTDIR)/$(TESTMOD) $(TESTDIR)/$(TESTOBJ)
    101107
    102108install:
    103         @cp -f $(TARGET) $(INSTDIR)
     109        cp -f $(TARGET) $(INSTDIR)
     110
     111test:
     112        $(CXX) $(CXXOPTS) -c $(CXXFLAGS) $(INCDIRS) -o $(TESTOBJ) $(TESTSRC)
     113        $(LD) $(LDFLAGS) -o $(TESTMOD) $(TESTOBJ) $(LIBS) -L$(INSTDIR) -lpyrap
Note: See TracChangeset for help on using the changeset viewer.