~ubuntu-branches/ubuntu/utopic/xen/utopic

« back to all changes in this revision

Viewing changes to tools/misc/nsplitd/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2010-05-06 15:47:38 UTC
  • mto: (1.3.1) (15.1.1 sid) (4.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20100506154738-agoz0rlafrh1fnq7
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
XEN_ROOT := ../../..
 
2
include $(XEN_ROOT)/tools/Rules.mk
 
3
 
 
4
CFILES = $(wildcard *.c)
 
5
 
 
6
HDRS     = $(wildcard *.h)
 
7
OBJS     = $(patsubst %.c,%.o,$(wildcard *.c))
 
8
 
 
9
TARGET   = nsplitd
 
10
 
 
11
.PHONY: all
 
12
all: $(TARGET)
 
13
 
 
14
.PHONY: install
 
15
install: all
 
16
 
 
17
.PHONY: clean
 
18
clean:
 
19
        $(RM) *.o $(TARGET) *~
 
20
 
 
21
$(TARGET): $(OBJS)
 
22
        $(HOSTCC) $(HOSTCFLAGS) -o $@ $^
 
23
 
 
24
%.o: %.c $(HDRS) Makefile
 
25
        $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<