system.mk

Mon, 28 Aug 2000 12:24:32 +0200

author
tuomov
date
Mon, 28 Aug 2000 12:24:32 +0200
changeset 21
6d4282804e73
parent 16
f597c8f0bcc9
child 29
a2715cff4288
permissions
-rw-r--r--

trunk: changeset 24
Added tokz_warn

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
16
f597c8f0bcc9 trunk: changeset 19
tuomov
parents: 9
diff changeset
36 # The ANSI_SOURCE, XOPEN_SOURCE and WARN options should not be necessary,
f597c8f0bcc9 trunk: changeset 19
tuomov
parents: 9
diff changeset
37 # they're mainly for development use. So, if they cause trouble (not
f597c8f0bcc9 trunk: changeset 19
tuomov
parents: 9
diff changeset
38 # the ones that should be used on your system or the system is broken),
f597c8f0bcc9 trunk: changeset 19
tuomov
parents: 9
diff changeset
39 # just comment them out.
f597c8f0bcc9 trunk: changeset 19
tuomov
parents: 9
diff changeset
40
f597c8f0bcc9 trunk: changeset 19
tuomov
parents: 9
diff changeset
41 # libtu/ uses POSIX_SOURCE
f597c8f0bcc9 trunk: changeset 19
tuomov
parents: 9
diff changeset
42
f597c8f0bcc9 trunk: changeset 19
tuomov
parents: 9
diff changeset
43 POSIX_SOURCE=-ansi -D_POSIX_SOURCE
f597c8f0bcc9 trunk: changeset 19
tuomov
parents: 9
diff changeset
44
f597c8f0bcc9 trunk: changeset 19
tuomov
parents: 9
diff changeset
45 # and . (pwm) XOPEN_SOURCE
f597c8f0bcc9 trunk: changeset 19
tuomov
parents: 9
diff changeset
46
f597c8f0bcc9 trunk: changeset 19
tuomov
parents: 9
diff changeset
47 # This should be used for gnu libc (linux), but SA_RESTART seems to be
f597c8f0bcc9 trunk: changeset 19
tuomov
parents: 9
diff changeset
48 # broken so don't use anything.
f597c8f0bcc9 trunk: changeset 19
tuomov
parents: 9
diff changeset
49 #XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
f597c8f0bcc9 trunk: changeset 19
tuomov
parents: 9
diff changeset
50 # Some other systems.
8
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
51 #XOPEN_SOURCE=-ansi -D__EXTENSIONS__
6
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
52
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
53 # Same as '-Wall -pedantic-errors' without '-Wunused' as callbacks often
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
54 # have unused variables.
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
55 WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
56 -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized \
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
57 -Wparentheses -pedantic-errors
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
58
9
55e7f2ff6021 trunk: changeset 12
tuomov
parents: 8
diff changeset
59 CFLAGS=-g -O2 $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES)
55e7f2ff6021 trunk: changeset 12
tuomov
parents: 8
diff changeset
60 LDFLAGS=-g $(LIBS) $(EXTRA_LIBS)
8
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
61
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
62
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
63 ##
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
64 ## make depend
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
65 ##
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
66
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
67 DEPEND_FILE=.depend
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
68 MAKE_DEPEND=$(CC) -M $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) > $(DEPEND_FILE)
6
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
69
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 ## AR
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
73 ##
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
74
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
75 AR=ar
9
55e7f2ff6021 trunk: changeset 12
tuomov
parents: 8
diff changeset
76 ARFLAGS=crs
6
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
77
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
78
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
79 ##
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
80 ## Install & strip
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
81 ##
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
82
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
83 INSTALL=install -c
8
c1994196683f trunk: changeset 11
tuomov
parents: 7
diff changeset
84 # bsdinst or bsdinst.sh should do the job under IRIX. In theory.
6
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
85 #INSTALL=bsdinst -c
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
86
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
87 BIN_MODE=755
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
88 DATA_MODE=664
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
89
f73065173121 trunk: changeset 9
tuomov
parents:
diff changeset
90 STRIP=strip

mercurial