C++ SDL Makefile for MPW on Mac OS 9

M

MPD

Hi, I'm new to the MPW (Mac Programmers Workshop -- Apple's now freely
avilable development tools for Classic Mac OS's) and wish to construct
a simple 2D game using MPW's C++ compiler and SDL.

However I don't know how to write a C++ makefile that initializes both
SDL and C++ (not C) in MPW. I have got the SDL examples that came with
the Mac Classic SDL Development Binaries to compile however they are
all written in straight C and as such don't use object orientation
(and MPW passes the code to a C compiler called rather than use a
backwards compatible C++ compiler).

I know that this is down to the makefile MPW needs to compile C++
rather than C programs but I have no idea how to write one as I've
only started using MPW in the last 2 days. Can anyone tell me how to
construt a C++ makefile that initializes a simple C++ class along with
all the relevant SDL header files and Libraries:

simple_class.h

main.cpp // object of simple_class gets initialised here
// also simple SDL window initialised

Very simple stuff I know, but I'm stuck! Any help will be much
appreciated, thanks!!
 
P

Paul Russell

MPD said:
Hi, I'm new to the MPW (Mac Programmers Workshop -- Apple's now freely
avilable development tools for Classic Mac OS's) and wish to construct
a simple 2D game using MPW's C++ compiler and SDL.

However I don't know how to write a C++ makefile that initializes both
SDL and C++ (not C) in MPW. I have got the SDL examples that came with
the Mac Classic SDL Development Binaries to compile however they are
all written in straight C and as such don't use object orientation
(and MPW passes the code to a C compiler called rather than use a
backwards compatible C++ compiler).

I know that this is down to the makefile MPW needs to compile C++
rather than C programs but I have no idea how to write one as I've
only started using MPW in the last 2 days. Can anyone tell me how to
construt a C++ makefile that initializes a simple C++ class along with
all the relevant SDL header files and Libraries:

Just use MPW's CreateMake tool. Invoke it via the commando interface and
then just pick the source files that you need to include in the build.

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top