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