blob: c8649ae0daaa0140b41ef0190f42fc1ede2f56fe (
plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#******************************************************************************
#
# insmod from busybox (i386 only)
#
# $Id$
#
# Copyright (C) 1999,2000 by Lineo, inc.
#
#*****************************************************************************
top_dir = ..
include $(top_dir)/Makefile.common
all: insmod insmod-DIET libinsmod.a libinsmod-DIET.a
clean:
rm -f *.o insmod insmod-DIET libinsmod.a libinsmod-DIET.a
FLAGS = -c -Wall -Os -fomit-frame-pointer -D_GNU_SOURCE -DBB_VER='"0.47"' -DBB_BT='"2000.12.06-14:02+0000"'
insmod: insmod-frontend.o insmod.o utility-standalone.o
gcc -o $@ $^
$(STRIPCMD) $@
insmod-DIET: insmod-frontend-DIET.o insmod-DIET.o utility-standalone-DIET.o
gcc $(DIETLIBC_LDFLAGS_STAGE1) -o $@ $^ $(DIETLIBC_LIBC)
$(STRIPCMD) $@
libinsmod.a: insmod.o utility.o
ar cru $@ $^
ranlib $@
libinsmod-DIET.a: insmod-DIET.o utility-DIET.o
ar cru $@ $^
ranlib $@
insmod-frontend.o: insmod-frontend.c busybox.h
gcc $(FLAGS) $(GLIBC_INCLUDES) insmod-frontend.c
insmod-frontend-DIET.o: insmod-frontend.c busybox.h
gcc $(FLAGS) $(DIETLIBC_INCLUDES) -o $@ insmod-frontend.c
utility.o: utility.c busybox.h
gcc $(FLAGS) $(GLIBC_INCLUDES) utility.c
utility-DIET.o: utility.c busybox.h
gcc $(FLAGS) $(DIETLIBC_INCLUDES) -o $@ utility.c
utility-standalone.o: utility.c busybox.h
gcc $(FLAGS) $(GLIBC_INCLUDES) -o $@ -D_STANDALONE_ utility.c
utility-standalone-DIET.o: utility.c busybox.h
gcc $(FLAGS) $(DIETLIBC_INCLUDES) -o $@ -D_STANDALONE_ utility.c
insmod.o: insmod.c busybox.h
gcc $(FLAGS) $(GLIBC_INCLUDES) insmod.c
insmod-DIET.o: insmod.c busybox.h
gcc $(FLAGS) $(DIETLIBC_INCLUDES) -o $@ insmod.c
|