Line | |
---|
1 | XEN_ROOT=../.. |
---|
2 | include $(XEN_ROOT)/tools/Rules.mk |
---|
3 | |
---|
4 | CFLAGS += -I$(XEN_LIBXC) -I$(XEN_XENSTORE) |
---|
5 | CFLAGS += -I$(XEN_ROOT)/linux-2.6-xen-sparse/include -I$(XEN_ROOT)/tools/ioemu |
---|
6 | LDFLAGS += -L$(XEN_LIBXC) -L$(XEN_XENSTORE) |
---|
7 | |
---|
8 | .PHONY: all |
---|
9 | all: build |
---|
10 | |
---|
11 | .PHONY: build |
---|
12 | build: |
---|
13 | $(MAKE) vncfb sdlfb |
---|
14 | |
---|
15 | install: all |
---|
16 | $(INSTALL_DIR) $(DESTDIR)/usr/$(LIBDIR)/xen/bin |
---|
17 | $(INSTALL_PROG) vncfb $(DESTDIR)/usr/$(LIBDIR)/xen/bin/xen-vncfb |
---|
18 | $(INSTALL_PROG) sdlfb $(DESTDIR)/usr/$(LIBDIR)/xen/bin/xen-sdlfb |
---|
19 | |
---|
20 | sdlfb: sdlfb.o xenfb.o |
---|
21 | |
---|
22 | sdlfb.o: CFLAGS += $(shell sdl-config --cflags) |
---|
23 | sdlfb: LDLIBS += $(shell sdl-config --libs) -lxenctrl -lxenstore |
---|
24 | |
---|
25 | clean: |
---|
26 | $(RM) *.o *~ vncfb sdlfb |
---|
27 | |
---|
28 | vncfb: vncfb.o xenfb.o |
---|
29 | vncfb.o: CFLAGS += $(shell libvncserver-config --cflags) |
---|
30 | vncfb: LDLIBS += $(shell libvncserver-config --libs) -lxenctrl -lxenstore |
---|
31 | |
---|
32 | sdlfb.o xenfb.o vncfb.o: xenfb.h |
---|
Note: See
TracBrowser
for help on using the repository browser.