Trouble setting up separate iTunes libraries for iPhone and iPod
The library and iTunes media folder are two separate entities.
The media folder will hold everything contained within the library.
The library file will hold items such as playlists and preferences.
You could create the two libraries then go to preferences and edit the iTunes media folder locations. 
You will need two separate folders with the specified media in each.