forked from urkle/libuc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMake_Setup.inc
64 lines (52 loc) · 1.3 KB
/
Make_Setup.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Contents of this file are not meant to be changed by the user.
# Instead, change the variables defined in config.inc,
# Or run the provided configure script to set the appropriate
# variables in the environment.
include config.inc
ifeq ($(CPU),CORE2)
CPUFLAGS= -mtune=core2 -march=core2 -msse3 -mfpmath=sse -m64
endif
ifeq ($(CPU),PRESCOTT)
CPUFLAGS= -mtune=prescott -march=prescott -msse3 -mfpmath=sse -m32
endif
ifeq ($(CPU),PENTIUMPRO)
CPUFLAGS= -mtune=pentiumpro -march=pentiumpro -m32
endif
ifeq ($(CPU),G5)
CPUGLAGS= -march=G5 -mtune=G5 -mpowerpc64 -mpowerpc-gpopt -faltivec
endif
ifeq ($(CPU),G4)
CPUFLAGS= -march=G4 -mtune=G4 -faltivec
endif
#Debugging/Optimization
ifeq ($(DEBUG),YES)
DFLAGS=-g
else
DFLAGS=-O3
endif
#Platform defines
ifeq ($(OPSYS),Darwin)
OSFLAGS = -fast
endif
#Optional Library Defines
ifeq ($(MYSQL),YES)
COPTFLAGS += $(MYSQL_CFLAGS)
LOPTFLAGS += $(MYSQL_LIBS)
endif
#Optional Library Defines
ifeq ($(CURL),YES)
COPTFLAGS += $(CURL_CFLAGS)
LOPTFLAGS += $(CURL_LIBS)
endif
#Optional Library Defines
ifeq ($(SQLITE),YES)
COPTFLAGS += $(SQLITE_CFLAGS)
LOPTFLAGS += $(SQLITE_LIBS)
endif
#Compilier defines
CC = gcc
CXX = g++
CFLAGS = -Wall $(CPUFLAGS) $(OSFLAGS) $(DFLAGS) $(COPTFLAGS)
LINKXX = $(CXX) $(CPUFLAGS) $(OSFLAGS) $(DFLAGS) $(LOPTFLAGS)
CXXFLAGS = $(CFLAGS)
STATICLIB=ar -r