system.mk

Sat, 20 May 2000 17:43:36 +0200

author
tuomov
date
Sat, 20 May 2000 17:43:36 +0200
changeset 11
3ea4e7930c5b
parent 9
55e7f2ff6021
child 16
f597c8f0bcc9
permissions
-rw-r--r--

trunk: changeset 14
Added dlist.h for doubly linked lists.

6
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
1 ##
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
2 ## System settings
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
3 ##
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
4
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
5
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
6 ##
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
7 ## Installation directory prefix
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
8 ##
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
9
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
10 PREFIX=/usr/local
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
11
8
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
12 #EXTRA_INCLUDES = -I$(PREFIX)/include
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
13 #EXTRA_LIBS = -L$(PREFIX)/lib
6
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
14
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
15
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
16 ##
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
17 ## X libraries, includes and options
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
18 ##
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
19
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
20 X11_PREFIX=/usr/X11R6
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
21
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
22 # SunOS/Solaris
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
23 #X11_PREFIX=/usr/openwin
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
24
7
6b608d438597 trunk: changeset 10
tuomov
parents: 6
diff changeset
25 X11_LIBS=-L$(X11_PREFIX)/lib
6b608d438597 trunk: changeset 10
tuomov
parents: 6
diff changeset
26 X11_INCLUDES=-I$(X11_PREFIX)/include
6
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
27 X11_DEFINES=
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
28
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
29
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
30 ##
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
31 ## C compiler
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
32 ##
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
33
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
34 CC=gcc
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
35
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
36 ANSI_SOURCE=-ansi
8
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
37 # gnu libc
9
55e7f2ff6021 trunk: changeset 12
tuomov
parents: 8
diff changeset
38 XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
8
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
39 # most other systems
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
40 #XOPEN_SOURCE=-ansi -D__EXTENSIONS__
6
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
41
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
42 # Same as '-Wall -pedantic-errors' without '-Wunused' as callbacks often
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
43 # have unused variables.
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
44 WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
45 -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized \
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
46 -Wparentheses -pedantic-errors
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
47
9
55e7f2ff6021 trunk: changeset 12
tuomov
parents: 8
diff changeset
48 CFLAGS=-g -O2 $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES)
55e7f2ff6021 trunk: changeset 12
tuomov
parents: 8
diff changeset
49 LDFLAGS=-g $(LIBS) $(EXTRA_LIBS)
8
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
50
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
51
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
52 ##
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
53 ## make depend
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
54 ##
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
55
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
56 DEPEND_FILE=.depend
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
57 MAKE_DEPEND=$(CC) -M $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) > $(DEPEND_FILE)
6
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
58
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
59
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
60 ##
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
61 ## AR
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
62 ##
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
63
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
64 AR=ar
9
55e7f2ff6021 trunk: changeset 12
tuomov
parents: 8
diff changeset
65 ARFLAGS=crs
6
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
66
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
67
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
68 ##
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
69 ## Install & strip
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
70 ##
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
71
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
72 INSTALL=install -c
8
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
73 # bsdinst or bsdinst.sh should do the job under IRIX. In theory.
6
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
74 #INSTALL=bsdinst -c
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
75
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
76 BIN_MODE=755
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
77 DATA_MODE=664
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
78
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
79 STRIP=strip

mercurial