~ubuntu-branches/ubuntu/raring/clamav/raring-updates

« back to all changes in this revision

Viewing changes to win32/3rdparty/pthreads/Bmakefile

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2011-06-18 11:56:34 UTC
  • mfrom: (0.35.21 sid)
  • Revision ID: james.westby@ubuntu.com-20110618115634-u2lovivet0qx34d0
Tags: 0.97.1+dfsg-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop build-dep on electric-fence (in Universe)
  - Add apparmor profiles for clamd and freshclam along with maintainer
    script changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# This makefile is compatible with BCB make.  Use "make -fBMakefile" to compile.
2
 
3
 
# The variables $DLLDEST and $LIBDEST hold the destination directories for the
4
 
# dll and the lib, respectively. Probably all that needs to change is $DEVROOT.
5
 
#
6
 
# Currently only the recommended pthreadBC.dll is built by this makefile.
7
 
#
8
 
 
9
 
 
10
 
DLL_VER = 2
11
 
 
12
 
DEVROOT = .
13
 
 
14
 
DLLDEST = $(DEVROOT)\DLL
15
 
LIBDEST = $(DEVROOT)\DLL
16
 
 
17
 
DLLS    = pthreadBC$(DLL_VER).dll
18
 
 
19
 
OPTIM   = /O2
20
 
 
21
 
RC      = brcc32
22
 
RCFLAGS = -i.
23
 
 
24
 
CFLAGS  = /q /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H=1 /4 /tWD /tWM \
25
 
          /w-aus /w-asc /w-par
26
 
 
27
 
#C cleanup code
28
 
BCFLAGS = $(PTW32_FLAGS) $(CFLAGS)
29
 
 
30
 
# Agregate modules for inlinability
31
 
DLL_OBJS        = \
32
 
                attr.obj \
33
 
                barrier.obj \
34
 
                cancel.obj \
35
 
                cleanup.obj \
36
 
                condvar.obj \
37
 
                create.obj \
38
 
                dll.obj \
39
 
                errno.obj \
40
 
                exit.obj \
41
 
                fork.obj \
42
 
                global.obj \
43
 
                misc.obj \
44
 
                mutex.obj \
45
 
                nonportable.obj \
46
 
                private.obj \
47
 
                rwlock.obj \
48
 
                sched.obj \
49
 
                semaphore.obj \
50
 
                signal.obj \
51
 
                spin.obj \
52
 
                sync.obj \
53
 
                tsd.obj
54
 
 
55
 
INCL    = config.h implement.h semaphore.h pthread.h need_errno.h
56
 
 
57
 
ATTR_SRCS       = \
58
 
                pthread_attr_init.c \
59
 
                pthread_attr_destroy.c \
60
 
                pthread_attr_getdetachstate.c \
61
 
                pthread_attr_setdetachstate.c \
62
 
                pthread_attr_getstackaddr.c \
63
 
                pthread_attr_setstackaddr.c \
64
 
                pthread_attr_getstacksize.c \
65
 
                pthread_attr_setstacksize.c \
66
 
                pthread_attr_getscope.c \
67
 
                pthread_attr_setscope.c
68
 
 
69
 
BARRIER_SRCS = \
70
 
                pthread_barrier_init.c \
71
 
                pthread_barrier_destroy.c \
72
 
                pthread_barrier_wait.c \
73
 
                pthread_barrierattr_init.c \
74
 
                pthread_barrierattr_destroy.c \
75
 
                pthread_barrierattr_setpshared.c \
76
 
                pthread_barrierattr_getpshared.c
77
 
 
78
 
CANCEL_SRCS     = \
79
 
                pthread_setcancelstate.c \
80
 
                pthread_setcanceltype.c \
81
 
                pthread_testcancel.c \
82
 
                pthread_cancel.c 
83
 
 
84
 
CONDVAR_SRCS    = \
85
 
                ptw32_cond_check_need_init.c \
86
 
                pthread_condattr_destroy.c \
87
 
                pthread_condattr_getpshared.c \
88
 
                pthread_condattr_init.c \
89
 
                pthread_condattr_setpshared.c \
90
 
                pthread_cond_destroy.c \
91
 
                pthread_cond_init.c \
