Recommended way of creating makefiles for new Linux plugin?

Problems building or running the engine, queries about how to use features etc.
stodge
Goblin
Posts: 217
Joined: Thu Oct 24, 2002 4:12 am
x 1

Recommended way of creating makefiles for new Linux plugin?

Post by stodge »

I thought I would try to resurrect an old plugin I started a while ago. I'm developing it under Linux so I need to create some new Makefiles for the plugin. I figured that I could copy make files from an existing plugin and make some changes for the filenames I have. Except this doesn't work - the existing make files look for dependencies in .dep (.Po files?) etc.

So what is the recommended way of creating makefiles for a new Linux based plugin from scratch?

Thanks
stodge
Goblin
Posts: 217
Joined: Thu Oct 24, 2002 4:12 am
x 1

Post by stodge »

With help from people on IRC:

- Copy an existing plugin
- Remove all Makefile and Makefile.in files from the new plugin directory and from Plugins
- Add the new directory (i.e. the plugin name) to Makefile.am in Plugins
- Copy the lines for an existing plugin in configure.in in the ogrenew directory
- From ogrenew run bootstrap and configure and confirm the makefiles were created for the new plugin
- Type make!

I think that's it.