|
|
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: TOPCMNDIR ?= ../..
14:
15: include $(TOPCMNDIR)/make.rules
16:
17: CPPFLAGS = -I../libc/include $(CPUARCHDEF) -I$(INCLCMNDIR) -I$(INCLCMNDIR)/$(CPUARCH)
18: LDFLAGS= -nostdlib
19:
20: TARGET = ../libelf.a
21:
22: all: $(TARGET)
23:
24: SRCS = elf.c
25:
26: OBJS = $(SRCS:%.c=%.o)
27:
28: $(TARGET): $(OBJS)
29: $(AR) -rc $@ $(OBJS)
30: $(RANLIB) $@
31:
32: clean:
33: $(RM) $(TARGET) $(OBJS)
34:
35: distclean: clean
36: $(RM) Makefile.dep
37:
38: # Rules for creating the dependency file:
39: depend:
40: $(RM) Makefile.dep
41: $(MAKE) Makefile.dep
42:
43: Makefile.dep: Makefile
44: $(CC) -MM $(CPPFLAGS) $(CFLAGS) $(SRCS) > Makefile.dep
45:
46: # Include dependency file if available:
47: -include Makefile.dep
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.