92
 
                pthread_cond_signal.c \
93
 
                pthread_cond_wait.c
94
 
 
95
 
EXIT_SRCS       = \
96
 
                pthread_exit.c
97
 
 
98
 
MISC_SRCS       = \
99
 
                pthread_equal.c \
100
 
                pthread_getconcurrency.c \
101
 
                pthread_once.c \
102
 
                pthread_self.c \
103
 
                pthread_setconcurrency.c \
104
 
                ptw32_calloc.c \
105
 
                ptw32_MCS_lock.c \
106
 
                ptw32_new.c \
107
 
                w32_CancelableWait.c
108
 
 
109
 
MUTEX_SRCS      = \
110
 
                ptw32_mutex_check_need_init.c \
111
 
                pthread_mutex_init.c \
112
 
                pthread_mutex_destroy.c \
113
 
                pthread_mutexattr_init.c \
114
 
                pthread_mutexattr_destroy.c \
115
 
                pthread_mutexattr_getpshared.c \
116
 
                pthread_mutexattr_setpshared.c \
117
 
                pthread_mutexattr_settype.c \
118
 
                pthread_mutexattr_gettype.c \
119
 
                pthread_mutex_lock.c \
120
 
                pthread_mutex_timedlock.c \
121
 
                pthread_mutex_unlock.c \
122
 
                pthread_mutex_trylock.c
123
 
 
124
 
NONPORTABLE_SRCS = \
125
 
                pthread_mutexattr_setkind_np.c \
126
 
                pthread_mutexattr_getkind_np.c \
127
 
                pthread_getw32threadhandle_np.c \
128
 
                pthread_delay_np.c \
129
 
                pthread_num_processors_np.c \
130
 
                pthread_win32_attach_detach_np.c \
131
 
                pthread_timechange_handler_np.c 
132
 
 
133
 
PRIVATE_SRCS    = \
134
 
                ptw32_is_attr.c \
135
 
                ptw32_processInitialize.c \
136
 
                ptw32_processTerminate.c \
137
 
                ptw32_threadStart.c \
138
 
                ptw32_threadDestroy.c \
139
 
                ptw32_tkAssocCreate.c \
140
 
                ptw32_tkAssocDestroy.c \
141
 
                ptw32_callUserDestroyRoutines.c \
142
 
                ptw32_timespec.c \
143
 
                ptw32_relmillisecs.c \
144
 
                ptw32_throw.c \
145
 
                ptw32_InterlockedCompareExchange.c \
146
 
                ptw32_getprocessors.c
147
 
 
148
 
RWLOCK_SRCS     = \
149
 
                ptw32_rwlock_check_need_init.c \
150
 
                ptw32_rwlock_cancelwrwait.c \
151
 
                pthread_rwlock_init.c \
152
 
                pthread_rwlock_destroy.c \
153
 
                pthread_rwlockattr_init.c \
154
 
                pthread_rwlockattr_destroy.c \
155
 
                pthread_rwlockattr_getpshared.c \
156
 
                pthread_rwlockattr_setpshared.c \
157
 
                pthread_rwlock_rdlock.c \
158
 
                pthread_rwlock_timedrdlock.c \
159
 
                pthread_rwlock_wrlock.c \
160
 
                pthread_rwlock_timedwrlock.c \
161
 
                pthread_rwlock_unlock.c \
162
 
                pthread_rwlock_tryrdlock.c \
163
 
                pthread_rwlock_trywrlock.c
164
 
 
165
 
SCHED_SRCS      = \
166
 
                pthread_attr_setschedpolicy.c \
167
 
                pthread_attr_getschedpolicy.c \
168
 
                pthread_attr_setschedparam.c \
169
 
                pthread_attr_getschedparam.c \
170
 
                pthread_attr_setinheritsched.c \
171
 
                pthread_attr_getinheritsched.c \
172
 
                pthread_setschedparam.c \
173
 
                pthread_getschedparam.c \
174
 
                sched_get_priority_max.c \
175
 
                sched_get_priority_min.c \
176
 
                sched_setscheduler.c \
177
 
                sched_getscheduler.c \
178
 
                sched_yield.c
179
 
 
180
 
