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 (35 lines) | stat: -rw-r--r-- 748 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
28
29
30
31
32
33
34
35
# $Id: Makefile,v 1.2 1997/10/17 06:07:43 tdyas Exp $

include ../Makeconfig

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

######################################################################

OBJS = misc.o conf_file.o

all: modprobe depmod

modprobe: modprobe.o $(OBJS) ../util/libutil.a
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^

depmod: depmod.o $(OBJS) ../obj/libobj.a ../util/libutil.a
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^

clean:
	rm -f *~ core *.bak *.o *.obt *.old
	rm -f depmod modprobe

realclean distclean: clean
	rm -f .depend

install install-bin: all
	$(INSTALL) modprobe $(sbindir)
	$(INSTALL) depmod $(sbindir)

dep depend:
	gcc -M $(CFLAGS) $(DEFS) *.c > .depend

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