Fri, 21 Jul 2000 21:19:37 +0200
trunk: changeset 21
Added 'bool' config file data type
| 6 | 1 | ## |
| 2 | ## System settings | |
| 3 | ## | |
| 4 | ||
| 5 | ||
| 6 | ## | |
| 7 | ## Installation directory prefix | |
| 8 | ## | |
| 9 | ||
| 10 | PREFIX=/usr/local | |
| 11 | ||
| 8 | 12 | #EXTRA_INCLUDES = -I$(PREFIX)/include |
| 13 | #EXTRA_LIBS = -L$(PREFIX)/lib | |
| 6 | 14 | |
| 15 | ||
| 16 | ## | |
| 17 | ## X libraries, includes and options | |
| 18 | ## | |
| 19 | ||
| 20 | X11_PREFIX=/usr/X11R6 | |
| 21 | ||
| 22 | # SunOS/Solaris | |
| 23 | #X11_PREFIX=/usr/openwin | |
| 24 | ||
| 7 | 25 | X11_LIBS=-L$(X11_PREFIX)/lib |
| 26 | X11_INCLUDES=-I$(X11_PREFIX)/include | |
| 6 | 27 | X11_DEFINES= |
| 28 | ||
| 29 | ||
| 30 | ## | |
| 31 | ## C compiler | |
| 32 | ## | |
| 33 | ||
| 34 | CC=gcc | |
| 35 | ||
| 16 | 36 | # The ANSI_SOURCE, XOPEN_SOURCE and WARN options should not be necessary, |
| 37 | # they're mainly for development use. So, if they cause trouble (not | |
| 38 | # the ones that should be used on your system or the system is broken), | |
| 39 | # just comment them out. | |
| 40 | ||
| 41 | # libtu/ uses POSIX_SOURCE | |
| 42 | ||
| 43 | POSIX_SOURCE=-ansi -D_POSIX_SOURCE | |
| 44 | ||
| 45 | # and . (pwm) XOPEN_SOURCE | |
| 46 | ||
| 47 | # This should be used for gnu libc (linux), but SA_RESTART seems to be | |
| 48 | # broken so don't use anything. | |
| 49 | #XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED | |
| 50 | # Some other systems. | |
| 8 | 51 | #XOPEN_SOURCE=-ansi -D__EXTENSIONS__ |
| 6 | 52 | |
| 53 | # Same as '-Wall -pedantic-errors' without '-Wunused' as callbacks often | |
| 54 | # have unused variables. | |
| 55 | WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \ | |
| 56 | -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized \ | |
| 57 | -Wparentheses -pedantic-errors | |
| 58 | ||
| 9 | 59 | CFLAGS=-g -O2 $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) |
| 60 | LDFLAGS=-g $(LIBS) $(EXTRA_LIBS) | |
| 8 | 61 | |
| 62 | ||
| 63 | ## | |
| 64 | ## make depend | |
| 65 | ## | |
| 66 | ||
| 67 | DEPEND_FILE=.depend | |
| 68 | MAKE_DEPEND=$(CC) -M $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) > $(DEPEND_FILE) | |
| 6 | 69 | |
| 70 | ||
| 71 | ## | |
| 72 | ## AR | |
| 73 | ## | |
| 74 | ||
| 75 | AR=ar | |
| 9 | 76 | ARFLAGS=crs |
| 6 | 77 | |
| 78 | ||
| 79 | ## | |
| 80 | ## Install & strip | |
| 81 | ## | |
| 82 | ||
| 83 | INSTALL=install -c | |
| 8 | 84 | # bsdinst or bsdinst.sh should do the job under IRIX. In theory. |
| 6 | 85 | #INSTALL=bsdinst -c |
| 86 | ||
| 87 | BIN_MODE=755 | |
| 88 | DATA_MODE=664 | |
| 89 | ||
| 90 | STRIP=strip |