any1 know if there is a way to create a dll project without use __declspec dllimport/dllexport at each function ?

what i am actually need here is, convert a static lib project into a dll project. and this project contains couple hundred files.
the only way that i am aware of to make a dll is by put __declspec dllimport/dllexport infront of each function. which will take me days to complete that task.

so i'd like to ask if any1 know there is a way that i can get away with that ? maybe a macro or a way of build the project, so it will automatically grab all the functions and export them to a dll.

Thanks