From a910a28a312a4ee63c2f4ca06e64957609cc21db Mon Sep 17 00:00:00 2001 From: "KJK::Hyperion" Date: Thu, 21 Mar 2002 22:49:24 +0000 Subject: [PATCH] added read and write syscalls to psxdll, rule for csrapi.a svn path=/trunk/; revision=2758 --- posix/lib/psxdll/Makefile | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/posix/lib/psxdll/Makefile b/posix/lib/psxdll/Makefile index 1e831709e62..238292026dc 100644 --- a/posix/lib/psxdll/Makefile +++ b/posix/lib/psxdll/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.5 2002/03/10 17:10:30 hyperion Exp $ +# $Id: Makefile,v 1.6 2002/03/21 22:49:24 hyperion Exp $ PATH_TO_TOP = ../../../.. @@ -17,7 +17,7 @@ TARGET_BASE = 0x68EB0000 TARGET_ENTRY = _DllMain@12 TARGET_CFLAGS =\ - -W \ + -Wall \ -nostdinc \ -nostdlib \ -fno-builtin \ @@ -96,7 +96,9 @@ OBJECTS_UNISTD = \ unistd/dup.o \ unistd/getcwd.o \ unistd/getpid.o \ - unistd/getppid.o + unistd/getppid.o \ + unistd/read.o \ + unistd/write.o OBJECTS = \ $(OBJECTS_MISC) \ @@ -117,9 +119,6 @@ DEP_OBJECTS = $(OBJECTS) include $(TOOLS_PATH)/depend.mk -$(TARGET_NAME).o: $(OBJECTS) - $(LD) -r $(OBJECTS) -o $(TARGET_NAME).o - DTFLAGS = -k -l $@ $(TARGET_NAME).a: $(TARGET_NAME).def @@ -128,4 +127,14 @@ $(TARGET_NAME).a: $(TARGET_NAME).def -D $(TARGET_NAME).dll \ -d $(TARGET_NAME).def +csrapi.a: csrapi.def + $(DLLTOOL) \ + $(DTFLAGS) \ + -D ntdll.dll \ + -d csrapi.def + +$(TARGET_NAME).o: csrapi.a $(OBJECTS) + $(LD) -r $(OBJECTS) -o $(TARGET_NAME).o + + # EOF