Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / SLOF / lib / libhvcall / Makefile
1 # *****************************************************************************
2 # * Copyright (c) 2004, 2008 IBM Corporation
3 # * All rights reserved.
4 # * This program and the accompanying materials
5 # * are made available under the terms of the BSD License
6 # * which accompanies this distribution, and is available at
7 # * http://www.opensource.org/licenses/bsd-license.php
8 # *
9 # * Contributors:
10 # *     IBM Corporation - initial implementation
11 # ****************************************************************************/
12
13 TOPCMNDIR ?= ../..
14
15 include $(TOPCMNDIR)/make.rules
16
17 ASFLAGS = $(FLAG) $(RELEASE) $(CPUARCHDEF) -Wa,-mregnames
18 CPPFLAGS = -I../libc/include $(CPUARCHDEF) -I$(INCLBRDDIR) \
19            -I$(INCLCMNDIR) -I$(INCLCMNDIR)/$(CPUARCH)
20 LDFLAGS = -nostdlib
21
22 TARGET = ../libhvcall.a
23
24
25 all: $(TARGET)
26
27 SRCS = brokensc1.c
28 SRCSS = hvcall.S
29
30
31 OBJS = $(SRCS:%.c=%.o) $(SRCSS:%.S=%.o)
32
33 $(TARGET): $(OBJS)
34         $(AR) -rc $@ $(OBJS)
35         $(RANLIB) $@
36
37 %.o: %.S
38         $(CC) $(CPPFLAGS) $(ASFLAGS) -c $< -o $@
39
40 clean:
41         $(RM) $(TARGET) $(OBJS)
42
43 distclean: clean
44         $(RM) Makefile.dep
45
46
47 # Rules for creating the dependency file:
48 depend:
49         $(RM) Makefile.dep
50         $(MAKE) Makefile.dep
51
52 Makefile.dep: Makefile
53         $(CC) -M $(CPPFLAGS) $(CFLAGS) $(SRCS) $(SRCSS) > Makefile.dep
54
55 # Include dependency file if available:
56 -include Makefile.dep
57