diff options
author | midipix <writeonce@midipix.org> | 2016-10-29 13:58:33 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-10-31 14:57:14 -0400 |
commit | 8be3778f436d9e60d9e33bc7bbd07a1453ecd1f6 (patch) | |
tree | 9a521176bbe2505810f895b4ef6be15922585c24 /sysinfo/compiler/gcc.mk | |
parent | 5c577bdd1f6ecc2b76d125b5af69177467c8d2f3 (diff) | |
download | bfirm-8be3778f436d9e60d9e33bc7bbd07a1453ecd1f6.tar.bz2 bfirm-8be3778f436d9e60d9e33bc7bbd07a1453ecd1f6.tar.xz |
build system: created skeleton.
Diffstat (limited to 'sysinfo/compiler/gcc.mk')
-rw-r--r-- | sysinfo/compiler/gcc.mk | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sysinfo/compiler/gcc.mk b/sysinfo/compiler/gcc.mk new file mode 100644 index 0000000..d14d8dc --- /dev/null +++ b/sysinfo/compiler/gcc.mk @@ -0,0 +1,24 @@ +ifeq ($(USER_CC)x,x) + ifeq ($(CROSS_COMPILE)x,x) + CC = $(CROSS_COMPILE)$(NATIVE_CC) + else + CC = $(CROSS_COMPILE)gcc + endif +else + CC = $(USER_CC) +endif + +ifeq ($(USER_CPP)x,x) + CPP = $(CROSS_COMPILE)cpp +else + CPP = $(USER_CPP) +endif + +ifeq ($(USER_CXX)x,x) + CXX = $(CROSS_COMPILE)c++ +else + CXX = $(USER_CXX) +endif + + +CFLAGS_PIC = -fPIC |