SEMAPHORE_SRCS = \
181
 
                sem_init.c \
182
 
                sem_destroy.c \
183
 
                sem_trywait.c \
184
 
                sem_timedwait.c \
185
 
                sem_wait.c \
186
 
                sem_post.c \
187
 
                sem_post_multiple.c \
188
 
                sem_getvalue.c \
189
 
                sem_open.c \
190
 
                sem_close.c \
191
 
                sem_unlink.c
192
 
 
193
 
SPIN_SRCS       = \
194
 
                ptw32_spinlock_check_need_init.c \
195
 
                pthread_spin_init.c \
196
 
                pthread_spin_destroy.c \
197
 
                pthread_spin_lock.c \
198
 
                pthread_spin_unlock.c \
199
 
                pthread_spin_trylock.c
200
 
 
201
 
SYNC_SRCS       = \
202
 
                pthread_detach.c \
203
 
                pthread_join.c
204
 
 
205
 
TSD_SRCS        = \
206
 
                pthread_key_create.c \
207
 
                pthread_key_delete.c \
208
 
                pthread_setspecific.c \
209
 
                pthread_getspecific.c
210
 
 
211
 
 
212
 
all: clean $(DLLS)
213
 
 
214
 
realclean: clean
215
 
        if exist pthread*.dll del pthread*.dll
216
 
        if exist pthread*.lib del pthread*.lib
217
 
        if exist *.stamp del *.stamp
218
 
 
219
 
clean:
220
 
        if exist *.obj del *.obj
221
 
        if exist *.ilk del *.ilk
222
 
        if exist *.ilc del *.ilc
223
 
        if exist *.ild del *.ild
224
 
        if exist *.ilf del *.ilf
225
 
        if exist *.ils del *.ils
226
 
        if exist *.tds del *.tds
227
 
        if exist *.pdb del *.pdb
228
 
        if exist *.exp del *.exp
229
 
        if exist *.map del *.map
230
 
        if exist *.o del *.o
231
 
        if exist *.i del *.i
232
 
        if exist *.res del *.res
233
 
 
234
 
 
235
 
install: $(DLLS)
236
 
        copy pthread*.dll $(DLLDEST)
237
 
        copy pthread*.lib $(LIBDEST)
238
 
 
239
 
$(DLLS): $(DLL_OBJS) version.res
240
 
        ilink32 /Tpd /Gi c0d32x.obj $(DLL_OBJS), \
241
 
                $@, ,\
242
 
                cw32mti.lib import32.lib, ,\
243
 
                version.res
244
 
 
245
 
.c.obj:
246
 
        $(CC) $(OPTIM) $(BCFLAGS) -c $<
247
 
 
248
 
.rc.res:
249
 
        $(RC) $(RCFLAGS) $<
250
 
 
251
 
attr.obj:       attr.c $(ATTR_SRCS) $(INCL)
252
 
barrier.obj:    barrier.c $(BARRIER_SRCS) $(INCL)
253
 
cancel.obj:     cancel.c $(CANCEL_SRCS) $(INCL)
254
 
condvar.obj:    condvar.c $(CONDVAR_SRCS) $(INCL)
255
 
exit.obj:       exit.c $(EXIT_SRCS) $(INCL)
256
 
misc.obj:       misc.c $(MISC_SRCS) $(INCL)
257
 
mutex.obj:      mutex.c $(MUTEX_SRCS) $(INCL)
258
 
nonportable.obj:        nonportable.c $(NONPORTABLE_SRCS) $(INCL)
259
 
private.obj:    private.c $(PRIVATE_SRCS) $(INCL)
260
 
rwlock.obj:     rwlock.c $(RWLOCK_SRCS) $(INCL)
261
 
sched.obj:      sched.c $(SCHED_SRCS) $(INCL)
262
 
semaphore.obj:  semaphore.c $(SEMAPHORE_SRCS) $(INCL)
263
 
spin.obj:       spin.c $(SPIN_SRCS) $(INCL)
264
 
sync.obj:       sync.c $(SYNC_SRCS) $(INCL)
265
 
tsd.obj:        tsd.c $(TSD_SRCS) $(INCL)
266
 
version.res:    version.rc $(INCL)