2009-09-28 00:26:02 +08:00
|
|
|
# Makefile for qemu target independent user files.
|
|
|
|
|
|
|
|
include ../config-host.mak
|
|
|
|
include $(SRC_PATH)/rules.mak
|
2009-12-19 23:42:34 +08:00
|
|
|
-include config.mak
|
2009-09-28 00:26:02 +08:00
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
|
2009-12-19 23:16:08 +08:00
|
|
|
# Do not take %.o from $(SRC_PATH), only %.c and %.h
|
|
|
|
# All %.o for user targets should be built with -fpie, when
|
|
|
|
# configured with --enable-user-pie, so we don't want to
|
|
|
|
# take %.o from $(SRC_PATH), since they built without -fpie
|
|
|
|
vpath %.c %.h $(SRC_PATH)
|
2009-09-28 00:26:02 +08:00
|
|
|
|
|
|
|
QEMU_CFLAGS+=-I..
|
|
|
|
|
|
|
|
obj-y =
|
|
|
|
obj-y += envlist.o path.o
|
|
|
|
obj-y += tcg-runtime.o host-utils.o
|
|
|
|
obj-y += cutils.o cache-utils.o
|
|
|
|
|
|
|
|
all: libuser.a
|
|
|
|
# Dummy command so that make thinks it has done something
|
|
|
|
@true
|
|
|
|
|
|
|
|
libuser.a: $(obj-y)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.d *.a *~
|
|
|
|
|
|
|
|
# Include automatically generated dependency files
|
|
|
|
-include $(wildcard *.d */*.d)
|