Chameleon

Chameleon Commit Details

Date:2011-05-10 20:36:56 (8 years 3 months ago)
Author:Evan Lojewski
Commit:780
Parents: 779
Message:Makefile update for modules. Modules can now be compiled individualy in their own directory
Changes:
M/trunk/i386/modules/Makefile
M/trunk/i386/modules/MakeInc.dir
M/trunk/i386/modules/HelloWorld/Makefile

File differences

trunk/i386/modules/MakeInc.dir
1
2
1
2
3
34
4
5
6
7
8
95
106
117
......
1612
1713
1814
19
15
2016
2117
2218
......
4844
4945
5046
47
48
49
50
51
52
5153
54
5255
5356
5457
5558
59
60
61
include ../../MakePaths.dir
include ../../MakeInc.dir
OBJROOT = ../../../obj/i386/modules/$(DIR)
SYMROOT = ../../../sym/i386/
DSTROOT = ../../../dst/i386/
OBJROOT=../../../obj/i386/$(DIR)
SYMROOT=../../../sym/i386/
DSTROOT=../../../dst/i386/
UTILDIR = ../../util
LIBSADIR = ../../libsa
LIBSAIODIR = ../../libsaio
INSTALLDIR = $(DSTROOT)/System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders/standalone
dylib: ${MODULE_OBJS} 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
@echo "\t[CPP] $<"
@$(CPP) $(CPPFLAGS) $(CFLAGS) -I../include/ -Iinclude/ -I../module_includes/ -D__KLIBC__ $(DEFINES) -c "$<" $(INC) -o "$(OBJROOT)/$@"
clean:
@echo "\t[RM] $(OBJROOT)"
@rm -rf ${OBJROOT}
@echo "\t[RM] $(SYMROOT)/modules/$(MODULE_NAME).dylib"
@rm -rf $(SYMROOT)/modules/$(MODULE_NAME).dylib &> /dev/null
# dependencies
#-include $(OBJROOT)/Makedep
include ../../MakeInc.dir
trunk/i386/modules/HelloWorld/Makefile
33
44
55
6
6
77
88
99
MODULE_COMPAT_VERSION = "1.0.0"
#MODULE_START = _$(MODULE_NAME)_start
MODULE_START = __Z16HelloWorld_startv
MODULE_DEPENDENCIES =
MODULE_DEPENDENCIES = uClibc++
DIR = HelloWorld
trunk/i386/modules/Makefile
2121
2222
2323
24
25
26
24
25
26
2727
2828
2929
......
3535
3636
3737
38
39
38
39
4040
4141
4242
#
# these paths are only valid in subdirectories of this directory
#
OBJROOT=`pwd`/../../obj/i386/
SYMROOT=`pwd`/../../sym/i386/
DSTROOT=`pwd`/../../dst/i386/
OBJROOT=`pwd`/../../obj/i386/modules/
SYMROOT=`pwd`/../../sym/i386/modules/
DSTROOT=`pwd`/../../dst/i386/modules/
SRCROOT=/tmp
VPATH = $(OBJROOT):$(SYMROOT)
echo ================= make $@ for $$i =================; \
( cd $$i; $(MKDIRS) $(OBJROOT)/$$i; ${MAKE} \
"OBJROOT=$(OBJROOT)/$$i" \
"SYMROOT=$(SYMROOT)" \
"DSTROOT=$(DSTROOT)" \
"SYMROOT=$(SYMROOT)/" \
"DSTROOT=$(DSTROOT)/" \
"SRCROOT=$(SRCROOT)" \
"RC_ARCHS=$(RC_ARCHS)" \
"RC_KANJI=$(RC_KANJI)" \

Archive Download the corresponding diff file

Revision: 780