309 # general dependencies |
309 # general dependencies |
310 CFLAGS= |
310 CFLAGS= |
311 LDFLAGS= |
311 LDFLAGS= |
312 while true |
312 while true |
313 do |
313 do |
314 if ! isplatform "linux"; then |
|
315 break |
|
316 fi |
|
317 while true |
314 while true |
318 do |
315 do |
319 |
316 |
320 CFLAGS+="-DLINUX" |
|
321 LDFLAGS+="-lpthread -ldl -lm -lldap" |
|
322 cat >> $TEMP_DIR/make.mk << __EOF__ |
|
323 # platform dependend source files |
|
324 PLATFORM_DAEMONOBJ = event_linux.o |
|
325 |
|
326 # platform dependend vars |
|
327 OBJ_EXT = .o |
|
328 LIB_EXT = .so |
|
329 APP_EXT = |
|
330 |
|
331 __EOF__ |
|
332 |
|
333 break |
|
334 done |
|
335 |
|
336 break |
|
337 done |
|
338 while true |
|
339 do |
|
340 if ! isplatform "bsd"; then |
|
341 break |
|
342 fi |
|
343 if isplatform "macos"; then |
|
344 break |
|
345 fi |
|
346 while true |
|
347 do |
|
348 |
|
349 CFLAGS+="-DBSD" |
|
350 LDFLAGS+="-lpthread -lm -lldap" |
|
351 cat >> $TEMP_DIR/make.mk << __EOF__ |
|
352 # platform dependend source files |
|
353 PLATFORM_DAEMONOBJ = event_bsd.o |
|
354 |
|
355 # platform dependend vars |
|
356 OBJ_EXT = .o |
|
357 LIB_EXT = .so |
|
358 APP_EXT = |
|
359 |
|
360 __EOF__ |
|
361 |
|
362 break |
|
363 done |
|
364 |
|
365 break |
|
366 done |
|
367 while true |
|
368 do |
|
369 if ! isplatform "solaris"; then |
|
370 break |
|
371 fi |
|
372 while true |
|
373 do |
|
374 |
|
375 CFLAGS+="-DSOLARIS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" |
|
376 LDFLAGS+="-lsocket -lnsl -lsendfile -lposix4 -lpthread -ldl -lm -lmd -lldap" |
|
377 cat >> $TEMP_DIR/make.mk << __EOF__ |
|
378 # platform dependend source files |
|
379 PLATFORM_DAEMONOBJ = event_solaris.o |
|
380 |
|
381 # platform dependend vars |
|
382 OBJ_EXT = .o |
|
383 LIB_EXT = .so |
|
384 APP_EXT = |
|
385 |
|
386 __EOF__ |
|
387 |
317 |
388 break |
318 break |
389 done |
319 done |
390 |
320 |
391 break |
321 break |