Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / SLOF / lib / libe1k / Makefile
1 # *****************************************************************************
2 # * Copyright (c) 2004, 2008, 2013 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 CPPFLAGS = -I../libc/include $(CPUARCHDEF) -I$(INCLBRDDIR) \
18            -I$(INCLCMNDIR) -I$(INCLCMNDIR)/$(CPUARCH)
19
20 LDFLAGS = -nostdlib
21
22 TARGET = ../libe1k.a
23
24
25 all: $(TARGET) Makefile.dep
26
27 SRCS =  e1k.c
28
29 OBJS = $(SRCS:%.c=%.o)
30
31 $(TARGET): $(OBJS)
32         $(AR) -rc $@ $(OBJS)
33         $(RANLIB) $@
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) -M $(CPPFLAGS) $(CFLAGS) $(SRCS) $(SRCSS) > Makefile.dep
49
50 # Include dependency file if available:
51 -include Makefile.dep