source: trunk/FACT++/dim_v19r15/makefile_common@ 10183

Last change on this file since 10183 was 10183, checked in by tbretz, 14 years ago
New import.
File size: 2.2 KB
Line 
1CC = cc
2CXX = CC
3
4CPP = yes
5THREADS=yes
6MORECONNS=yes
7SHAREABLE=
832BITS=no
9
10IDIR = ./dim
11
12EXTRALIBS =
13FLAGS =
14
15CFLAGS = $(FLAGS) -g -I$(IDIR)
16EXCFLAGS = $(FLAGS) -g -I$(IDIR)
17LIBFLAGS =
18X64 = no
19
20ifeq ($(BITS32),yes)
21 32BITS = yes
22endif
23
24ifeq ($(32BITS),yes)
25 CFLAGS += -m32
26 LIBFLAGS += -m32
27 EXCFLAGS += -m32
28 X64 = no
29else
30 X64 = yes
31endif
32
33ifeq ($(OS),SunOS)
34 CFLAGS += -DMIPSEB -DPROTOCOL=1 -Dsunos
35endif
36ifeq ($(OS),Solaris)
37ifeq ($(THREADS),yes)
38 CFLAGS += -mt
39 EXCFLAGS += -mt
40 EXTRALIBS += -lposix4
41endif
42 SHAREABLE = no
43 LIBFLAGS += -G
44 EXTRALIBS += -lsocket -lnsl
45 CFLAGS += -DMIPSEB -DPROTOCOL=1 -Dsolaris
46 RANLIB = echo
47endif
48ifeq ($(OS),HP-UX)
49 THREADS = no
50 SHAREABLE = no
51 CFLAGS += -DMIPSEB -DPROTOCOL=1 -Dhpux
52endif
53ifeq ($(OS),OSF1)
54 THREADS = no
55 SHAREABLE = no
56 CFLAGS += -DMIPSEL -DPROTOCOL=1 -Dosf
57endif
58ifeq ($(OS),AIX)
59 THREADS = no
60 SHAREABLE = no
61 CFLAGS += -DMIPSEB -DPROTOCOL=1 -Dunix -D_BSD -Daix
62endif
63ifeq ($(OS),LynxOS)
64 SHAREABLE = no
65ifeq ($(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
68else
69ifeq ($(ARCH),INTEL)
70 CC = gcc
71 CXX = g++
72 CFLAGS += -DMIPSEL -DPROTOCOL=1 -Dunix -DLYNXOS -mthreads
73 EXCFLAGS += -mthreads
74 EXTRALIBS += -lbsd
75else
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
82endif
83endif
84endif
85ifeq ($(OS),Linux)
86 CC = gcc
87 CXX = g++
88ifeq ($(ARCH),PPC)
89 CFLAGS += -Wall -DMIPSEB -DPROTOCOL=1 -Dunix -Dlinux -DNOMORECONNS -fPIC
90else
91 CFLAGS += -Wall -Wextra -DMIPSEL -DPROTOCOL=1 -Dunix -Dlinux -fPIC
92 EXCFLAGS += -Wall -Wextra
93endif
94ifeq ($(MORECONNS),no)
95 CFLAGS += -DNOMORECONNS
96endif
97ifneq ($(SHAREABLE),no)
98 SHAREABLE = yes
99 LIBFLAGS += -shared
100endif
101endif
102ifeq ($(OS),Darwin)
103 CC = gcc
104 CXX = g++
105 SHAREABLE = no
106 CFLAGS += -DMIPSEB -DPROTOCOL=1 -Dunix -Dlinux -Ddarwin -DNOMORECONNS -fPIC
107endif
108
109ifneq ($(THREADS),yes)
110 CFLAGS += -DNOTHREADS
111else
112ifneq ($(OS), LynxOS)
113 EXTRALIBS += -lpthread
114endif
115endif
Note: See TracBrowser for help on using the repository browser.