Hallo,
>Daniel Allsopp wrote:
>>
>>2. Compile with -O0 until your project is complete? That's what I'm doing.
>>3. Compile with WinUAE - much nicer and billions of times faster but
>>requires horrible PC
>>
>>
>He uses pegasos, don't think uae will be much faster :) And also,
>MorphOS has newer MUI 3.9, much nicer ;)
.... haha .. if you have money ... ;-))
I prefer to split the big project into small parts.
Than I make a header-file (*.h), which contains:
- all defines
- all own structures
- all global variables
- prototypes of all functions, which are not static
- ... maybe more global stuff
This headerfile is included in each "part-file".
Than I create a makefile for gcc, which is stored in the projects directory.
This seems to be unneccessary work, but the big advantage of this is,
that gcc now only must compile the partfile, which was altered.
And the compilation is done simply by call make form the projects directory.
A makefile may look like:
------ snip here ---------------
# Makefile for AHI.ptool
# <- this marks a comment
#
# compiler arguments
CFLAGS = -mstrict-align -O2 -s -noixemul
# global definitions
DEFS =
# linker arguments
LDFLAGS = -nostartfiles -O2 -s -mstrict-align -noixemul
# linkerlibraries
LIBS = -lstringio -lc -lamiga
# all the *.o-files
OBJECTS = toolstart.o \
images.o \
ahigui.o \
file.o \
slidercode.o \
ahibasic.o \
ahiplay.o
# don't alter any thing here - these are the includepaths
CCFLAGS = -I. -I$(srcdir)
all: $(OBJECTS)
# the next line must start with at least one tab(!) - not whitespaces
# the editor must save tabs as tabs and not as whitespaces
gcc $(LDFLAGS) -o AHI.ptool $(OBJECTS) $(LIBS)
toolstart.o: toolstart.c
ahiplay.o: ahiplay.c
ahibasic.o: ahibasic.c
ahigui.o: ahigui.c
images.o: images.c
file.o: file.c
slidercode.o: slidercode.c
# at the end must be a newline
------ snip here ---------------
Kndly
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/16uqlB/TM
--------------------------------------------------------------------~->
Visit http://www.amiga.dk/tumult for MUI-related
information, especially about MUI custom classes.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/MUI/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/