File: Makefile.Linux

package info (click to toggle)
euslisp 9.32%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 55,268 kB
  • sloc: ansic: 41,693; lisp: 3,339; makefile: 286; sh: 238; asm: 138; python: 53
file content (33 lines) | stat: -rw-r--r-- 571 bytes parent folder | download | duplicates (2)
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
CC = c++
CFLAGS = -O2 -DLinux -DGCC -I$(EUSDIR)/include
LDFLAGS =
OBJOPT = -o
OUTOPT = -o
LD = c++
SOFLAGS = -shared
EXELD = c++
EXESFX =
LSFX = so
LPFX = lib

ifneq (,$(findstring 64,$(shell gcc -dumpmachine)))
 CFLAGS+=-falign-functions=8
else
 CFLAGS+=-falign-functions=4
endif

ifneq ($(shell gcc -dumpmachine | egrep "^(arm|aarch)"),)
  LDFLAGS+=-Wl,-z,execstack
  CFLAGS+=-DARM -fPIC
endif
ifneq ($(shell gcc -dumpmachine | grep "^x86_64"),)
  CFLAGS+=-fPIC
endif

ifneq ($(shell gcc -dumpmachine | grep "i.*86-linux"),)
CC += -m32
LD += -m32
EXELD += -m32
endif