added read and write syscalls to psxdll, rule for csrapi.a
authorKJK::Hyperion <hackbunny@reactos.org>
Thu, 21 Mar 2002 22:49:24 +0000 (22:49 +0000)
committerKJK::Hyperion <hackbunny@reactos.org>
Thu, 21 Mar 2002 22:49:24 +0000 (22:49 +0000)
svn path=/trunk/; revision=2758

posix/lib/psxdll/Makefile

index 1e83170..2382920 100644 (file)
@@ -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 = ../../../..
 
 
 PATH_TO_TOP = ../../../..
 
@@ -17,7 +17,7 @@ TARGET_BASE = 0x68EB0000
 TARGET_ENTRY = _DllMain@12
 
 TARGET_CFLAGS =\
 TARGET_ENTRY = _DllMain@12
 
 TARGET_CFLAGS =\
-       -W \
+       -Wall \
        -nostdinc \
        -nostdlib \
        -fno-builtin \
        -nostdinc \
        -nostdlib \
        -fno-builtin \
@@ -96,7 +96,9 @@ OBJECTS_UNISTD = \
  unistd/dup.o \
  unistd/getcwd.o \
  unistd/getpid.o \
  unistd/dup.o \
  unistd/getcwd.o \
  unistd/getpid.o \
- unistd/getppid.o
+ unistd/getppid.o \
+ unistd/read.o \
+ unistd/write.o
 
 OBJECTS = \
        $(OBJECTS_MISC) \
 
 OBJECTS = \
        $(OBJECTS_MISC) \
@@ -117,9 +119,6 @@ DEP_OBJECTS = $(OBJECTS)
 
 include $(TOOLS_PATH)/depend.mk
 
 
 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
 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
 
                -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
 # EOF