File: Makefile

package info (click to toggle)
modutils 2.1.85-11
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 1,020 kB
  • ctags: 1,024
  • sloc: ansic: 9,324; sh: 2,180; lex: 484; yacc: 362; makefile: 309
file content (27 lines) | stat: -rw-r--r-- 526 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $Id: Makefile,v 1.1 1997/09/10 22:20:01 rth Exp $

include ../Makeconfig

DEFS += -DELF_MACHINE_H='"elf_$(ARCH).h"' -DARCH_$(ARCH)

#----------------------------------------------------------------------

all: libobj.a

LIBOBJ_OBJS = obj_common.o obj_load.o obj_reloc.o obj_$(ARCH).o

libobj.a: $(LIBOBJ_OBJS)
	ar rv $@ $?
	$(RANLIB) $@

realclean clean:
	rm -f *.o *.a .depend

install-bin: all

dep depend:
	gcc -M $(CFLAGS) $(DEFS) $(LIBOBJ_OBJS:.o=.c) > .depend

ifeq (.depend,$(wildcard .depend))
include .depend
endif