IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 30, 2006, 9:04:51 AM (20 years ago)
Author:
eugene
Message:

moved tap to tap_ohana, set up to install globally

Location:
trunk/Ohana/src/libtap
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libtap

    • Property svn:ignore
      •  

        old new  
        11lib
        2 include
  • trunk/Ohana/src/libtap/Makefile

    r10305 r10312  
    1 default: libtap
    2 install: libtap
     1default: install
    32help:
    4         @echo "make options: libtap (default)"
     3        @echo "make options: install libtap clean dist"
    54
    65include ../../Configure
    7 
    86HOME    =       $(ROOT)/src/libtap
     7LIB     =       $(HOME)/lib/$(ARCH)
    98LIB     =       $(HOME)/lib/$(ARCH)
    109INC     =       $(HOME)/include
    1110SRC     =       $(HOME)/src
    1211MAN     =       $(HOME)/doc
    13 DESTBIN =       $(BINDIR)
    14 DESTLIB =       $(LIBDIR)
    15 DESTINC =       $(INCDIR)
    16 DESTMAN =       $(MANDIR)
     12include ../../Makefile.Common
    1713
    18 CFLAGS  =       -I$(INC) -I$(INCDIR) $(INCDIRS) -D$(ARCH)
     14install: $(DESTLIB)/libtap_ohana.a $(DESTLIB)/libtap_ohana.so
     15libtap: $(LIB)/libtap_ohana.$(ARCH).a $(LIB)/libtap_ohana.$(ARCH).so
    1916
    20 TAP = $(SRC)/tap.$(ARCH).o
     17INCS = $(DESTINC)/tap_ohana.h
    2118
    22 libtap: $(LIB)/libtap.a
     19TAP = $(SRC)/tap_ohana.$(ARCH).o
    2320
    24 $(LIB)/libtap.a: $(INC)/tap.h $(TAP)
    25         @if [ ! -d $(LIB) ]; then mkdir -p $(LIB); fi
    26         rm -f $(LIB)/libtap.a
    27         ar rcv $(LIB)/libtap.a $(TAP)
    28         $(RANLIB) $(LIB)/libtap.a
    29 
    30 $(INC)/tap.h: $(SRC)/tap.h
    31         @if [ ! -d $(INC) ]; then mkdir -p $(INC); fi
    32         echo $@
    33         echo $^
    34         rm -f $@
    35         cp $^ $@
    36 
    37 clean:
    38         rm -f `find . -name "*.o"`
    39         rm -f `find . -name "*.a"`
    40         rm -f `find . -name "*~"`
    41         rm -f `find . -name "#*"`
    42 
    43 dist: clean
    44         rm -rf lib
    45         rm -rf include
    46 
    47 .SUFFIXES: .$(ARCH).o
    48 
    49 .c.$(ARCH).o:
    50         $(CC) $(CFLAGS) -c $*.c -o $@
     21$(TAP): $(INCS)
     22$(LIB)/libtap_ohana.$(ARCH).a: $(TAP)
     23$(LIB)/libtap_ohana.$(ARCH).so: $(TAP)
    5124
    5225# libtap tests are currently not compiled or run
Note: See TracChangeset for help on using the changeset viewer.