aboutsummaryrefslogtreecommitdiffstats
path: root/tools/misc/Makefile
blob: c21ae540de5db64efaa38aa8df3b5948345b0edd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
CC       = gcc
CFLAGS   = -Wall -O3 
CFLAGS  += -I../../xen/include -I../../xenolinux-sparse/include -I../internal

HDRS     = $(wildcard *.h)
SRCS     = $(wildcard *.c)
OBJS     = $(patsubst %.c,%.o,$(SRCS))

TARGETS  = xen_read_console xen_cpuperf xen_refresh_dev

INSTALL  = $(TARGETS) xen-mkdevnodes xen_nat_enable xen-clone 

all: $(TARGETS)
	$(MAKE) -C miniterm	

install: all
	mkdir -p ../../../install/bin
	cp -a $(INSTALL) ../../../install/bin
	chmod 755 ../../../install/bin/xen-mkdevnodes
	chmod 755 ../../../install/bin/xen-clone
	$(MAKE) -C miniterm install

clean:
	$(RM) *.o $(TARGETS)
	$(MAKE) -C miniterm clean	

%: %.c $(HDRS) Makefile
	$(CC) $(CFLAGS) -o $@ $<