Sat, 20 May 2000 17:43:36 +0200
trunk: changeset 14
Added dlist.h for doubly linked lists.
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 | ||
36 | ANSI_SOURCE=-ansi | |
8 | 37 | # gnu libc |
9 | 38 | XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED |
8 | 39 | # most other systems |
40 | #XOPEN_SOURCE=-ansi -D__EXTENSIONS__ | |
6 | 41 | |
42 | # Same as '-Wall -pedantic-errors' without '-Wunused' as callbacks often | |
43 | # have unused variables. | |
44 | WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \ | |
45 | -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized \ | |
46 | -Wparentheses -pedantic-errors | |
47 | ||
9 | 48 | CFLAGS=-g -O2 $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) |
49 | LDFLAGS=-g $(LIBS) $(EXTRA_LIBS) | |
8 | 50 | |
51 | ||
52 | ## | |
53 | ## make depend | |
54 | ## | |
55 | ||
56 | DEPEND_FILE=.depend | |
57 | MAKE_DEPEND=$(CC) -M $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) > $(DEPEND_FILE) | |
6 | 58 | |
59 | ||
60 | ## | |
61 | ## AR | |
62 | ## | |
63 | ||
64 | AR=ar | |
9 | 65 | ARFLAGS=crs |
6 | 66 | |
67 | ||
68 | ## | |
69 | ## Install & strip | |
70 | ## | |
71 | ||
72 | INSTALL=install -c | |
8 | 73 | # bsdinst or bsdinst.sh should do the job under IRIX. In theory. |
6 | 74 | #INSTALL=bsdinst -c |
75 | ||
76 | BIN_MODE=755 | |
77 | DATA_MODE=664 | |
78 | ||
79 | STRIP=strip |