Here is my entire makefile. I'm pulling my hair out trying to figure out what 
is wrong. I may have another problem other than the one stated.

Thanks to anyone who can help (and save the rest of my hair!).

Dave
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/
#########################################################
#
# Copyright (c) 2005, David Gnadinger.  All rights reserved.
#
# Title         : Makefile for SRS
#
# Author        : David Gnadinger
#
# Date          : 
#
# Edited        : 
#               : 
#
# Debugging     :
#
#########################################################

CC      = m68k-palmos-gcc

DEBUGFLAGS= -g -DDEBUG_BUILD -Wall
RELEASEFLAGS= -O1
APPNAME= srs

#Change the following from DEBUGFLAGS to RELEASEFLAGS accordingly.
DIR     = Debug
FLAGS   = -palmos5r3 ${DEBUGFLAGS}
#DIR    = Release
#FLAGS  = -palmos5r3 ${RELEASEFLAGS}

MULTIPLE_CODE_SECTIONS = TRUE

all : ${DIR}/${APPNAME}.prc

exe : ${DIR}/${APPNAME}.prc

clean :
        rm -f obj/*.bin obj/bin.res obj/*.grc ${DIR}/*.prc obj/*.o 
obj/${APPNAME}.prc obj/${APPNAME} obj/*.s obj/*.ld ${APPNAME}

fresh :
        make clean
        make all

obj/${APPNAME}.o : src/${APPNAME}.c res/${APPNAME}_res.h \
                themes/${APPNAME}.r src/${APPNAME}.h src/sections.h
        @echo "Compiling src/${APPNAME}.c..." && \
        ${CC} ${FLAGS} -c src/${APPNAME}.c -o obj/${APPNAME}.o

# OK #
src/${APPNAME} : obj/${APPNAME}.o obj/${APPNAME}-sections.o \
                obj/${APPNAME}-sections.ld
        @echo "Linking files obj/${APPNAME}.o ... src/${APPNAME}." && \
        ${CC} ${FLAGS} obj/${APPNAME}.o obj/${APPNAME}-sections.o \
                -o src/${APPNAME} obj/${APPNAME}-sections.ld

obj/tFRM03e8.bin : res/${APPNAME}.rcp res/*.bmp
        @echo "Creating resource file..." && \
        cd res/ && \
        pilrc ${APPNAME}.rcp ../obj/
        cd ..

# OK #
obj/${APPNAME}-sections.o: obj/${APPNAME}-sections.s
        @echo "Creating sections.o file..." && \
        cd obj/ && \
        ${CC} -c ${APPNAME}-sections.s
        cd ..

# OK #
obj/${APPNAME}-sections.s obj/${APPNAME}-sections.ld: obj/${APPNAME}.def
        @echo "Creating multigen files..." && \
        cd obj/ && \
        m68k-palmos-multigen ${APPNAME}.def
        cd ..

${DIR}/${APPNAME}.prc : obj/${APPNAME}.o \
                obj/${APPNAME}-sections.s obj/${APPNAME}-sections.ld \
                obj/${APPNAME}-sections.o obj/tFRM03e8.bin \
                themes/*.bin src/${APPNAME}
        @echo "Building final prc..." && \
#       build-prc -o $@ MapApp.def $< res/*.bin MapViewer-res/*.bin

        build-prc -o $@ obj/${APPNAME}.def $< -n "${APPNAME}" -c gna7 obj/*.bin 
themes/*.bin
#       build-prc ${DIR}/${APPNAME}.prc "${APPNAME}" gna7 obj/${APPNAME}.def 
obj/*.bin themes/*.bin

Reply via email to