Merging baseq3 and missionpack builds into one
Posted: Wed Feb 29, 2012 6:12 pm
For the sake of de-cluttering and simplifying the code of an ioquake3 mod I'm working on, I've been merging the baseq3 and missionpack builds with the aim of building only missionpack builds, not baseq3.
This is more or less how I've done it:
1. Removed all defs and code within #ifndef MISSIONPACK ... #endif
2. Removed #ifdef MISSIONPACK's and the corresponding #endif's, removed everything in the #else ... #endif's
3. Added cg_newdraw.o and ui_shared.o for the cgame baseq3 build in the makefile
4. Tried to build the fucker (I'm using MinGW)
The error I get is after cg_weapons.o in cgame baseq3 when the compiler reaches ui_shared.o (so cg_newdraw.o is not the issue):
make[2]: *** No rule to make target 'build/release-mingw32-x86/baseq3/ui/ui_shared.o', needed by 'build/release-mingw32-x86/baseq3/cgamex86.dll'. Stop.
Fair enough, I double-check the makefile and ui_shared.c. I don't see anything wrong there. Edit the makefile to replace the Q3 vm objects etc. with missionpack objects, renamed accordingly. Try again, same error.
I'm out of ideas... what am I doing wrong? I attached the makefile in case the problem is with that. Any help is appreciated...
This is more or less how I've done it:
1. Removed all defs and code within #ifndef MISSIONPACK ... #endif
2. Removed #ifdef MISSIONPACK's and the corresponding #endif's, removed everything in the #else ... #endif's
3. Added cg_newdraw.o and ui_shared.o for the cgame baseq3 build in the makefile
4. Tried to build the fucker (I'm using MinGW)
The error I get is after cg_weapons.o in cgame baseq3 when the compiler reaches ui_shared.o (so cg_newdraw.o is not the issue):
make[2]: *** No rule to make target 'build/release-mingw32-x86/baseq3/ui/ui_shared.o', needed by 'build/release-mingw32-x86/baseq3/cgamex86.dll'. Stop.
Fair enough, I double-check the makefile and ui_shared.c. I don't see anything wrong there. Edit the makefile to replace the Q3 vm objects etc. with missionpack objects, renamed accordingly. Try again, same error.
I'm out of ideas... what am I doing wrong? I attached the makefile in case the problem is with that. Any help is appreciated...