Changeset 10312 for trunk/Ohana/src/libtap
- Timestamp:
- Nov 30, 2006, 9:04:51 AM (20 years ago)
- Location:
- trunk/Ohana/src/libtap
- Files:
-
- 3 added
- 4 edited
-
. (modified) (1 prop)
-
.cvsignore (modified) (1 diff)
-
Makefile (modified) (1 diff)
-
README (modified) (1 diff)
-
include (added)
-
include/tap_ohana.h (added)
-
src/tap_ohana.c (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libtap
- Property svn:ignore
-
old new 1 1 lib 2 include
-
- Property svn:ignore
-
trunk/Ohana/src/libtap/.cvsignore
r9727 r10312 1 1 lib 2 include -
trunk/Ohana/src/libtap/Makefile
r10305 r10312 1 default: libtap 2 install: libtap 1 default: install 3 2 help: 4 @echo "make options: libtap (default)"3 @echo "make options: install libtap clean dist" 5 4 6 5 include ../../Configure 7 8 6 HOME = $(ROOT)/src/libtap 7 LIB = $(HOME)/lib/$(ARCH) 9 8 LIB = $(HOME)/lib/$(ARCH) 10 9 INC = $(HOME)/include 11 10 SRC = $(HOME)/src 12 11 MAN = $(HOME)/doc 13 DESTBIN = $(BINDIR) 14 DESTLIB = $(LIBDIR) 15 DESTINC = $(INCDIR) 16 DESTMAN = $(MANDIR) 12 include ../../Makefile.Common 17 13 18 CFLAGS = -I$(INC) -I$(INCDIR) $(INCDIRS) -D$(ARCH) 14 install: $(DESTLIB)/libtap_ohana.a $(DESTLIB)/libtap_ohana.so 15 libtap: $(LIB)/libtap_ohana.$(ARCH).a $(LIB)/libtap_ohana.$(ARCH).so 19 16 20 TAP = $(SRC)/tap.$(ARCH).o 17 INCS = $(DESTINC)/tap_ohana.h 21 18 22 libtap: $(LIB)/libtap.a 19 TAP = $(SRC)/tap_ohana.$(ARCH).o 23 20 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) 51 24 52 25 # libtap tests are currently not compiled or run -
trunk/Ohana/src/libtap/README
r8631 r10312 14 14 --- 15 15 16 *** Note for Ohana *** 17 16 18 This is a locally modified version of tap to work within the Ohana 17 19 framework. I have stripped the library down to the source code and 18 20 tests, removed the autogen and libtool stuff, and made a Makefile 19 which uses the Ohana $(ARCH) system to install an 20 architecture-dependent copy of the library, ARCH/libtap.a. Unlike 21 other Ohana libraries, libtap.a is not installed in a globally visible 22 location. The Ohana test programs which use libtap include a -L to 23 the installed version. 24 21 which uses the Ohana $(ARCH) system. The tap library is installed 22 with the name tap_ohana (-ltap_ohana, tap_ohana.h).
Note:
See TracChangeset
for help on using the changeset viewer.
