Browse Source

Add default NSOSDIR and msmouse unit rules

Pierre Muller 2 years ago
parent
commit
21b02cb56b
1 changed files with 11 additions and 1 deletions
  1. 11 1
      rtl/inc/Makefile.rtl

+ 11 - 1
rtl/inc/Makefile.rtl

@@ -542,7 +542,9 @@ fpcdir=../..
 ifndef OSDIR
 OSDIR=.
 endif
-
+ifndef NSOSDIR
+NSOSDIR=$(NSDIR)/$(OS_TARGET)
+endif
 
 ifndef PORTSDIR
 PORTSDIR=$(OSDIR)
@@ -904,6 +906,14 @@ dos$(PPUEXT): $(DOS_DEPS)
 TP.DOS$(PPUEXT): $(NSINC)/TP.DOS.pp $(DOS_DEPS) 
 	$(COMPILER) $(DOS_OPTS) $<
 
+MSMOUSE_DEPS=msmouse.pp $(SYSTEMUNIT)$(PPUEXT)
+
+msmouse$(PPUEXT) : $(MSMOUSE_DEPS)
+	$(COMPILER) $(MSMOUSE_OPTS) $<
+
+DOSApi.MSMouse$(PPUEXT) : $(NSOSDIR)/DOSApi.MSMouse.pp $(MSMOUSE_DEPS)
+	$(COMPILER) $(MSMOUSE_OPTS) $<
+
 
 ###########################################
 # Delphi Compatible Units