Ale*_*lds 18 architecture gcc makefile powerpc
我有一个makefile透明的Linux(x86_64)和OS X Intel(x86_64).这使用64位特定GCC选项.
有没有办法调整makefile,以便我可以构建32位和64位OS X PPC(ppc,ppc64),而无需维护单独的,特定于arch的makefile - 可能类似于预处理器指令,可以确定建筑前的建筑?
dan*_*ncl 20
ARCH := $(shell getconf LONG_BIT)
CPP_FLAGS_32 := -D32_BIT ... Some 32 specific compiler flags ...
CPP_FLAGS_64 := -D64_BIT
CPP_FLAGS := $(CPP_FLAGS_$(ARCH)) ... all the other flags ...
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
22109 次 |
| 最近记录: |