ia64/xen-unstable

changeset 1089:b2a4ceebb019

bitkeeper revision 1.723 (402c9d32Wi_CDhKbGEWsHmH2qb2VfQ)

fix makefile for nsplitd
author ach61@labyrinth.cl.cam.ac.uk
date Fri Feb 13 09:47:30 2004 +0000 (2004-02-13)
parents 3f8465dd852b
children e40ed5d51284
files tools/Makefile tools/nsplitd/Makefile
line diff
     1.1 --- a/tools/Makefile	Fri Feb 13 09:03:01 2004 +0000
     1.2 +++ b/tools/Makefile	Fri Feb 13 09:47:30 2004 +0000
     1.3 @@ -40,4 +40,5 @@ clean:
     1.4  	$(MAKE) -C xc clean
     1.5  	$(MAKE) -C misc clean
     1.6  	$(MAKE) -C examples clean
     1.7 +	$(MAKE) -C nsplitd clean
     1.8  
     2.1 --- a/tools/nsplitd/Makefile	Fri Feb 13 09:03:01 2004 +0000
     2.2 +++ b/tools/nsplitd/Makefile	Fri Feb 13 09:47:30 2004 +0000
     2.3 @@ -1,11 +1,25 @@
     2.4 -ROOT	= ..
     2.5  
     2.6 +CC       = gcc
     2.7 +CFLAGS  = -Wall -g -O3
     2.8  CFILES	= $(wildcard *.c)
     2.9  
    2.10 +HDRS     = $(wildcard *.h)
    2.11 +OBJS     = $(patsubst %.c,%.o,$(wildcard *.c))
    2.12 +
    2.13  INSTALL_BINS := nsplitd
    2.14  
    2.15 -include $(ROOT)/mk/rules.mk
    2.16 +all: nsplitd
    2.17  
    2.18  nsplitd: $(OBJS)
    2.19  	$(CC) $(CFLAGS) -o nsplitd $(OBJS)
    2.20  
    2.21 +install: all
    2.22 +
    2.23 +dist: all
    2.24 +
    2.25 +clean:
    2.26 +	$(RM) *.o $(INSTALL_BINS)
    2.27 +
    2.28 +
    2.29 +%.o: %.c $(HDRS) Makefile
    2.30 +	$(CC) $(CFLAGS) -c -o $@ $<