342 fi |
342 fi |
343 while true |
343 while true |
344 do |
344 do |
345 |
345 |
346 CFLAGS="$CFLAGS -DLINUX" |
346 CFLAGS="$CFLAGS -DLINUX" |
347 LDFLAGS="$LDFLAGS -lpthread -ldl -lm -lldap" |
347 LDFLAGS="$LDFLAGS -lpthread -ldl -lm -lldap -llber" |
348 cat >> $TEMP_DIR/make.mk << __EOF__ |
348 cat >> $TEMP_DIR/make.mk << __EOF__ |
349 # platform dependend source files |
349 # platform dependend source files |
350 PLATFORM_DAEMONOBJ = event_linux.o |
350 PLATFORM_DAEMONOBJ = event_linux.o |
351 |
351 |
352 # platform dependend vars |
352 # platform dependend vars |
375 fi |
375 fi |
376 while true |
376 while true |
377 do |
377 do |
378 |
378 |
379 CFLAGS="$CFLAGS -DBSD -I/usr/local/include" |
379 CFLAGS="$CFLAGS -DBSD -I/usr/local/include" |
380 LDFLAGS="$LDFLAGS -lpthread -lm -lldap" |
380 LDFLAGS="$LDFLAGS -lpthread -lm -lldap -llber" |
381 cat >> $TEMP_DIR/make.mk << __EOF__ |
381 cat >> $TEMP_DIR/make.mk << __EOF__ |
382 # platform dependend source files |
382 # platform dependend source files |
383 PLATFORM_DAEMONOBJ = event_bsd.o |
383 PLATFORM_DAEMONOBJ = event_bsd.o |
384 |
384 |
385 # platform dependend vars |
385 # platform dependend vars |
405 fi |
405 fi |
406 while true |
406 while true |
407 do |
407 do |
408 |
408 |
409 CFLAGS="$CFLAGS -DBSD -DOSX" |
409 CFLAGS="$CFLAGS -DBSD -DOSX" |
410 LDFLAGS="$LDFLAGS -lpthread -ldl -lm -lldap" |
410 LDFLAGS="$LDFLAGS -lpthread -ldl -lm -lldap -llber" |
411 cat >> $TEMP_DIR/make.mk << __EOF__ |
411 cat >> $TEMP_DIR/make.mk << __EOF__ |
412 # platform dependend source files |
412 # platform dependend source files |
413 PLATFORM_DAEMONOBJ = event_bsd.o |
413 PLATFORM_DAEMONOBJ = event_bsd.o |
414 |
414 |
415 # platform dependend vars |
415 # platform dependend vars |