diff options
Diffstat (limited to 'Makefile.target')
-rw-r--r-- | Makefile.target | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Makefile.target b/Makefile.target index cdbb4dfbe..3eccd227b 100644 --- a/Makefile.target +++ b/Makefile.target @@ -1,5 +1,9 @@ +CFLAGS= +LDFLAGS= + include config.mak +LDFLAGS_BASE:=$(LDFLAGS) TARGET_BASE_ARCH:=$(TARGET_ARCH) ifeq ($(TARGET_ARCH), x86_64) TARGET_BASE_ARCH:=i386 @@ -17,9 +21,9 @@ ifdef CONFIG_USER_ONLY VPATH+=:$(SRC_PATH)/linux-user DEFINES+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ARCH) endif -CFLAGS=-Wall -O2 -g -fno-strict-aliasing +CFLAGS+=-Wall -O2 -g -fno-strict-aliasing #CFLAGS+=-Werror -LDFLAGS=-g +LDFLAGS+=-g LIBS= HELPER_CFLAGS=$(CFLAGS) DYNGEN=../dyngen$(EXESUF) @@ -323,9 +327,9 @@ ifdef CONFIG_ADLIB SOUND_HW += fmopl.o adlib.o endif AUDIODRV+= wavcapture.o -ifdef CONFIG_KVM_INC -DEFINES += -I $(CONFIG_KVM_INC) -I $(CONFIG_KVM_KERNEL_INC) -LIBS += -L $(CONFIG_KVM_LIB) -lkvm +ifdef CONFIG_KVM_KERNEL_INC +DEFINES += -I $(CONFIG_KVM_KERNEL_INC) +LIBS += -lkvm endif # SCSI layer @@ -396,7 +400,7 @@ tcp_subr.o tcp_timer.o udp.o bootp.o debug.o tftp.o VL_OBJS+=$(addprefix slirp/, $(SLIRP_OBJS)) endif -VL_LDFLAGS= +VL_LDFLAGS=$(LDFLAGS_BASE) # specific flags are needed for non soft mmu emulator ifdef CONFIG_STATIC VL_LDFLAGS+=-static |