]>
Commit | Line | Data |
---|---|---|
add16157 BS |
1 | # Makefile for qemu target independent user files. |
2 | ||
3 | include ../config-host.mak | |
4 | include $(SRC_PATH)/rules.mak | |
58faa1a6 | 5 | -include config.mak |
add16157 BS |
6 | |
7 | .PHONY: all | |
8 | ||
299060a0 KS |
9 | # Do not take %.o from $(SRC_PATH), only %.c and %.h |
10 | # All %.o for user targets should be built with -fpie, when | |
11 | # configured with --enable-user-pie, so we don't want to | |
12 | # take %.o from $(SRC_PATH), since they built without -fpie | |
13 | vpath %.c %.h $(SRC_PATH) | |
add16157 BS |
14 | |
15 | QEMU_CFLAGS+=-I.. | |
16 | ||
17 | obj-y = | |
18 | obj-y += envlist.o path.o | |
19 | obj-y += tcg-runtime.o host-utils.o | |
20 | obj-y += cutils.o cache-utils.o | |
21 | ||
22 | all: libuser.a | |
23 | # Dummy command so that make thinks it has done something | |
24 | @true | |
25 | ||
26 | libuser.a: $(obj-y) | |
27 | ||
28 | clean: | |
29 | rm -f *.o *.d *.a *~ | |
30 | ||
31 | # Include automatically generated dependency files | |
32 | -include $(wildcard *.d */*.d) |