| File: gar.conf.mk | |
|---|---|
| base-0 | patch-1 |
| Line 10 | Line 10 |
| # default data) of the system will remain in bbc.gar.mk # (bbc.port.mk) | # default data) of the system will remain in bbc.gar.mk # (bbc.port.mk) |
| # If the color codes are interfering with your terminal, consider # commenting this next line out. COLOR_GAR ?= yes | |
| # Setting this variable will cause the results of your builds to # be cleaned out after being installed. Uncomment only if you # desire this behavior! | # Setting this variable will cause the results of your builds to # be cleaned out after being installed. Uncomment only if you # desire this behavior! |
| Line 74 | Line 79 |
| #main_CPPFLAGS += -nostdinc #main_CFLAGS += -nostdinc -nostdlib #main_LDFLAGS += -nostdlib | #main_CPPFLAGS += -nostdinc #main_CFLAGS += -nostdinc -nostdlib #main_LDFLAGS += -nostdlib |
| main_CPPFLAGS += -I$(DESTDIR)$(includedir) main_CFLAGS += -Os -I$(DESTDIR)$(includedir) -L$(DESTDIR)$(libdir) #main_CXXFLAGS += -Os -I$(DESTDIR)$(includedir) -L$(DESTDIR)$(libdir) main_LDFLAGS += -L$(DESTDIR)$(libdir) main_CPPFLAGS += -I$(GCC_INCLUDEDIR) -I$(CROSS_GCC_INCLUDEDIR) main_CFLAGS += -I$(GCC_INCLUDEDIR) -I$(CROSS_GCC_INCLUDEDIR) -L$(GCC_LIBDIR) -L$(CROSS_GCC_LIBDIR) #main_CXXFLAGS += -I$(GCC_INCLUDEDIR) -I$(CROSS_GCC_INCLUDEDIR) -L$(GCC_LIBDIR) -L$(CROSS_GCC_LIBDIR) main_LDFLAGS += -L$(GCC_LIBDIR) -L$(CROSS_GCC_LIBDIR) | main_CPPFLAGS += $(foreach DESTIMG,main,-I$(DESTDIR)$(includedir)) main_CFLAGS += $(foreach DESTIMG,main,-Os -I$(DESTDIR)$(includedir) -L$(DESTDIR)$(libdir)) #main_CXXFLAGS += $(foreach DESTIMG,main,-Os -I$(DESTDIR)$(includedir) -L$(DESTDIR)$(libdir)) main_LDFLAGS += $(foreach DESTIMG,main,-L$(DESTDIR)$(libdir)) main_CPPFLAGS += $(foreach DESTIMG,main,-I$(GCC_INCLUDEDIR) -I$(CROSS_GCC_INCLUDEDIR)) main_CFLAGS += $(foreach DESTIMG,main,-I$(GCC_INCLUDEDIR) -I$(CROSS_GCC_INCLUDEDIR) -L$(GCC_LIBDIR) -L$(CROSS_GCC_LIBDIR)) #main_CXXFLAGS += $(foreach DESTIMG,main,-I$(GCC_INCLUDEDIR) -I$(CROSS_GCC_INCLUDEDIR) -L$(GCC_LIBDIR) -L$(CROSS_GCC_LIBDIR)) main_LDFLAGS += $(foreach DESTIMG,main,-L$(GCC_LIBDIR) -L$(CROSS_GCC_LIBDIR)) |
| # allow us to link to libraries we installed | # allow us to link to libraries we installed |
| build_CPPFLAGS += -I$(DESTDIR)$(includedir) build_CFLAGS += -Os -I$(DESTDIR)$(includedir) -L$(DESTDIR)$(libdir) #build_CXXFLAGS += -Os -I$(DESTDIR)$(includedir) -L$(DESTDIR)$(libdir) build_LDFLAGS += -L$(DESTDIR)$(libdir) | build_CPPFLAGS += $(foreach DESTIMG,build,-I$(DESTDIR)$(includedir)) build_CFLAGS += $(foreach DESTIMG,build,-Os -I$(DESTDIR)$(includedir) -L$(DESTDIR)$(libdir)) #build_CXXFLAGS += $(foreach DESTIMG,build,-Os -I$(DESTDIR)$(includedir) -L$(DESTDIR)$(libdir)) build_LDFLAGS += $(foreach DESTIMG,build,-L$(DESTDIR)$(libdir)) |
| # Default main_CC to gcc, $(DESTIMG)_CC to main_CC and set CC based on $(DESTIMG) | # Default main_CC to gcc, $(DESTIMG)_CC to main_CC and set CC based on $(DESTIMG) |
| main_CC ?= $(GARHOST)-gcc | main_CC ?= gcc |
| main_CXX ?= g++ | main_CXX ?= g++ |
| main_LD ?= $(GARHOST)-ld | main_LD ?= ld main_RANLIB ?= ranlib main_CPP ?= cpp main_AS ?= as main_AR ?= ar |
| build_CC ?= gcc build_CXX ?= g++ build_LD ?= ld | build_CC ?= gcc build_CXX ?= g++ build_LD ?= ld |
| build_RANLIB ?= ranlib build_CPP ?= cpp build_AS ?= as build_AR ?= ar | |
| # GARCH and GARHOST for main. Override these for cross-compilation | # GARCH and GARHOST for main. Override these for cross-compilation |
| main_GARCH ?= i386 main_GARHOST ?= i386-pc-linux-gnu | main_GARCH ?= $(shell arch) main_GARHOST ?= $(shell gcc -dumpmachine) |
| # GARCH and GARHOST for build. Do not change these. build_GARCH := $(shell arch) build_GARHOST := $(GARBUILD) | # GARCH and GARHOST for build. Do not change these. build_GARCH := $(shell arch) build_GARHOST := $(GARBUILD) |
| # Don't build these packages as in the build image | # Exclude specific packages as dependencies in specific DESTIMGs main_NODEPEND = devel/glibc devel/gcc-primitives lib/libstdc++ |
| build_NODEPEND = devel/glibc devel/gcc-primitives # This is for foo-config chaos | build_NODEPEND = devel/glibc devel/gcc-primitives # This is for foo-config chaos |
| Line 117 | Line 131 |
| STAGE_EXPORTS += sysconfdir sharedstatedir localstatedir libdir infodir lispdir STAGE_EXPORTS += includedir mandir docdir sourcedir STAGE_EXPORTS += CPPFLAGS CFLAGS LDFLAGS | STAGE_EXPORTS += sysconfdir sharedstatedir localstatedir libdir infodir lispdir STAGE_EXPORTS += includedir mandir docdir sourcedir STAGE_EXPORTS += CPPFLAGS CFLAGS LDFLAGS |
| STAGE_EXPORTS += CC CXX | STAGE_EXPORTS += CC CXX LD RANLIB AS AR #CPP |
| CONFIGURE_ENV += $(foreach TTT,$(STAGE_EXPORTS),$(TTT)="$($(TTT))") BUILD_ENV += $(foreach TTT,$(STAGE_EXPORTS),$(TTT)="$($(TTT))") | CONFIGURE_ENV += $(foreach TTT,$(STAGE_EXPORTS),$(TTT)="$($(TTT))") BUILD_ENV += $(foreach TTT,$(STAGE_EXPORTS),$(TTT)="$($(TTT))") |