328 break |
328 break |
329 fi |
329 fi |
330 while true |
330 while true |
331 do |
331 do |
332 |
332 |
333 CFLAGS="CFLAGS -DLINUX" |
333 CFLAGS="$CFLAGS -DLINUX" |
334 LDFLAGS="LDFLAGS -lpthread -ldl -lm -lldap" |
334 LDFLAGS="$LDFLAGS -lpthread -ldl -lm -lldap" |
335 cat >> $TEMP_DIR/make.mk << __EOF__ |
335 cat >> $TEMP_DIR/make.mk << __EOF__ |
336 # platform dependend source files |
336 # platform dependend source files |
337 PLATFORM_DAEMONOBJ = event_linux.o |
337 PLATFORM_DAEMONOBJ = event_linux.o |
338 |
338 |
339 # platform dependend vars |
339 # platform dependend vars |
357 break |
357 break |
358 fi |
358 fi |
359 while true |
359 while true |
360 do |
360 do |
361 |
361 |
362 CFLAGS="CFLAGS -DBSD" |
362 CFLAGS="$CFLAGS -DBSD" |
363 LDFLAGS="LDFLAGS -lpthread -lm -lldap" |
363 LDFLAGS="$LDFLAGS -lpthread -lm -lldap" |
364 cat >> $TEMP_DIR/make.mk << __EOF__ |
364 cat >> $TEMP_DIR/make.mk << __EOF__ |
365 # platform dependend source files |
365 # platform dependend source files |
366 PLATFORM_DAEMONOBJ = event_bsd.o |
366 PLATFORM_DAEMONOBJ = event_bsd.o |
367 |
367 |
368 # platform dependend vars |
368 # platform dependend vars |
383 break |
383 break |
384 fi |
384 fi |
385 while true |
385 while true |
386 do |
386 do |
387 |
387 |
388 CFLAGS="CFLAGS -DBSD -DOSX" |
388 CFLAGS="$CFLAGS -DBSD -DOSX" |
389 LDFLAGS="LDFLAGS -lpthread -ldl -lm -lldap" |
389 LDFLAGS="$LDFLAGS -lpthread -ldl -lm -lldap" |
390 cat >> $TEMP_DIR/make.mk << __EOF__ |
390 cat >> $TEMP_DIR/make.mk << __EOF__ |
391 # platform dependend source files |
391 # platform dependend source files |
392 PLATFORM_DAEMONOBJ = event_bsd.o |
392 PLATFORM_DAEMONOBJ = event_bsd.o |
393 |
393 |
394 # platform dependend vars |
394 # platform dependend vars |
409 break |
409 break |
410 fi |
410 fi |
411 while true |
411 while true |
412 do |
412 do |
413 |
413 |
414 CFLAGS="CFLAGS -DSOLARIS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" |
414 CFLAGS="$CFLAGS -DSOLARIS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" |
415 LDFLAGS="LDFLAGS -lsocket -lnsl -lsendfile -lposix4 -lpthread -ldl -lm -lmd -lldap" |
415 LDFLAGS="$LDFLAGS -lsocket -lnsl -lsendfile -lposix4 -lpthread -ldl -lm -lmd -lldap" |
416 cat >> $TEMP_DIR/make.mk << __EOF__ |
416 cat >> $TEMP_DIR/make.mk << __EOF__ |
417 # platform dependend source files |
417 # platform dependend source files |
418 PLATFORM_DAEMONOBJ = event_solaris.o |
418 PLATFORM_DAEMONOBJ = event_solaris.o |
419 |
419 |
420 # platform dependend vars |
420 # platform dependend vars |