Line | |
---|
1 | CC = cc
|
---|
2 | CXX = CC
|
---|
3 |
|
---|
4 | CPP = yes
|
---|
5 | THREADS=yes
|
---|
6 | MORECONNS=yes
|
---|
7 | SHAREABLE=
|
---|
8 | 32BITS=no
|
---|
9 |
|
---|
10 | IDIR = ./dim
|
---|
11 |
|
---|
12 | EXTRALIBS =
|
---|
13 | FLAGS =
|
---|
14 |
|
---|
15 | CFLAGS = $(FLAGS) -g -I$(IDIR)
|
---|
16 | EXCFLAGS = $(FLAGS) -g -I$(IDIR)
|
---|
17 | LIBFLAGS =
|
---|
18 | X64 = no
|
---|
19 |
|
---|
20 | ifeq ($(BITS32),yes)
|
---|
21 | 32BITS = yes
|
---|
22 | endif
|
---|
23 |
|
---|
24 | ifeq ($(32BITS),yes)
|
---|
25 | CFLAGS += -m32
|
---|
26 | LIBFLAGS += -m32
|
---|
27 | EXCFLAGS += -m32
|
---|
28 | X64 = no
|
---|
29 | else
|
---|
30 | X64 = yes
|
---|
31 | endif
|
---|
32 |
|
---|
33 | ifeq ($(OS),SunOS)
|
---|
34 | CFLAGS += -DMIPSEB -DPROTOCOL=1 -Dsunos
|
---|
35 | endif
|
---|
36 | ifeq ($(OS),Solaris)
|
---|
37 | ifeq ($(THREADS),yes)
|
---|
38 | CFLAGS += -mt
|
---|
39 | EXCFLAGS += -mt
|
---|
40 | EXTRALIBS += -lposix4
|
---|
41 | endif
|
---|
42 | SHAREABLE = no
|
---|
43 | LIBFLAGS += -G
|
---|
44 | EXTRALIBS += -lsocket -lnsl
|
---|
45 | CFLAGS += -DMIPSEB -DPROTOCOL=1 -Dsolaris
|
---|
46 | RANLIB = echo
|
---|
47 | endif
|
---|
48 | ifeq ($(OS),HP-UX)
|
---|
49 | THREADS = no
|
---|
50 | SHAREABLE = no
|
---|
51 | CFLAGS += -DMIPSEB -DPROTOCOL=1 -Dhpux
|
---|
52 | endif
|
---|
53 | ifeq ($(OS),OSF1)
|
---|
54 | THREADS = no
|
---|
55 | SHAREABLE = no
|
---|
56 | CFLAGS += -DMIPSEL -DPROTOCOL=1 -Dosf
|
---|
57 | endif
|
---|
58 | ifeq ($(OS),AIX)
|
---|
59 | THREADS = no
|
---|
60 | SHAREABLE = no
|
---|
61 | CFLAGS += -DMIPSEB -DPROTOCOL=1 -Dunix -D_BSD -Daix
|
---|
62 | endif
|
---|
63 | ifeq ($(OS),LynxOS)
|
---|
64 | SHAREABLE = no
|
---|
65 | ifeq ($(ARCH),RAID)
|
---|
66 | CFLAGS += -I/usr/include/bsd -I/usr/include/posix -DMIPSEB -DPROTOCOL=1 -Dunix -DLYNXOS -DRAID
|
---|
67 | EXTRALIBS += -L/usr/posix/usr/lib -lbsd
|
---|
68 | else
|
---|
69 | ifeq ($(ARCH),INTEL)
|
---|
70 | CC = gcc
|
---|
71 | CXX = g++
|
---|
72 | CFLAGS += -DMIPSEL -DPROTOCOL=1 -Dunix -DLYNXOS -mthreads
|
---|
73 | EXCFLAGS += -mthreads
|
---|
74 | EXTRALIBS += -lbsd
|
---|
75 | else
|
---|
76 | CC = gcc
|
---|
77 | CXX = g++
|
---|
78 | # May need to add -U__Lynx__ flag for LynxOS 2.5.1 (M68040)
|
---|
79 | CFLAGS += -DMIPSEB -DPROTOCOL=1 -Dunix -DLYNXOS -mthreads
|
---|
80 | EXCFLAGS += -mthreads
|
---|
81 | EXTRALIBS += -lbsd
|
---|
82 | endif
|
---|
83 | endif
|
---|
84 | endif
|
---|
85 | ifeq ($(OS),Linux)
|
---|
86 | CC = gcc
|
---|
87 | CXX = g++
|
---|
88 | ifeq ($(ARCH),PPC)
|
---|
89 | CFLAGS += -Wall -DMIPSEB -DPROTOCOL=1 -Dunix -Dlinux -DNOMORECONNS -fPIC
|
---|
90 | else
|
---|
91 | CFLAGS += -Wall -Wextra -DMIPSEL -DPROTOCOL=1 -Dunix -Dlinux -fPIC
|
---|
92 | EXCFLAGS += -Wall -Wextra
|
---|
93 | endif
|
---|
94 | ifeq ($(MORECONNS),no)
|
---|
95 | CFLAGS += -DNOMORECONNS
|
---|
96 | endif
|
---|
97 | ifneq ($(SHAREABLE),no)
|
---|
98 | SHAREABLE = yes
|
---|
99 | LIBFLAGS += -shared
|
---|
100 | endif
|
---|
101 | endif
|
---|
102 | ifeq ($(OS),Darwin)
|
---|
103 | CC = gcc
|
---|
104 | CXX = g++
|
---|
105 | SHAREABLE = no
|
---|
106 | CFLAGS += -DMIPSEB -DPROTOCOL=1 -Dunix -Dlinux -Ddarwin -DNOMORECONNS -fPIC
|
---|
107 | endif
|
---|
108 |
|
---|
109 | ifneq ($(THREADS),yes)
|
---|
110 | CFLAGS += -DNOTHREADS
|
---|
111 | else
|
---|
112 | ifneq ($(OS), LynxOS)
|
---|
113 | EXTRALIBS += -lpthread
|
---|
114 | endif
|
---|
115 | endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.