mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Allow target architecture to be specified by specifying ARCH variable to root Makefile (e.g, make ARCH=x86_32).
23 lines
447 B
Makefile
23 lines
447 B
Makefile
XEN_ROOT=../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
CC = gcc
|
|
CFLAGS += -Wall -Werror -O3 -fno-strict-aliasing
|
|
|
|
CFLAGS += -I $(XEN_XC)
|
|
CFLAGS += -I $(XEN_LIBXC)
|
|
CFLAGS += -I $(XEN_LIBXUTIL)
|
|
|
|
HDRS = $(wildcard *.h)
|
|
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
|
|
|
|
BIN = minixend
|
|
|
|
all: $(BIN)
|
|
|
|
clean:
|
|
$(RM) *.a *.so *.o *.rpm $(BIN)
|
|
|
|
$(BIN): $(OBJS)
|
|
$(CC) $(CFLAGS) $^ -o $@ -L$(XEN_LIBXC) -L$(XEN_LIBXUTIL) -lxc -lxutil -lpthread
|