Selaa lähdekoodia

Make and install scripts updated

Arthur Yefimov 2 vuotta sitten
vanhempi
commit
1d20b2bf92
3 muutettua tiedostoa jossa 13 lisäystä ja 7 poistoa
  1. 4 2
      install.sh
  2. 5 3
      src/make.bat
  3. 4 2
      src/make.sh

+ 4 - 2
install.sh

@@ -24,5 +24,7 @@ cd src
 cd ..
 
 echo "======================="
-echo "Done."
-echo "If everything went ok, you can now run: ./FreeOberon"
+echo "Done. Hopefully you can now run: ./FreeOberon"
+echo "Add this line to a file named ~/.bashrc"
+echo "to be able to use 'fob' as a command:"
+echo "export PATH=$PWD:\$PATH"

+ 5 - 3
src/make.bat

@@ -3,7 +3,7 @@ SET PROG1=FreeOberon
 SET PROG2=fob
 SET OFRDIR=..\Data\bin\OfrontPlus\Target\Win32
 SET GCCDIR=C:\prg\mingw32\bin
-SET GCCDIR=..\Data\bin\mingw32\bin
+REM SET GCCDIR=..\Data\bin\mingw32\bin
 SET PATH=%GCCDIR%;%OFRDIR%;%PATH%
 SET OBERON=.;%OFRDIR%\Lib\Sym
 
@@ -28,6 +28,8 @@ ECHO ON
 @IF ERRORLEVEL 1 GOTO ERR
 %OFR% -Cw Out.Mod
 @IF ERRORLEVEL 1 GOTO ERR
+%OFR% -7w Debug.Mod
+@IF ERRORLEVEL 1 GOTO ERR
 %OFR% -7w Args.Mod
 @IF ERRORLEVEL 1 GOTO ERR
 %OFR% -7w Env.Mod
@@ -106,7 +108,7 @@ windres resources.rc resources.o
 
 %CCFULL% -o ..\%PROG1%.exe resources.o ^
   Graph.c TermBox.c ^
-  Config.c term\term_win32.c ^
+  Config.c Debug.c term\term_win32.c ^
   Term.c OV.c FoStrings.c EditorText.c Editor.c Builder.c ^
   FreeOberon.c ^
   ..\Data\bin\FreeOberon.a ^
@@ -120,7 +122,7 @@ windres resources.rc resources.o
 %CCFULL% -o ..\%PROG2%.exe ^
   FoStrings.c Builder.c ^
   Term.c term/term_win32.c ^
-  Config.c Fob.c ^
+  Config.c Debug.c Fob.c ^
   ..\Data\bin\FreeOberon.a ^
   %OFRDIR%\Lib\Ofront.a ^
   -I..\Data\bin\mingw32\include ^

+ 4 - 2
src/make.sh

@@ -28,6 +28,8 @@ $OFR -Cw In.Mod &&
 
 $OFR -Cw Out.Mod &&
 
+$OFR -7w Debug.Mod &&
+
 $OFR -7w Args.Mod &&
 
 $OFR -7w Env.Mod &&
@@ -107,7 +109,7 @@ $AR -crs ../Data/bin/libFreeOberon.a \
 $CCFULL -o ../$PROG1 \
   Graph.c TermBox.c \
   Term.c term/term_linux.c \
-  Config.c OV.c FoStrings.c EditorText.c Editor.c Builder.c \
+  Config.c Debug.c OV.c FoStrings.c EditorText.c Editor.c Builder.c \
   FreeOberon.c \
   ../Data/bin/libFreeOberon.a \
   $OFRDIR/Lib/libOfront.a \
@@ -120,6 +122,6 @@ $CCFULL -o ../$PROG1 \
 $CCFULL -o ../$PROG2 \
   FoStrings.c Builder.c \
   Term.c term/term_linux.c \
-  Config.c Fob.c \
+  Config.c Debug.c Fob.c \
   ../Data/bin/libFreeOberon.a \
   $OFRDIR/Lib/libOfront.a