Changeset 28235
- Timestamp:
- Jun 6, 2010, 2:46:21 PM (16 years ago)
- Location:
- branches/eam_branches/Ohana.20100606/src/libohana
- Files:
-
- 1 added
- 2 edited
-
Makefile (modified) (3 diffs)
-
include/ohana.h (modified) (2 diffs)
-
test/typetest.c (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/Ohana.20100606/src/libohana/Makefile
r27435 r28235 1 1 default: install 2 2 help: 3 @echo "make options: install libohana clean dist "3 @echo "make options: install libohana clean dist test typetest" 4 4 5 5 include ../../Makefile.System … … 19 19 TFLAGS = $(FULL_CFLAGS) $(FULL_CPPFLAGS) $(FULL_LDFLAGS) -lohana -ltap_ohana 20 20 21 install: $(DESTLIB)/libohana.a $(DESTLIB)/libohana.$(DLLTYPE) 21 install: $(DESTLIB)/libohana.a $(DESTLIB)/libohana.$(DLLTYPE) typetest 22 22 libohana: $(LIB)/libohana.$(ARCH).a $(LIB)/libohana.$(ARCH).$(DLLTYPE) 23 23 … … 40 40 $(SRC)/CommOps.$(ARCH).o \ 41 41 $(SRC)/version.$(ARCH).o 42 43 TYPETEST = \ 44 $(TESTDIR)/typetest.$(ARCH) 45 46 $(TYPETEST) : $(LIB)/libohana.$(ARCH).a 47 48 typetest: $(TYPETEST) 49 for i in $(TYPETEST); do $$i || exit 1; done 42 50 43 51 TEST = \ -
branches/eam_branches/Ohana.20100606/src/libohana/include/ohana.h
r27484 r28235 94 94 }; 95 95 96 /* note: in the Ohana tree, the byte order is determined by the ARCH variable 97 if you have a small endian machine that is not listed here, the test 98 program 'typestest' should fail */ 99 # ifndef BYTE_SWAP 100 # ifdef linux 101 # define BYTE_SWAP 102 # endif 103 104 # ifdef lin64 105 # define BYTE_SWAP 106 # endif 107 108 # ifdef sid 109 # define BYTE_SWAP 110 # endif 111 112 # ifdef darwin_x86 113 # define BYTE_SWAP 114 # endif 115 116 # ifdef dec 117 # define BYTE_SWAP 118 # endif 119 # else 120 # define NOT_BYTE_SWAP 121 # endif /* BYTE_SWAP */ 122 96 123 # ifndef NAN 97 124 # ifndef BYTE_SWAP … … 103 130 __attribute_used__ = { __nan_bytes }; 104 131 # define NAN (__nan_union.__d) 132 # endif 133 134 /* if your build crashes on OFF_T_MODE, you probably need to add your 64bit hardware to this list */ 135 # ifdef _LARGEFILE_SOURCE 136 # define OFF_T_FMT "%jd" 137 # endif 138 # ifdef lin64 139 # define OFF_T_FMT "%jd" 140 # endif 141 # ifndef OFF_T_FMT 142 # define OFF_T_FMT "%ld" 143 # endif 144 145 # ifndef isfinite 146 # define isfinite(A) (!isnan(A)) 105 147 # endif 106 148
Note:
See TracChangeset
for help on using the changeset viewer.
