|
|
1.1 root 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: ASFLAGS = $(FLAG) $(RELEASE) $(CPUARCHDEF) -Wa,-mregnames
18: CPPFLAGS = -I../libc/include $(CPUARCHDEF) $(FLAG) \
19: -I$(INCLBRDDIR) -I$(INCLCMNDIR)/$(CPUARCH) -I. -I../../include
20: LDFLAGS = -nostdlib
21:
22: TARGET = ../libnvram.a
23:
24: all: $(TARGET)
25:
26: OBJS = $(SRCS:%.c=%.o)
27:
28: $(TARGET): $(OBJS)
29: $(AR) -rc $@ $(OBJS)
30: $(RANLIB) $@
31:
32:
33: clean:
34: $(RM) $(TARGET) $(OBJS)
35:
36: distclean: clean
37: $(RM) Makefile.dep
38:
39:
40: # Rules for creating the dependency file:
41: depend:
42: $(RM) Makefile.dep
43: $(MAKE) Makefile.dep
44:
45: Makefile.dep: Makefile
46:
47:
48: # Include dependency file if available:
49: -include Makefile.dep
50:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.