IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 656


Ignore:
Timestamp:
May 12, 2004, 4:18:50 PM (22 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/Makefile

    r655 r656  
    33endif
    44
    5 #TARGET = psImage.o psStats.o libpsDataManip.a
    6 TARGET = psStats.o libpsDataManip.a
     5# Define the two targets to be built
    76
    8 all: $(TARGET)
     7TARGET_STATIC  = libpsDataManip.a
     8
     9# Include the make global definitions for the project
    910
    1011include ../Makefile.Globals
    1112
     13# Set CFLAGS used by the implicit rule to compile .c
     14
     15CFLAGS := $(CFLAGS_RELOC)
     16
     17# Define the source objects
     18
    1219SRC_OBJS = psStats.o
     20
     21# Define PHONY target "all" which will make all the necessary items
     22
     23all: $(TARGET_STATIC)
     24
     25# Rule to make static library
     26
     27libpslib.a: $(SRC_OBJS)
     28# The ar option -r is to add/replace object and -s is to create
     29# a symbol table in the archive
     30        $(AR) rcs ../$@ $(SRC_OBJS)
     31
     32# Define PHONY target "install" which will install necessary files
     33
     34install: $(TARGET_STATIC)
     35        install *.h $(includedir)
     36
     37# Define PHONY target "distclean" which will cleanup the distribution
     38
     39distclean:      clean
     40        $(RM) ../$(TARGET_STATIC)
     41
     42# Define PHONY target "clean" which will cleanup the development area
     43
     44clean:
     45        @echo "    Deleting intermediate files for 'sysUtils'"
     46        $(RM) $(SRC_OBJS) *.lint
     47
     48%.lint: %.c
     49        splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@
     50
     51
     52
     53
     54
     55
     56
     57
     58
     59
     60
     61
     62
     63
     64
     65
     66
     67
     68
     69
    1370
    1471%.o: %.c
     
    1774
    1875libpsDataManip.a: $(SRC_OBJS)
    19         $(AR) -r libpsDataManip.a $(SRC_OBJS)
     76#       $(AR) rcs libpsDataManip.a $(SRC_OBJS)
     77        $(AR) rcs ../$@ $(SRC_OBJS)
    2078
    2179install: $(TARGET)
    2280        install *.h $(includedir)
    23         install $(TARGET) $(libexecdir)
    2481
    2582distclean:      clean
Note: See TracChangeset for help on using the changeset viewer.