introducing __PdxSpawnPosixProcess(). Still some linker warnings, will solve tomorrow
[reactos.git] / posix / lib / psxdll / Makefile
1 # $Id: Makefile,v 1.4 2002/03/07 06:07:31 hyperion Exp $
2
3 PATH_TO_TOP = ../../../..
4
5 TARGET_TYPE = dynlink
6
7 TARGET_NAME = psxdll
8
9 TARGET_LIBPATH = $(PATH_TO_TOP)/dk/psx/lib
10
11 TARGET_LFLAGS = -nostartfiles
12
13 TARGET_SDKLIBS = ntdll.a
14
15 TARGET_BASE = 0x68EB0000
16
17 TARGET_ENTRY = _DllMain@12
18
19 TARGET_CFLAGS =\
20 -W \
21 -nostdinc \
22 -nostdlib \
23 -fno-builtin \
24 -I$(PATH_TO_TOP)/subsys/psx/include \
25 -I$(PATH_TO_TOP)/include \
26 -D__PSXDLL__ \
27 -D__PSX_DEBUG_WANT_ALL__
28
29 TARGET_OBJECTS = $(TARGET_NAME).o
30
31 TARGET_CLEAN = $(OBJECTS)
32
33 include $(PATH_TO_TOP)/rules.mak
34 include $(TOOLS_PATH)/helper.mk
35
36 OBJECTS_MISC = \
37 misc/main.o \
38 misc/init.o \
39 misc/heap.o \
40 misc/interlock.o \
41 misc/safeobj.o \
42 misc/spawn.o \
43 misc/path.o \
44 misc/fdtable.o
45
46 OBJECTS_DIRENT = \
47 dirent/opendir.o \
48 dirent/readdir.o \
49 dirent/closedir.o
50
51 OBJECTS_DLFCN = \
52 dlfcn/dlopen.o \
53 dlfcn/dlclose.o \
54 dlfcn/dlsym.o \
55 dlfcn/dlerror.o
56
57 OBJECTS_ERRNO = \
58 errno/errno.o
59
60 OBJECTS_FCNTL = \
61 fcntl/open.o \
62 fcntl/fcntl.o
63
64 OBJECTS_LIBGEN = \
65 libgen/basename.o
66
67 OBJECTS_SCHED = \
68 sched/yield.o
69
70 OBJECTS_SIGNAL = \
71 pthread/kill.o \
72 signal/raise.o
73
74 OBJECTS_STDLIB = \
75 stdlib/abort.o \
76 stdlib/malloc.o \
77 stdlib/exit.o
78
79 OBJECTS_STRING = \
80 string/strdup.o \
81 string/strerror.o
82
83 OBJECTS_PTHREAD = \
84 pthread/create.o \
85 pthread/exit.o \
86 pthread/join.o \
87 pthread/mutex.o \
88 pthread/self.o
89
90 OBJECTS_SYS_UTSNAME = \
91 sys/utsname/uname.o
92
93 OBJECTS_UNISTD = \
94 unistd/close.o \
95 unistd/dup.o \
96 unistd/getcwd.o \
97 unistd/getpid.o \
98 unistd/getppid.o
99
100 OBJECTS = \
101 $(OBJECTS_MISC) \
102 $(OBJECTS_DIRENT) \
103 $(OBJECTS_DLFCN) \
104 $(OBJECTS_ERRNO) \
105 $(OBJECTS_FCNTL) \
106 $(OBJECTS_LIBGEN) \
107 $(OBJECTS_SCHED) \
108 $(OBJECTS_SIGNAL) \
109 $(OBJECTS_STDLIB) \
110 $(OBJECTS_STRING) \
111 $(OBJECTS_PTHREAD) \
112 $(OBJECTS_SYS_UTSNAME) \
113 $(OBJECTS_UNISTD)
114
115 DEP_OBJECTS = $(OBJECTS)
116
117 include $(TOOLS_PATH)/depend.mk
118
119 $(TARGET_NAME).o: $(OBJECTS)
120 $(LD) -r $(OBJECTS) -o $(TARGET_NAME).o
121
122 DTFLAGS = -k -l $@
123
124 $(TARGET_NAME).a: $(TARGET_NAME).def
125 $(DLLTOOL) \
126 $(DTFLAGS) \
127 -D $(TARGET_NAME).dll \
128 -d $(TARGET_NAME).def
129
130 # EOF