Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / SLOF / lib / libnvram / 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 SRCS = nvram.c envvar.c
14
15 TOPCMNDIR ?= ../..
16
17 include $(TOPCMNDIR)/make.rules
18
19 ASFLAGS = $(FLAG) $(RELEASE) $(CPUARCHDEF) -Wa,-mregnames
20 CPPFLAGS = -I../libc/include $(CPUARCHDEF) $(FLAG) \
21            -I$(INCLBRDDIR) -I$(INCLCMNDIR)/$(CPUARCH) -I. -I../../include
22 LDFLAGS = -nostdlib
23
24 TARGET = ../libnvram.a
25
26 all: $(TARGET)
27
28 OBJS = $(SRCS:%.c=%.o)
29
30 $(TARGET): $(OBJS)
31         $(AR) -rc $@ $(OBJS)
32         $(RANLIB) $@
33
34
35 clean:
36         $(RM) $(TARGET) $(OBJS)
37
38 distclean: clean
39         $(RM) Makefile.dep
40
41
42 # Rules for creating the dependency file:
43 depend:
44         $(RM) Makefile.dep
45         $(MAKE) Makefile.dep
46
47 Makefile.dep: Makefile
48         $(CC) -MM $(CPPFLAGS) $(CFLAGS) $(SRCS) > Makefile.dep
49
50
51 # Include dependency file if available:
52 -include Makefile.dep
53