IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 11, 2004, 4:34:58 PM (22 years ago)
Author:
desonia
Message:

made like the others.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astronomy/Makefile

    r1456 r1500  
    33##  Makefile:   test/astronomy
    44##
    5 ##  $Revision: 1.10 $  $Name: not supported by cvs2svn $
    6 ##  $Date: 2004-08-10 23:22:40 $
     5##  $Revision: 1.11 $  $Name: not supported by cvs2svn $
     6##  $Date: 2004-08-12 02:34:58 $
    77##
    88##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1616include ../../src/Makefile.Globals
    1717
    18 PSLIB_INCL_DIR = ../../include
    19 
    20 PSLIB_LIB_DIR = ../../lib
     18CFLAGS := -I../../include $(CFLAGS)
     19LDFLAGS := -L../../lib -lpslib -lpstest $(LDFLAGS)
    2120
    2221TARGET = tst_psTime_01 \
     
    2928         tst_psMetadata_06
    3029
    31 DEPENDENCIES = $(addprefix builddir/,$(addsuffix .d,$(TARGET)))
    3230OBJS = $(addprefix builddir/,$(addsuffix .o,$(TARGET)))
    3331
    34 all: builddir $(TARGET)
    35 
    36 builddir:
    37         mkdir builddir
    38 
    39 include $(DEPENDENCIES)
     32all: $(TARGET)
    4033
    4134clean:
    42         @echo "    Deleting executable and binary files for 'test/astronomy'"
    43         $(RM) $(OBJS) *.lint builddir/*.i
     35        @echo "    Deleting executable and binary files for 'test/collections'"
     36        $(RM) $(OBJS)
    4437
    4538distclean: clean
    4639        $(RM) $(TARGET)
    47 
    48 cleandependencies:
    49         $(RM) $(DEPENDENCIES)
    50 
    51 builddir/%.o : builddir/%.i
    52         $(CC) $(CFLAGS) -I$(PSLIB_INCL_DIR) -c -o $@ $<
    53 
    54 builddir/%.o : %.c
    55         $(CC) $(CFLAGS) -I$(PSLIB_INCL_DIR) -c -o $@ $<
    56 
    57 %   : builddir/%.o
    58         $(CC) -o $@ $< -L$(PSLIB_LIB_DIR) -lpslib -lpstest $(LDFLAGS)
    59 
    60 %.lint: %.c
    61         splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@
    62 
    63 builddir/%.i: %.c
    64         $(CC) -E $(CFLAGS) $(CPPFLAGS) -I$(PSLIB_INCL_DIR) -o $@ $<
    65 
    66 builddir/%.d: %.c
    67         $(CC) -MM $(CFLAGS) -I$(PSLIB_INCL_DIR) $< | sed 's|\(.*\.o\)|builddir/\1|' > $@
    6840
    6941install: $(testbindir) $(testbindir)/verified $(TARGET)
     
    7749        mkdir -p $(testbindir)/verified
    7850
    79 
Note: See TracChangeset for help on using the changeset viewer.