Przeglądaj źródła

* makefile for non-i386 targets fixed
* vidutil works with non i386 targets too

florian 21 lat temu
rodzic
commit
30903c5061
2 zmienionych plików z 17 dodań i 3 usunięć
  1. 14 0
      docs/videoex/Makefile
  2. 3 3
      docs/videoex/vidutil.pp

+ 14 - 0
docs/videoex/Makefile

@@ -6,6 +6,20 @@
 
 # Compiler
 
+override PATH:=$(patsubst %/,%,$(subst \,/,$(PATH)))
+ifneq ($(findstring darwin,$(OSTYPE)),)
+inUnix=1 #darwin
+SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
+else
+ifeq ($(findstring ;,$(PATH)),)
+inUnix=1
+SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
+else
+SEARCHPATH:=$(subst ;, ,$(PATH))
+endif
+endif
+SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE))))
+
 ifndef FPC
 ifdef PP
 FPC=$(PP)

+ 3 - 3
docs/videoex/vidutil.pp

@@ -5,9 +5,9 @@ Interface
 uses
   video;
 
-{$ifndef cpu86}
-{$error This example only works on intel 80x86 machines}
-{$endif}
+{ $ifndef cpu86}
+{ $error This example only works on intel 80x86 machines}
+{ $endif}
   
 
 Procedure TextOut(X,Y : Word;Const S : String);