OSDN Git Service

ビルド環境構築中
authorhideaki sago <hideaki sago@localhost>
Sun, 4 Sep 2011 07:26:55 +0000 (16:26 +0900)
committerhideaki sago <hideaki sago@localhost>
Sun, 4 Sep 2011 07:26:55 +0000 (16:26 +0900)
.cproject
.project
Debug/Makefile [new file with mode: 0644]
ISORoot/dummy [new file with mode: 0644]
Makefile [deleted file]

index 06c91c8..8e40f30 100644 (file)
--- a/.cproject
+++ b/.cproject
@@ -20,7 +20,7 @@
                                        <folderInfo id="0.1215660714." name="/" resourcePath="">
                                                <toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.403782632" name="ツールチェーンなし" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
                                                        <targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.403782632.1175304969" name=""/>
-                                                       <builder id="org.eclipse.cdt.build.core.settings.default.builder.686110208" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make ビルダー" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+                                                       <builder buildPath="${workspace_loc:/TryOS/Debug}" id="org.eclipse.cdt.build.core.settings.default.builder.686110208" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make ビルダー" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
                                                        <tool id="org.eclipse.cdt.build.core.settings.holder.libs.577738444" name="ライブラリー設定フォルダー" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
                                                        <tool id="org.eclipse.cdt.build.core.settings.holder.1442101858" name="アセンブリー" superClass="org.eclipse.cdt.build.core.settings.holder">
                                                                <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1667077743" languageId="org.eclipse.cdt.core.assembly" languageName="アセンブリー" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
                                        <folderInfo id="0.1215660714.164616624." name="/" resourcePath="">
                                                <toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.1240621798" name="ツールチェーンなし" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
                                                        <targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.1240621798.200324006" name=""/>
-                                                       <builder id="org.eclipse.cdt.build.core.settings.default.builder.1987712862" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make ビルダー" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+                                                       <builder buildPath="${workspace_loc:/TryOS/Release}" id="org.eclipse.cdt.build.core.settings.default.builder.1987712862" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make ビルダー" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
                                                        <tool id="org.eclipse.cdt.build.core.settings.holder.libs.1845962221" name="ライブラリー設定フォルダー" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
                                                        <tool id="org.eclipse.cdt.build.core.settings.holder.1119654089" name="アセンブリー" superClass="org.eclipse.cdt.build.core.settings.holder">
                                                                <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1508503783" languageId="org.eclipse.cdt.core.assembly" languageName="アセンブリー" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
index 9b3082a..4f0c0e3 100644 (file)
--- a/.project
+++ b/.project
                                        <value>make</value>
                                </dictionary>
                                <dictionary>
+                                       <key>org.eclipse.cdt.make.core.buildLocation</key>
+                                       <value>${workspace_loc:/TryOS/Debug}</value>
+                               </dictionary>
+                               <dictionary>
                                        <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
                                        <value>clean</value>
                                </dictionary>
diff --git a/Debug/Makefile b/Debug/Makefile
new file mode 100644 (file)
index 0000000..624a0a5
--- /dev/null
@@ -0,0 +1,46 @@
+CXXFLAGS =     -O2 -g -Wall -fmessage-length=0
+
+BINS =         Boot.bin Kernel.bin
+TARGET =       $(OS_NAME).iso
+
+OS_NAME =      TryOS
+
+CD_ROOT_PATH = ../ISORoot
+
+
+#ISO 9660ファイルシステムのイメージ作成オプション
+#-quiet                        : 詳細な出力をさせないようにする。進捗状況が出力されない。
+#-b                            : ブートセクタイメージの指定
+#-c                            : ブート・カタログのパスを指定する。
+#-gui                  : GUIのために動きを切替える。現在のところこれにより出力が詳細になるが、将来的には他の効果も持つらしい。。
+#-I                            : ISO9660のレベルを2にする。
+#-J                            : Jolietディレクトリレコードを生成する。Jolietは、WindowsがISO 9660を拡張したファイルシステム。
+#-R                            : Rock Ridgeに対応。
+#-no-bak               : バックアップファイルを含まないようにする。(.bakや#を含むファイルなど。)
+#-V                            : ボリュームラベル
+MKISOFS_OPTIONS                += -quiet
+MKISOFS_OPTIONS                += -d
+MKISOFS_OPTIONS                += -gui
+MKISOFS_OPTIONS                += -l
+MKISOFS_OPTIONS                += -J
+MKISOFS_OPTIONS                += -R
+MKISOFS_OPTIONS                += -no-bak
+MKISOFS_OPTIONS                += -V $(OS_NAME)
+MKISOFS_OPTIONS                += $(addprefix -m , $(DESELECTION))
+
+
+$(TARGET):     $(BOOT_IMG) 
+       cat $+ > $@
+#      $(CXX) -o $(TARGET) $(OBJS) $(LIBS)
+       mkisofs $(MKISOFS_OPTIONS) -b $(BOOT_IMG) -c $(BOOT_CATALOG) -o $@ $(CD_ROOT_PATH)
+
+PHONY += all
+all:   $(TARGET)
+
+PHONY += clean
+clean:
+       rm -f $(OBJS) $(TARGET)
+
+
+
+.PHONY:        $(PHONY)
diff --git a/ISORoot/dummy b/ISORoot/dummy
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/Makefile b/Makefile
deleted file mode 100644 (file)
index 10313cb..0000000
--- a/Makefile
+++ /dev/null
@@ -1,15 +0,0 @@
-CXXFLAGS =     -O2 -g -Wall -fmessage-length=0
-
-OBJS =         TryOS.o
-
-LIBS =
-
-TARGET =       TryOS
-
-$(TARGET):     $(OBJS)
-       $(CXX) -o $(TARGET) $(OBJS) $(LIBS)
-
-all:   $(TARGET)
-
-clean:
-       rm -f $(OBJS) $(TARGET)