which perl #### /opt/local/bin/perl #### #!/usr/bin/env perl #### #!/usr/bin/perl #### os := $(shell uname) libboxr : boxr.c # MacOSX ifeq ($(os),Darwin) gcc -fno-common -c boxr.c gcc -dynamiclib -install_name /opt/local/lib/libboxr.1.dylib \ -compatibility_version 1.0 -current_version 1.0.0 \ -o libboxr.1.0.0.dylib boxr.o #Linux else gcc -shared -fPIC -g -Wall -Wl,-soname,libboxr.so.1 \ -o libboxr.so.1.0.0 -lc boxr.c endif #### WriteMakefile( NAME => 'Boxr', VERSION_FROM => 'lib/Boxr.pm', [snip] LIBS => ['-lfoo -lbar'], [snip]