doing some maintenance on the posix build system, getting in sync with reactos base.
[reactos.git] / posix / lib / psxdll / Makefile
1 # $Id: Makefile,v 1.14 2003/01/05 18:27:19 robd Exp $
2
3 PATH_TO_TOP = ../../../reactos
4
5 PATH_TO_PSX_TOP = ../..
6
7 TARGET_TYPE = dynlink
8
9 TARGET_NAME = psxdll
10
11 TARGET_LIBPATH = $(PATH_TO_TOP)/dk/psx/lib
12
13 TARGET_SDKLIBS = ntdll.a
14
15 TARGET_BASE = 0x68EB0000
16
17 TARGET_ENTRY = _DllMain@12
18
19 TARGET_CFLAGS =\
20 -Wall \
21 -nostdinc \
22 -nostdlib \
23 -fno-builtin \
24 -I$(PATH_TO_PSX_TOP)/include \
25 -I$(PATH_TO_TOP)/include \
26 -D__PSXDLL__ \
27 -D__PSX_DEBUG_WANT_ALL__
28
29 TARGET_LFLAGS = -nostartfiles
30
31 OBJECTS_MISC = \
32 misc/main.o \
33 misc/init.o \
34 misc/heap.o \
35 misc/interlock.o \
36 misc/safeobj.o \
37 misc/spawn.o \
38 misc/path.o \
39 misc/pdata.o \
40 misc/fdtable.o \
41 misc/tls.o
42
43 OBJECTS_DIRENT = \
44 dirent/opendir.o \
45 dirent/readdir.o \
46 dirent/closedir.o
47
48 OBJECTS_DLFCN = \
49 dlfcn/dlopen.o \
50 dlfcn/dlclose.o \
51 dlfcn/dlsym.o \
52 dlfcn/dlerror.o
53
54 OBJECTS_ERRNO = \
55 errno/errno.o
56
57 OBJECTS_FCNTL = \
58 fcntl/open.o \
59 fcntl/fcntl.o
60
61 OBJECTS_LIBGEN = \
62 libgen/basename.o
63
64 OBJECTS_SCHED = \
65 sched/yield.o
66
67 OBJECTS_SIGNAL = \
68 pthread/kill.o \
69 signal/raise.o
70
71 OBJECTS_STDLIB = \
72 stdlib/abort.o \
73 stdlib/malloc.o \
74 stdlib/exit.o
75
76 OBJECTS_STRING = \
77 string/strdup.o \
78 string/strerror.o
79
80 OBJECTS_PTHREAD = \
81 pthread/create.o \
82 pthread/exit.o \
83 pthread/join.o \
84 pthread/mutex.o \
85 pthread/self.o
86
87 OBJECTS_SYS_STAT = \
88 sys/stat/chmod.o \
89 sys/stat/mkdir.o \
90 sys/stat/mkfifo.o \
91 sys/stat/mknod.o \
92 sys/stat/stat.o \
93 sys/stat/umask.o
94
95 OBJECTS_SYS_UTSNAME = \
96 sys/utsname/uname.o
97
98 OBJECTS_UNISTD = \
99 unistd/access.o \
100 unistd/close.o \
101 unistd/dup.o \
102 unistd/fork.o \
103 unistd/getcwd.o \
104 unistd/getpid.o \
105 unistd/getppid.o \
106 unistd/read.o \
107 unistd/sleep.o \
108 unistd/write.o
109
110 OBJECTS = \
111 $(OBJECTS_MISC) \
112 $(OBJECTS_DIRENT) \
113 $(OBJECTS_DLFCN) \
114 $(OBJECTS_ERRNO) \
115 $(OBJECTS_FCNTL) \
116 $(OBJECTS_LIBGEN) \
117 $(OBJECTS_SCHED) \
118 $(OBJECTS_SIGNAL) \
119 $(OBJECTS_STDLIB) \
120 $(OBJECTS_STRING) \
121 $(OBJECTS_PTHREAD) \
122 $(OBJECTS_SYS_STAT) \
123 $(OBJECTS_SYS_UTSNAME) \
124 $(OBJECTS_UNISTD)
125
126 #TARGET_OBJECTS = $(TARGET_NAME).o
127
128 TARGET_OBJECTS = \
129 $(OBJECTS_MISC) \
130 $(OBJECTS_DIRENT) \
131 $(OBJECTS_DLFCN) \
132 $(OBJECTS_ERRNO) \
133 $(OBJECTS_FCNTL) \
134 $(OBJECTS_LIBGEN) \
135 $(OBJECTS_SCHED) \
136 $(OBJECTS_SIGNAL) \
137 $(OBJECTS_STDLIB) \
138 $(OBJECTS_STRING) \
139 $(OBJECTS_PTHREAD) \
140 $(OBJECTS_SYS_STAT) \
141 $(OBJECTS_SYS_UTSNAME) \
142 $(OBJECTS_UNISTD)
143
144 #TARGET_CLEAN = $(OBJECTS) csrapi.a
145
146 include $(PATH_TO_TOP)/rules.mak
147
148 include $(TOOLS_PATH)/helper.mk
149
150
151 #DEP_OBJECTS = $(OBJECTS)
152
153 #include $(TOOLS_PATH)/depend.mk
154
155 #DTFLAGS = -k -l $@
156
157 #$(TARGET_NAME).a: $(TARGET_NAME).def
158 # $(DLLTOOL) \
159 # $(DTFLAGS) \
160 # -D $(TARGET_NAME).dll \
161 # -d $(TARGET_NAME).def
162
163 #csrapi.a: csrapi.def
164 # $(DLLTOOL) \
165 # $(DTFLAGS) \
166 # -D ntdll.dll \
167 # -d csrapi.def
168
169 #$(TARGET_NAME).o: csrapi.a $(OBJECTS)
170 # $(LD) -r $(OBJECTS) -o $(TARGET_NAME).o
171
172 # EOF