forked from 3rdpartyrepos/p7zip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.machine
43 lines (32 loc) · 910 Bytes
/
makefile.machine
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
#
# makefile for Linux (x86, PPC, alpha ...)
#
ifeq (1,1) # In debian always include the approrpiate makefile
ifndef DEBIAN_P7ZIP_MAKEFILE
ifeq (i386,$(DEB_HOST_ARCH))
export DEBIAN_P7ZIP_MAKEFILE := makefile.linux_x86_asm_gcc_4.X
else
ifeq (amd64.64,$(DEB_HOST_ARCH).$(DEB_HOST_ARCH_BITS))
export DEBIAN_P7ZIP_MAKEFILE := makefile.linux_amd64_asm
else
export DEBIAN_P7ZIP_MAKEFILE := makefile.linux_any_cpu_gcc_4.X # default
endif
endif
endif
include $(dir $(lastword $(MAKEFILE_LIST)))/$(DEBIAN_P7ZIP_MAKEFILE)
else
OPTFLAGS=-O -s
ALLFLAGS=${OPTFLAGS} -pipe \
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
-DNDEBUG -D_REENTRANT -DENV_UNIX \
-D_7ZIP_LARGE_PAGES \
$(LOCAL_FLAGS)
CXX=g++
CC=gcc
CC_SHARED=-fPIC
LINK_SHARED=-fPIC -shared
LOCAL_LIBS=-lpthread
LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl
OBJ_CRC32=$(OBJ_CRC32_C)
OBJ_AES=
endif