Changeset 77
- Timestamp:
- 04/24/07 11:33:41 (1 year ago)
- Files:
-
- trunk/configure.ac (modified) (3 diffs)
- trunk/lib/info/Makefile (added)
- trunk/src/Makefile (modified) (1 diff)
- trunk/src/Makefile.ibm (deleted)
- trunk/src/Makefile.inc (modified) (1 diff)
- trunk/src/Makefile.src (moved) (moved from trunk/src/src.mk) (1 diff)
- trunk/src/autoconf.h.in (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/configure.ac
r74 r77 29 29 AC_PROG_LN_S 30 30 AC_PROG_MAKE_SET 31 AC_PROG_GCC_TRADITIONAL32 31 33 32 AC_PATH_PROG(RM, rm) … … 171 170 172 171 dnl Check for headers. 173 AC_HEADER_STDBOOL 172 dnl AC_HEADER_STDBOOL -- not yet 174 173 AC_HEADER_TIME 175 AC_CHECK_HEADERS([unistd.h fcntl.h sys/ioctl.h fnmatch.h limits.h wchar.h fts.h stdint.h sys/time.h termios.h]) 176 177 dnl Check for supported keywords. 178 AC_C_CONST 179 AC_C_INLINE 174 AC_CHECK_HEADERS([unistd.h fcntl.h limits.h stdint.h sys/time.h termios.h]) 180 175 181 176 dnl Check for types. 182 177 AC_TYPE_SIGNAL 183 AC_TYPE_SIZE_T184 178 AC_TYPE_INT16_T 185 179 AC_TYPE_INT32_T … … 191 185 192 186 dnl Check for functions. 193 AC_FUNC_MMAP194 AC_FUNC_MEMCMP195 AC_FUNC_STRFTIME196 AC_FUNC_VPRINTF197 187 AC_FUNC_STAT 198 188 AC_FUNC_SELECT_ARGTYPES 199 AC_FUNC_MALLOC 200 AC_FUNC_REALLOC 201 AC_CHECK_FUNCS([atexit floor memmove memset modf pow strchr strdup strrchr gethostname mkdir select strstr strtol usleep mkstemp setegid can_change_color munmap]) 189 AC_CHECK_FUNCS([memmove memset strrchr mkdir strtol usleep mkstemp setegid can_change_color]) 202 190 203 191 dnl XXX: Work around some autoconf bugs. trunk/src/Makefile
r74 r77 4 4 5 5 # import source list 6 include src.mk 6 include Makefile.src 7 HEADERS = $(HDRS) $(INCS) 8 SOURCES = $(addsuffix .c,$(ANGFILES) $(MAINFILES) $(ZFILES)) 9 OBJECTS = $(addsuffix .o,$(ANGFILES) $(MAINFILES) $(ZFILES)) 10 7 11 8 12 # These are for OS-specific ports; ignore 'em until we use autoconf everywhere. trunk/src/Makefile.inc
r69 r77 2 2 # File: Makefile.inc 3 3 # 4 # A makefile which includes the current object files, hopefully includable 5 # across a range of different makefiles, to cut down on maintenance. 4 # Includes Makefile.src and contains dependency info 6 5 # 7 6 8 HDRS = h-basic.h h-config.h 9 INCS = angband.h config.h defines.h types.h externs.h \ 10 z-term.h z-rand.h z-util.h z-virt.h z-form.h $(HDRS) 7 include Makefile.src 11 8 12 BASEOBJS := $(addsuffix $(OBJEXT),\ 13 birth \ 14 cave \ 15 cmd1 \ 16 cmd2 \ 17 cmd3 \ 18 cmd4 \ 19 cmd5 \ 20 cmd6 \ 21 dungeon \ 22 files \ 23 generate \ 24 init1 \ 25 init2 \ 26 load \ 27 melee1 \ 28 melee2 \ 29 monster1 \ 30 monster2 \ 31 object1 \ 32 object2 \ 33 obj-info \ 34 pathfind \ 35 randart \ 36 randname \ 37 save \ 38 spells1 \ 39 spells2 \ 40 squelch \ 41 store \ 42 tables \ 43 ui \ 44 use-obj \ 45 util \ 46 variable \ 47 wizard1 \ 48 wizard2 \ 49 x-spell \ 50 xtra1 \ 51 xtra2) 9 BASEOJS := $(addsuffix $(OBJEXT), $(ANGFILES)) 10 ZOBJS := $(addsuffix $(OBJEXT), $(ZFILES)) 52 11 53 ZOBJS := $(addsuffix $(OBJEXT), z-file z-form z-rand z-term z-util z-virt)54 55 # Just print out a list of object files56 inc-print:57 @echo $(BASEOBJS)58 12 59 13 # Note dependencies trunk/src/Makefile.src
r76 r77 1 HEADERS = \ 2 h-basic.h \ 3 h-config.h \ 4 angband.h \ 5 config.h \ 6 defines.h \ 7 types.h \ 8 externs.h \ 9 z-term.h \ 10 z-rand.h \ 11 z-util.h \ 12 z-virt.h \ 13 z-form.h 1 # 2 # File: Makefile.src 3 # 4 # A makefile which includes the current object files, hopefully includable 5 # across a range of different makefiles, to cut down on maintenance. 6 # 14 7 15 SOURCES = \ 16 birth.c \ 17 cave.c \ 18 cmd1.c \ 19 cmd2.c \ 20 cmd3.c \ 21 cmd4.c \ 22 cmd5.c \ 23 cmd6.c \ 24 dungeon.c \ 25 files.c \ 26 generate.c \ 27 init1.c \ 28 init2.c \ 29 load.c \ 30 maid-x11.c \ 31 main-cap.c \ 32 main-crb.c \ 33 main-dos.c \ 34 main-gcu.c \ 35 main-gtk.c \ 36 main-ibm.c \ 37 main-lsl.c \ 38 main-ros.c \ 39 main-sla.c \ 40 main-vcs.c \ 41 main-win.c \ 42 main-x11.c \ 43 main-xaw.c \ 44 main-xpj.c \ 45 main-xxx.c \ 46 main.c \ 47 melee1.c \ 48 melee2.c \ 49 monster1.c \ 50 monster2.c \ 51 obj-info.c \ 52 object1.c \ 53 object2.c \ 54 randart.c \ 55 randname.c \ 56 pathfind.c \ 57 save.c \ 58 spells1.c \ 59 spells2.c \ 60 squelch.c \ 61 store.c \ 62 tables.c \ 63 ui.c \ 64 use-obj.c \ 65 util.c \ 66 variable.c \ 67 wizard1.c \ 68 wizard2.c \ 69 x-spell.c \ 70 xtra1.c \ 71 xtra2.c \ 72 z-file.c \ 73 z-form.c \ 74 z-rand.c \ 75 z-term.c \ 76 z-util.c \ 77 z-virt.c 8 HDRS = h-basic.h h-config.h 9 INCS = angband.h config.h defines.h types.h externs.h \ 10 z-term.h z-rand.h z-util.h z-virt.h z-form.h 78 11 79 OBJECTS = ${SOURCES:.c=.o} 12 HEADERS = $(HDRS) $(INCS) 80 13 81 inc-print: 82 @echo ${OBJECTS} 14 ZFILES = z-file z-form z-rand z-term z-util z-virt 15 MAINFILES = maid-x11 \ 16 $(addprefix main-,cap crb dos gcu gtk ibm lsl ros sla vcs win x11 xaw xpj) 17 18 ANGFILES = \ 19 birth \ 20 cave \ 21 cmd1 \ 22 cmd2 \ 23 cmd3 \ 24 cmd4 \ 25 cmd5 \ 26 cmd6 \ 27 dungeon \ 28 files \ 29 generate \ 30 init1 \ 31 init2 \ 32 load \ 33 main \ 34 melee1 \ 35 melee2 \ 36 monster1 \ 37 monster2 \ 38 obj-info \ 39 object1 \ 40 object2 \ 41 randart \ 42 randname \ 43 pathfind \ 44 save \ 45 spells1 \ 46 spells2 \ 47 squelch \ 48 store \ 49 tables \ 50 ui \ 51 use-obj \ 52 util \ 53 variable \ 54 wizard1 \ 55 wizard2 \ 56 x-spell \ 57 xtra1 \ 58 xtra2 59 trunk/src/autoconf.h.in
r74 r77 4 4 #undef DEFAULT_PATH 5 5 6 /* Define to 1 if you have the `atexit' function. */7 #undef HAVE_ATEXIT8 9 6 /* Define to 1 if you have the `can_change_color' function. */ 10 7 #undef HAVE_CAN_CHANGE_COLOR 11 8 12 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */13 #undef HAVE_DOPRNT14 15 9 /* Define to 1 if you have the <fcntl.h> header file. */ 16 10 #undef HAVE_FCNTL_H 17 18 /* Define to 1 if you have the `floor' function. */19 #undef HAVE_FLOOR20 21 /* Define to 1 if you have the <fnmatch.h> header file. */22 #undef HAVE_FNMATCH_H23 24 /* Define to 1 if you have the <fts.h> header file. */25 #undef HAVE_FTS_H26 27 /* Define to 1 if you have the `gethostname' function. */28 #undef HAVE_GETHOSTNAME29 30 /* Define to 1 if you have the `getpagesize' function. */31 #undef HAVE_GETPAGESIZE32 11 33 12 /* Define to 1 if you have the <inttypes.h> header file. */ … … 36 15 /* Define to 1 if you have the <limits.h> header file. */ 37 16 #undef HAVE_LIMITS_H 38 39 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and40 to 0 otherwise. */41 #undef HAVE_MALLOC42 17 43 18 /* Define to 1 if you have the `memmove' function. */ … … 56 31 #undef HAVE_MKSTEMP 57 32 58 /* Define to 1 if you have a working `mmap' system call. */59 #undef HAVE_MMAP60 61 /* Define to 1 if you have the `modf' function. */62 #undef HAVE_MODF63 64 /* Define to 1 if you have the `munmap' function. */65 #undef HAVE_MUNMAP66 67 /* Define to 1 if you have the `pow' function. */68 #undef HAVE_POW69 70 /* Define to 1 if your system has a GNU libc compatible `realloc' function,71 and to 0 otherwise. */72 #undef HAVE_REALLOC73 74 /* Define to 1 if you have the `select' function. */75 #undef HAVE_SELECT76 77 33 /* Define to 1 if you have the `setegid' function. */ 78 34 #undef HAVE_SETEGID … … 82 38 #undef HAVE_STAT_EMPTY_STRING_BUG 83 39 84 /* Define to 1 if stdbool.h conforms to C99. */85 #undef HAVE_STDBOOL_H86 87 40 /* Define to 1 if you have the <stdint.h> header file. */ 88 41 #undef HAVE_STDINT_H … … 90 43 /* Define to 1 if you have the <stdlib.h> header file. */ 91 44 #undef HAVE_STDLIB_H 92 93 /* Define to 1 if you have the `strchr' function. */94 #undef HAVE_STRCHR95 96 /* Define to 1 if you have the `strdup' function. */97 #undef HAVE_STRDUP98 99 /* Define to 1 if you have the `strftime' function. */100 #undef HAVE_STRFTIME101 45 102 46 /* Define to 1 if you have the <strings.h> header file. */ … … 109 53 #undef HAVE_STRRCHR 110 54 111 /* Define to 1 if you have the `strstr' function. */112 #undef HAVE_STRSTR113 114 55 /* Define to 1 if you have the `strtol' function. */ 115 56 #undef HAVE_STRTOL 116 117 /* Define to 1 if you have the <sys/ioctl.h> header file. */118 #undef HAVE_SYS_IOCTL_H119 57 120 58 /* Define to 1 if you have the <sys/select.h> header file. */ … … 141 79 /* Define to 1 if you have the `usleep' function. */ 142 80 #undef HAVE_USLEEP 143 144 /* Define to 1 if you have the `vprintf' function. */145 #undef HAVE_VPRINTF146 147 /* Define to 1 if you have the <wchar.h> header file. */148 #undef HAVE_WCHAR_H149 150 /* Define to 1 if the system has the type `_Bool'. */151 #undef HAVE__BOOL152 81 153 82 /* Define to 1 if `lstat' dereferences a symlink specified with a trailing … … 224 153 #undef _UINT32_T 225 154 226 /* Define to empty if `const' does not conform to ANSI C. */227 #undef const228 229 /* Define to `__inline__' or `__inline' if that's what the C compiler230 calls it, or to nothing if 'inline' is not supported under any name. */231 #ifndef __cplusplus232 #undef inline233 #endif234 235 155 /* Define to the type of a signed integer type of width exactly 16 bits if 236 156 such a type exists and the standard includes do not define it. */ … … 241 161 #undef int32_t 242 162 243 /* Define to rpl_malloc if the replacement function should be used. */244 #undef malloc245 246 /* Define to rpl_realloc if the replacement function should be used. */247 #undef realloc248 249 /* Define to `unsigned int' if <sys/types.h> does not define. */250 #undef size_t251 252 163 /* Define to the type of an unsigned integer type of width exactly 16 bits if 253 164 such a type exists and the standard includes do not define it. */
