Chameleon

Chameleon Commit Details

Date:2011-05-12 00:46:00 (8 years 3 months ago)
Author:Evan Lojewski
Commit:800
Parents: 799
Message:Revert 799, will be fixd later
Changes:
M/trunk/i386/modules/Makefile
M/trunk/i386/modules/MakeInc.dir

File differences

trunk/i386/modules/MakeInc.dir
11
2
2
33
44
55
......
77
88
99
10
11
10
1211
13
1412
15
16
17
18
19
20
21
2213
2314
24
15
2516
2617
2718
......
4132
4233
4334
44
35
4536
4637
4738
48
4939
5040
5141
......
5444
5545
5646
57
58
59
60
61
62
63
64
65
6647
6748
6849
6950
70
51
7152
7253
73
74
75
54
7655
7756
78
7957
8058
59
60
61
OBJROOT = ../../../obj/i386/modules/$(DIR)
SYMROOT = ../../../sym/i386/modules/
SYMROOT = ../../../sym/i386/
DSTROOT = ../../../dst/i386/
UTILDIR = ../../util
LIBSAIODIR = ../../libsaio
BOOT2DIR = ../../boot2
MODULE_DEPENDENCIES := $(foreach x,$(MODULE_DEPENDENCIES),-weak_library $(SYMROOT)/$(x).dylib)
MODULE_OBJECTS := $(foreach x,$(MODULE_OBJS),$(OBJROOT)/$(x))
MODULE_DEPENDENCIES := $(foreach x,$(MODULE_DEPENDENCIES),-weak_library $(SYMROOT)/modules/$(x).dylib)
CPP = g++ -fno-exceptions -fno-rtti
ifneq "" "$(wildcard /bin/mkdirs)"
MKDIRS = /bin/mkdirs
else
MKDIRS = /bin/mkdir -p
endif
INSTALLDIR = $(DSTROOT)/System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders/standalone
dylib: ${OBJROOT} ${MODULE_OBJECTS} dylib_final
dylib: ${OBJROOT} ${MODULE_OBJS} dylib_final
dylib_final:
@rm -rf $(SYMROOT)/$(MODULE_NAME).dylib#ensure module doesn't link with old version of self
-weak_library $(OBJROOT)/../../boot2/Symbols_LINKER_ONLY.dylib \
$(MODULE_DEPENDENCIES) \
-macosx_version_min 10.6 \
-o $(SYMROOT)/$(MODULE_NAME).dylib
-o $(SYMROOT)/modules/$(MODULE_NAME).dylib
@cp -rf include/* ../module_includes/ &> /dev/null || true
%.o: %.c
@echo "\t[CC] $<"
@$(CC) $(CPPFLAGS) $(CFLAGS) -I../include/ -Iinclude/ -I../module_includes/ -D__KLIBC__ $(DEFINES) -c "$<" $(INC) -o "$(OBJROOT)/$@"
@echo "\t[CPP] $<"
@$(CPP) $(CPPFLAGS) $(CFLAGS) -I../include/ -Iinclude/ -I../module_includes/ -D__KLIBC__ $(DEFINES) -c "$<" $(INC) -o "$(OBJROOT)/$@"
$(OBJROOT)/%.o: %.c
@echo "\t[CC] $<"
@$(CC) $(CPPFLAGS) $(CFLAGS) -I../include/ -Iinclude/ -I../module_includes/ -D__KLIBC__ $(DEFINES) -c "$<" $(INC) -o "$@"
$(OBJROOT)/%.o: %.cpp
@echo "\t[CPP] $<"
@$(CPP) $(CPPFLAGS) $(CFLAGS) -I../include/ -Iinclude/ -I../module_includes/ -D__KLIBC__ $(DEFINES) -c "$<" $(INC) -o "$@"
clean:
@echo "\t[RM] $(OBJROOT)"
@rm -rf ${OBJROOT}
@echo "\t[RM] $(SYMROOT)/modules/$(MODULE_NAME).dylib"
@rm -rf $(SYMROOT)/$(MODULE_NAME).dylib &> /dev/null
@rm -rf $(SYMROOT)/modules/$(MODULE_NAME).dylib &> /dev/null
$(DIRS_NEEDED) $(INSTALLDIR) $(SRCROOT):
@echo "\t[MKDIR] $@/"
@$(MKDIRS) $@/
# dependencies
#-include $(OBJROOT)/Makedep
include ../../MakeInc.dir
trunk/i386/modules/Makefile
11
22
33
4
4
55
66
77
......
2121
2222
2323
24
25
26
24
25
26
2727
2828
2929
3030
31
3231
33
32
3433
3534
3635
3736
38
39
40
37
38
39
4140
4241
4342
......
4645
4746
4847
49
50
51
52
53
54
55
56
48
49
50
51
52
53
54
5755
58
59
60
61
62
56
57
#Makefile for i386 modules
# The order of building is important.
SUBDIRS = klibc uClibc++ Resolution KernelPatcher KextPatcher
SUBDIRS = klibc uClibc++ Resolution
#SUBDIRS = klibc uClibc++ Resolution HelloWorld
#
# these paths are only valid in subdirectories of this directory
#
OBJROOT=../../obj/i386/modules/
SYMROOT=../../sym/i386/modules/
DSTROOT=../../dst/i386/modules/
OBJROOT=`pwd`/../../obj/i386/modules/
SYMROOT=`pwd`/../../sym/i386/modules/
DSTROOT=`pwd`/../../dst/i386/modules/
SRCROOT=/tmp
VPATH = $(OBJROOT):$(SYMROOT)
DIRS_NEEDED = $(OBJROOT) $(SYMROOT) module_includes
all embedtheme optionrom tags debug: $(DIRS_NEEDED)
all embedtheme optionrom tags debug install installhdrs: objroot_dirs
@for i in ${SUBDIRS}; \
do \
echo ================= make $@ for $$i =================; \
( cd $$i; $(MKDIRS) $(OBJROOT)/$$i; ${MAKE} \
"OBJROOT=../$(OBJROOT)/$$i" \
"SYMROOT=../$(SYMROOT)/" \
"DSTROOT=../$(DSTROOT)/" \
"OBJROOT=$(OBJROOT)/$$i" \
"SYMROOT=$(SYMROOT)/" \
"DSTROOT=$(DSTROOT)/" \
"SRCROOT=$(SRCROOT)" \
"RC_ARCHS=$(RC_ARCHS)" \
"RC_KANJI=$(RC_KANJI)" \
) || exit $$?; \
done
clean:
@echo "\t[RM] $(OBJROOT)"
@rm -rf ${OBJROOT}
@echo "\t[RM] $(SYMROOT)"
@rm -rf ${SYMROOT}
@echo "\t[RM] module_includes"
@rm -rf module_includes &> /dev/null
objroot_dirs:
@rm -rf "$(OBJROOT)"
@mkdir "$(OBJROOT)" &> /dev/null
@rm -rf module_includes
@mkdir module_includes
@rm -rf "$(SYMROOT)/modules/"
@mkdir "$(SYMROOT)/modules/"
include ../MakeInc.dir
installsrc:
tar cf - . | (cd ${SRCROOT}; tar xfBp -)

Archive Download the corresponding diff file

Revision: 800