Chameleon

Chameleon Commit Details

Date:2010-11-17 20:05:52 (9 years 3 days ago)
Author:Evan Lojewski
Commit:637
Parents: 636
Message:Makefiles are noew generic, only need to specify the .o files to compile onece
Changes:
M/branches/meklort/i386/modules/HPET/Makefile
M/branches/meklort/i386/modules/USBFix/Makefile
M/branches/meklort/i386/modules/KextPatcher/Makefile
M/branches/meklort/i386/modules/ACPIPatcher/Makefile
M/branches/meklort/i386/modules/Resolution/Makefile
M/branches/meklort/i386/modules/GUI/Makefile
M/branches/meklort/i386/modules/KernelPatcher/Makefile
M/branches/meklort/i386/modules/Networking/Makefile
M/branches/meklort/i386/modules/Memory/Makefile
M/branches/meklort/i386/modules/GraphicsEnabler/Makefile
M/branches/meklort/i386/modules/HelloWorld/Makefile
M/branches/meklort/i386/modules/NetbookInstaller/Makefile

File differences

branches/meklort/i386/modules/NetbookInstaller/Makefile
4646
4747
4848
49
49
5050
5151
5252
......
5959
6060
6161
62
62
6363
6464
65
65
66
67
6668
6769
6870
......
7476
7577
7678
79
80
81
82
83
84
85
86
87
88
89
90
91
7792
7893
7994
80
81
95
96
8297
8398
8499
VPATH = $(OBJROOT):$(SYMROOT)
NBI_OBJS = NBI.o
MODULE_OBJS = NBI.o
SFILES =
$(HFILES) $(OTHERFILES)
DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
all embedtheme optionrom: ${NBI_OBJS} dylib
all embedtheme optionrom: dylib
dylib: ${HELLO_WORLD_OBJS}
HAVE_MODULES := $(wildcard $(SYMROOT)/*.dylib)
ifneq ($(strip $(HAVE_MODULES)),)
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
$(OBJROOT)/*.o \
-weak_library $(SYMROOT)/*.dylib \
-o $(SYMROOT)/$(MODULE_NAME).dylib
else
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
-dylib -read_only_relocs suppress \
-S -x -Z -dead_strip_dylibs \
-no_uuid \
-current_version $(MODULE_VERSION) -compatibility_version $(MODULE_COMPAT_VERSION) \
-final_output $(MODULE_NAME) \
$(OBJROOT)/*.o \
-o $(SYMROOT)/$(MODULE_NAME).dylib
endif
NBI.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "NBI.c" $(INC) -o "$(OBJROOT)/NBI.o"
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "$<" $(INC) -o "$(OBJROOT)/$@"
include ../../MakeInc.dir
branches/meklort/i386/modules/HPET/Makefile
4646
4747
4848
49
49
5050
5151
5252
......
5959
6060
6161
62
62
6363
6464
65
65
66
67
6668
6769
6870
......
7476
7577
7678
79
80
81
82
83
84
85
86
87
88
89
90
91
7792
7893
94
95
7996
80
81
82
8397
8498
8599
VPATH = $(OBJROOT):$(SYMROOT)
HPET_OBJS = HPET.o
MODULE_OBJS = HPET.o
SFILES =
$(HFILES) $(OTHERFILES)
DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
all embedtheme optionrom: ${HPET_OBJS} dylib
all embedtheme optionrom: dylib
dylib: ${HPET_OBJS}
HAVE_MODULES := $(wildcard $(SYMROOT)/*.dylib)
ifneq ($(strip $(HAVE_MODULES)),)
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
$(OBJROOT)/*.o \
-weak_library $(SYMROOT)/*.dylib \
-o $(SYMROOT)/$(MODULE_NAME).dylib
else
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
-dylib -read_only_relocs suppress \
-S -x -Z -dead_strip_dylibs \
-no_uuid \
-current_version $(MODULE_VERSION) -compatibility_version $(MODULE_COMPAT_VERSION) \
-final_output $(MODULE_NAME) \
$(OBJROOT)/*.o \
-o $(SYMROOT)/$(MODULE_NAME).dylib
endif
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "$<" $(INC) -o "$(OBJROOT)/$@"
HPET.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "HPET.c" $(INC) -o "$(OBJROOT)/HPET.o"
include ../../MakeInc.dir
# dependencies
branches/meklort/i386/modules/USBFix/Makefile
4646
4747
4848
49
49
5050
5151
5252
......
5959
6060
6161
62
62
6363
6464
65
65
66
67
6668
6769
6870
......
7476
7577
7678
79
80
81
82
83
84
85
86
87
88
89
90
91
7792
7893
7994
80
81
95
96
8297
83
84
85
8698
8799
88100
VPATH = $(OBJROOT):$(SYMROOT)
USB_OBJS = USBFix.o usb.o
MODULE_OBJS = USBFix.o usb.o
SFILES =
$(HFILES) $(OTHERFILES)
DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
all embedtheme optionrom: ${USB_OBJS} dylib
all embedtheme optionrom: dylib
dylib: ${USB_OBJS}
HAVE_MODULES := $(wildcard $(SYMROOT)/*.dylib)
ifneq ($(strip $(HAVE_MODULES)),)
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
$(OBJROOT)/*.o \
-weak_library $(SYMROOT)/*.dylib \
-o $(SYMROOT)/$(MODULE_NAME).dylib
else
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
-dylib -read_only_relocs suppress \
-S -x -Z -dead_strip_dylibs \
-no_uuid \
-current_version $(MODULE_VERSION) -compatibility_version $(MODULE_COMPAT_VERSION) \
-final_output $(MODULE_NAME) \
$(OBJROOT)/*.o \
-o $(SYMROOT)/$(MODULE_NAME).dylib
endif
USBFix.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "USBFix.c" $(INC) -o "$(OBJROOT)/USBFix.o"
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "$<" $(INC) -o "$(OBJROOT)/$@"
usb.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "usb.c" $(INC) -o "$(OBJROOT)/usb.o"
include ../../MakeInc.dir
# dependencies
branches/meklort/i386/modules/KextPatcher/Makefile
4646
4747
4848
49
49
5050
5151
5252
......
5959
6060
6161
62
62
6363
6464
65
65
66
67
6668
6769
6870
6971
70
72
7173
72
7374
7475
75
76
7776
7877
7978
79
80
81
82
83
84
85
86
87
88
89
90
91
8092
8193
82
83
94
95
8496
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
10997
11098
11199
VPATH = $(OBJROOT):$(SYMROOT)
OBJS = kext_patcher.o inflate.o deflate.o zutil.o inftrees.o inffast.o adler32.o hex_editor.o trees.o
MODULE_OBJS = kext_patcher.o inflate.o deflate.o zutil.o inftrees.o inffast.o adler32.o hex_editor.o trees.o
SFILES =
$(HFILES) $(OTHERFILES)
DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
all embedtheme optionrom: ${OBJS} dylib
all embedtheme optionrom: dylib
dylib: ${OBJS}
HAVE_MODULES := $(wildcard $(SYMROOT)/*.dylib)
ifneq ($(strip $(HAVE_MODULES)),)
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
-dylib -read_only_relocs suppress \
-S -x -dead_strip_dylibs \
-S -x -Z -dead_strip_dylibs \
-no_uuid \
-bind_at_load \
-current_version $(MODULE_VERSION) -compatibility_version $(MODULE_COMPAT_VERSION) \
-final_output $(MODULE_NAME) \
-weak_library $(SYMROOT)/Symbols.dylib \
-weak_library $(SYMROOT)/GUI.dylib \
$(OBJROOT)/*.o \
-weak_library $(SYMROOT)/*.dylib \
-o $(SYMROOT)/$(MODULE_NAME).dylib
else
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
-dylib -read_only_relocs suppress \
-S -x -Z -dead_strip_dylibs \
-no_uuid \
-current_version $(MODULE_VERSION) -compatibility_version $(MODULE_COMPAT_VERSION) \
-final_output $(MODULE_NAME) \
$(OBJROOT)/*.o \
-o $(SYMROOT)/$(MODULE_NAME).dylib
endif
kext_patcher.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "kext_patcher.c" $(INC) -o "$(OBJROOT)/kext_patcher.o"
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "$<" $(INC) -o "$(OBJROOT)/$@"
inflate.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "inflate.c" $(INC) -o "$(OBJROOT)/inflate.o"
deflate.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "deflate.c" $(INC) -o "$(OBJROOT)/deflate.o"
zutil.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "zutil.c" $(INC) -o "$(OBJROOT)/zutil.o"
inftrees.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "inftrees.c" $(INC) -o "$(OBJROOT)/inftrees.o"
inffast.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "inffast.c" $(INC) -o "$(OBJROOT)/inffast.o"
adler32.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "adler32.c" $(INC) -o "$(OBJROOT)/adler32.o"
trees.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "trees.c" $(INC) -o "$(OBJROOT)/trees.o"
hex_editor.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "hex_editor.c" $(INC) -o "$(OBJROOT)/hex_editor.o"
include ../../MakeInc.dir
# dependencies
branches/meklort/i386/modules/ACPIPatcher/Makefile
4646
4747
4848
49
49
5050
5151
5252
......
5959
6060
6161
62
62
6363
6464
65
65
66
67
6668
6769
6870
......
7476
7577
7678
79
80
81
82
83
84
85
86
87
88
89
90
91
7792
7893
94
95
7996
80
81
8297
83
84
85
86
87
88
89
9098
9199
92100
VPATH = $(OBJROOT):$(SYMROOT)
HELLO_WORLD_OBJS = ACPIPatcher.o aml_generator.o acpi_patcher.o
MODULE_OBJS = ACPIPatcher.o aml_generator.o acpi_patcher.o
SFILES =
$(HFILES) $(OTHERFILES)
DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
all embedtheme optionrom: ${HELLO_WORLD_OBJS} dylib
all embedtheme optionrom: dylib
dylib: ${HELLO_WORLD_OBJS}
HAVE_MODULES := $(wildcard $(SYMROOT)/*.dylib)
ifneq ($(strip $(HAVE_MODULES)),)
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
$(OBJROOT)/*.o \
-weak_library $(SYMROOT)/*.dylib \
-o $(SYMROOT)/$(MODULE_NAME).dylib
else
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
-dylib -read_only_relocs suppress \
-S -x -Z -dead_strip_dylibs \
-no_uuid \
-current_version $(MODULE_VERSION) -compatibility_version $(MODULE_COMPAT_VERSION) \
-final_output $(MODULE_NAME) \
$(OBJROOT)/*.o \
-o $(SYMROOT)/$(MODULE_NAME).dylib
endif
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "$<" $(INC) -o "$(OBJROOT)/$@"
ACPIPatcher.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "ACPIPatcher.c" $(INC) -o "$(OBJROOT)/ACPIPatcher.o"
aml_generator.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "aml_generator.c" $(INC) -o "$(OBJROOT)/aml_generator.o"
acpi_patcher.c:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "acpi_patcher.c" $(INC) -o "$(OBJROOT)/ACPIPatcher.o"
include ../../MakeInc.dir
# dependencies
branches/meklort/i386/modules/Resolution/Makefile
55
66
77
8
89
910
1011
......
4647
4748
4849
49
50
5051
5152
5253
......
5960
6061
6162
62
63
6364
6465
65
66
67
68
6669
6770
6871
......
7477
7578
7679
80
81
82
83
84
85
86
87
88
89
90
91
92
7793
94
95
7896
7997
80
81
82
83
84
85
86
87
88
89
9098
9199
92100
MODULE_START = _$(MODULE_NAME)_start
MODULE_DEPENDENCIES =
DIR = Resolution
include ../../MakePaths.dir
VPATH = $(OBJROOT):$(SYMROOT)
RESOLUTION_OBJS = Resolution.o edid.o 915resolution.o
MODULE_OBJS = Resolution.o edid.o 915resolution.o
SFILES =
$(HFILES) $(OTHERFILES)
DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
all embedtheme optionrom: ${RESOLUTION_OBJS} dylib
all embedtheme optionrom: dylib
dylib: ${RESOLUTION_OBJS}
HAVE_MODULES := $(wildcard $(SYMROOT)/*.dylib)
ifneq ($(strip $(HAVE_MODULES)),)
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
$(OBJROOT)/*.o \
-weak_library $(SYMROOT)/*.dylib \
-o $(SYMROOT)/$(MODULE_NAME).dylib
else
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
-dylib -read_only_relocs suppress \
-S -x -Z -dead_strip_dylibs \
-no_uuid \
-current_version $(MODULE_VERSION) -compatibility_version $(MODULE_COMPAT_VERSION) \
-final_output $(MODULE_NAME) \
$(OBJROOT)/*.o \
-o $(SYMROOT)/$(MODULE_NAME).dylib
endif
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "$<" $(INC) -o "$(OBJROOT)/$@"
Resolution.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "Resolution.c" $(INC) -o "$(OBJROOT)/Resolution.o"
915resolution.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "915resolution.c" $(INC) -o "$(OBJROOT)/915resolution.o"
edid.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "edid.c" $(INC) -o "$(OBJROOT)/edid.o"
include ../../MakeInc.dir
# dependencies
branches/meklort/i386/modules/GUI/Makefile
5050
5151
5252
53
53
5454
5555
5656
......
7070
7171
7272
73
73
7474
7575
76
76
77
78
7779
7880
7981
......
8486
8587
8688
87
89
90
91
92
93
94
95
96
97
98
99
100
101
102
88103
89
90
104
105
91106
92
93
94
95
96
97
98
99
100
101
102107
103108
104109
VPATH = $(OBJROOT):$(SYMROOT)
GUI_OBJS = GUI_module.o gui.o picopng.o graphic_utils.o
MODULE_OBJS = GUI_module.o gui.o picopng.o graphic_utils.o
SFILES =
all optionrom: ${HELLO_WORLD_OBJS} dylib
all embedtheme optionrom: dylib
dylib: ${GUI_OBJS}
HAVE_MODULES := $(wildcard $(SYMROOT)/*.dylib)
ifneq ($(strip $(HAVE_MODULES)),)
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
-final_output $(MODULE_NAME) \
$(OBJROOT)/*.o \
-weak_library $(SYMROOT)/*.dylib \
-o $(SYMROOT)/$(MODULE_NAME).dylib
-o $(SYMROOT)/$(MODULE_NAME).dylib
else
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
-dylib -read_only_relocs suppress \
-S -x -Z -dead_strip_dylibs \
-no_uuid \
-current_version $(MODULE_VERSION) -compatibility_version $(MODULE_COMPAT_VERSION) \
-final_output $(MODULE_NAME) \
$(OBJROOT)/*.o \
-o $(SYMROOT)/$(MODULE_NAME).dylib
endif
GUI_module.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "GUI_module.c" $(INC) -o "$(OBJROOT)/GUI_module.o"
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "$<" $(INC) -o "$(OBJROOT)/$@"
gui.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "gui.c" $(INC) -o "$(OBJROOT)/gui.o"
picopng.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "picopng.c" $(INC) -o "$(OBJROOT)/picopng.o"
graphic_utils.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "graphic_utils.c" $(INC) -o "$(OBJROOT)/graphic_utils.o"
art.h:
@if [ "$(PNGCRUSH)" ]; then\
echo "optimizing art files ...\n$(PNGCRUSH) $(PNGOPTIONS) artwork/$(THEME)"; \
branches/meklort/i386/modules/KernelPatcher/Makefile
4646
4747
4848
49
49
5050
5151
5252
......
5959
6060
6161
62
62
6363
6464
65
65
66
67
6668
6769
6870
6971
70
72
7173
72
7374
7475
75
7676
7777
7878
79
80
81
82
83
84
85
86
87
88
89
90
91
7992
8093
81
82
94
95
8396
8497
8598
VPATH = $(OBJROOT):$(SYMROOT)
OBJS = kernel_patcher.o
MODULE_OBJS = kernel_patcher.o
SFILES =
$(HFILES) $(OTHERFILES)
DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
all embedtheme optionrom: ${OBJS} dylib
all embedtheme optionrom: dylib
dylib: ${OBJS}
HAVE_MODULES := $(wildcard $(SYMROOT)/*.dylib)
ifneq ($(strip $(HAVE_MODULES)),)
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
-dylib -read_only_relocs suppress \
-S -x -dead_strip_dylibs \
-S -x -Z -dead_strip_dylibs \
-no_uuid \
-bind_at_load \
-current_version $(MODULE_VERSION) -compatibility_version $(MODULE_COMPAT_VERSION) \
-final_output $(MODULE_NAME) \
-weak_library $(SYMROOT)/Symbols.dylib \
$(OBJROOT)/*.o \
-weak_library $(SYMROOT)/*.dylib \
-o $(SYMROOT)/$(MODULE_NAME).dylib
else
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
-dylib -read_only_relocs suppress \
-S -x -Z -dead_strip_dylibs \
-no_uuid \
-current_version $(MODULE_VERSION) -compatibility_version $(MODULE_COMPAT_VERSION) \
-final_output $(MODULE_NAME) \
$(OBJROOT)/*.o \
-o $(SYMROOT)/$(MODULE_NAME).dylib
endif
kernel_patcher.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "kernel_patcher.c" $(INC) -o "$(OBJROOT)/kernel_patcher.o"
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "$<" $(INC) -o "$(OBJROOT)/$@"
include ../../MakeInc.dir
branches/meklort/i386/modules/Networking/Makefile
4646
4747
4848
49
49
5050
5151
5252
......
5959
6060
6161
62
62
6363
6464
65
65
66
67
6668
6769
6870
......
7476
7577
7678
79
80
81
82
83
84
85
86
87
88
89
90
91
7792
7893
7994
80
81
95
96
8297
8398
8499
VPATH = $(OBJROOT):$(SYMROOT)
NET_OBJS = Networking.o
MODULE_OBJS = Networking.o
SFILES =
$(HFILES) $(OTHERFILES)
DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
all embedtheme optionrom: ${NET_OBJS} dylib
all embedtheme optionrom: dylib
dylib: ${NET_OBJS}
HAVE_MODULES := $(wildcard $(SYMROOT)/*.dylib)
ifneq ($(strip $(HAVE_MODULES)),)
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
$(OBJROOT)/*.o \
-weak_library $(SYMROOT)/*.dylib \
-o $(SYMROOT)/$(MODULE_NAME).dylib
else
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
-dylib -read_only_relocs suppress \
-S -x -Z -dead_strip_dylibs \
-no_uuid \
-current_version $(MODULE_VERSION) -compatibility_version $(MODULE_COMPAT_VERSION) \
-final_output $(MODULE_NAME) \
$(OBJROOT)/*.o \
-o $(SYMROOT)/$(MODULE_NAME).dylib
endif
Networking.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "Networking.c" $(INC) -o "$(OBJROOT)/Networking.o"
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "$<" $(INC) -o "$(OBJROOT)/$@"
include ../../MakeInc.dir
branches/meklort/i386/modules/Memory/Makefile
4646
4747
4848
49
49
5050
5151
5252
......
5959
6060
6161
62
62
6363
6464
65
65
66
67
6668
6769
6870
......
7476
7577
7678
79
80
81
82
83
84
85
86
87
88
89
90
91
7792
7893
7994
80
81
95
96
8297
83
84
8598
86
87
88
89
90
91
92
9399
94100
95101
VPATH = $(OBJROOT):$(SYMROOT)
MEMORY_OBJS = dram_controllers.o mem.o spd.o Memory.o
MODULE_OBJS = dram_controllers.o mem.o spd.o Memory.o
SFILES =
$(HFILES) $(OTHERFILES)
DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
all embedtheme optionrom: ${MEMORY_OBJS} dylib
all embedtheme optionrom: dylib
dylib: ${GRAPHICS_ENABLER_OBJS}
HAVE_MODULES := $(wildcard $(SYMROOT)/*.dylib)
ifneq ($(strip $(HAVE_MODULES)),)
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
$(OBJROOT)/*.o \
-weak_library $(SYMROOT)/*.dylib \
-o $(SYMROOT)/$(MODULE_NAME).dylib
else
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
-dylib -read_only_relocs suppress \
-S -x -Z -dead_strip_dylibs \
-no_uuid \
-current_version $(MODULE_VERSION) -compatibility_version $(MODULE_COMPAT_VERSION) \
-final_output $(MODULE_NAME) \
$(OBJROOT)/*.o \
-o $(SYMROOT)/$(MODULE_NAME).dylib
endif
dram_controllers.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "dram_controllers.c" $(INC) -o "$(OBJROOT)/dram_controllers.o"
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "$<" $(INC) -o "$(OBJROOT)/$@"
Memory.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "Memory.c" $(INC) -o "$(OBJROOT)/Memory.o"
spd.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "spd.c" $(INC) -o "$(OBJROOT)/spd.o"
mem.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "mem.c" $(INC) -o "$(OBJROOT)/mem.o"
include ../../MakeInc.dir
# dependencies
branches/meklort/i386/modules/GraphicsEnabler/Makefile
4646
4747
4848
49
49
5050
5151
5252
......
5959
6060
6161
62
62
6363
6464
65
65
66
67
6668
6769
6870
......
7476
7577
7678
79
80
81
82
83
84
85
86
87
88
89
90
91
7792
7893
7994
80
81
95
96
8297
83
84
85
86
87
88
89
90
91
9298
9399
94100
VPATH = $(OBJROOT):$(SYMROOT)
GRAPHICS_ENABLER_OBJS = nvidia.o ati.o gma.o GraphicsEnabler.o
MODULE_OBJS = nvidia.o ati.o gma.o GraphicsEnabler.o
SFILES =
$(HFILES) $(OTHERFILES)
DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
all embedtheme optionrom: ${GRAPHICS_ENABLER_OBJS} dylib
all embedtheme optionrom: dylib
dylib: ${GRAPHICS_ENABLER_OBJS}
HAVE_MODULES := $(wildcard $(SYMROOT)/*.dylib)
ifneq ($(strip $(HAVE_MODULES)),)
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
$(OBJROOT)/*.o \
-weak_library $(SYMROOT)/*.dylib \
-o $(SYMROOT)/$(MODULE_NAME).dylib
else
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
-dylib -read_only_relocs suppress \
-S -x -Z -dead_strip_dylibs \
-no_uuid \
-current_version $(MODULE_VERSION) -compatibility_version $(MODULE_COMPAT_VERSION) \
-final_output $(MODULE_NAME) \
$(OBJROOT)/*.o \
-o $(SYMROOT)/$(MODULE_NAME).dylib
endif
GraphicsEnabler.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "GraphicsEnabler.c" $(INC) -o "$(OBJROOT)/GraphicsEnabler.o"
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "$<" $(INC) -o "$(OBJROOT)/$@"
ati.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "ati.c" $(INC) -o "$(OBJROOT)/ati.o"
nvidia.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "nvidia.c" $(INC) -o "$(OBJROOT)/nvidia.o"
gma.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "gma.c" $(INC) -o "$(OBJROOT)/gma.o"
include ../../MakeInc.dir
# dependencies
branches/meklort/i386/modules/HelloWorld/Makefile
4646
4747
4848
49
49
5050
5151
5252
......
5959
6060
6161
62
62
6363
6464
65
65
66
67
6668
6769
6870
......
7476
7577
7678
79
80
81
82
83
84
85
86
87
88
89
90
91
7792
7893
7994
80
81
95
96
8297
8398
8499
VPATH = $(OBJROOT):$(SYMROOT)
HELLO_WORLD_OBJS = HelloWorld.o
MODULE_OBJS = HelloWorld.o
SFILES =
$(HFILES) $(OTHERFILES)
DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
all embedtheme optionrom: ${HELLO_WORLD_OBJS} dylib
all embedtheme optionrom: dylib
dylib: ${HELLO_WORLD_OBJS}
HAVE_MODULES := $(wildcard $(SYMROOT)/*.dylib)
ifneq ($(strip $(HAVE_MODULES)),)
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
$(OBJROOT)/*.o \
-weak_library $(SYMROOT)/*.dylib \
-o $(SYMROOT)/$(MODULE_NAME).dylib
else
dylib: ${MODULE_OBJS}
ld -arch i386 \
-undefined dynamic_lookup \
-alias $(MODULE_START) start \
-dylib -read_only_relocs suppress \
-S -x -Z -dead_strip_dylibs \
-no_uuid \
-current_version $(MODULE_VERSION) -compatibility_version $(MODULE_COMPAT_VERSION) \
-final_output $(MODULE_NAME) \
$(OBJROOT)/*.o \
-o $(SYMROOT)/$(MODULE_NAME).dylib
endif
HelloWorld.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "HelloWorld.c" $(INC) -o "$(OBJROOT)/HelloWorld.o"
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c "$<" $(INC) -o "$(OBJROOT)/$@"
include ../../MakeInc.dir

Archive Download the corresponding diff file

Revision: 637