First, make sure to have the environment variable
GCC_EXEC_PREFIX=//c/gcc050/lib/gcc-lib/ to have GCC working.

Then, here is the kind of Makefile I use :

<<<<
# Modify the line "BASE =" depending on your environment!

#---------------------------------------------------------------------------
---
# General stuff
#---------------------------------------------------------------------------
---

# Architecture
ARCH = m68k-palmos-coff

# Directories
#BASE = //c/apps/palm
BASE = //d/apps/palmdev
TDIR = $(BASE)/bin
IDIR = $(BASE)/$(ARCH)/include/PalmOS

# Tools
CC = $(TDIR)/$(ARCH)-gcc
OBJRES = $(TDIR)/$(ARCH)-obj-res
PILRC = $(TDIR)/pilrc
BUILDPRC = $(TDIR)/build-prc

# Defines
DEF = -DDEBUG -mdebug-labels

# Includes
INC = -I$(IDIR) -I$(IDIR)/UI -I$(IDIR)/System -I$(IDIR)/Hardware

# Flags
CFLAGS = -O2 -g $(DEF) $(INC)

#---------------------------------------------------------------------------
---
# Application specific
#---------------------------------------------------------------------------
---

PRC = app.prc
EXEC = app
OBJS = app.o
ICONTEXT = "Example"
APPID = ex01
RES = app.rcp

#---------------------------------------------------------------------------
---
# Targets
#---------------------------------------------------------------------------
---

all: $(PRC)

$(PRC): code.stamp bin.stamp
$(BUILDPRC) $@ $(ICONTEXT) $(APPID) *.grc *.bin
ls -l *.prc

code.stamp: $(EXEC)
$(OBJRES) $(EXEC)
touch code.stamp

$(EXEC): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) $(LIBS) -o $@

bin.stamp: $(RES)
rm -f *.bin
$(PILRC) $(RES)
touch bin.stamp

clean:
rm -f *.[oa] $(EXEC) *.bin *.stamp *.grc *.bak
>>>

With this Makefile, you have :
app.c --> application source file
app.rcp --> PilRC source file


-- Denis Faivre - [EMAIL PROTECTED]
-- Ablivio - http://www.ablivio.com

-----Message d'origine-----
De : Mike Davis <[EMAIL PROTECTED]>
� : [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date : vendredi 21 janvier 2000 15:41
Objet : Stupid GCC question


I am trying to install support for SDK 3.5 and I have noticed
something strange.

I have checked my system variables and my path settings on my Windows
platform and I can't see how my included files are found.  I can see
nothing that tells my compiler where these files are located.

How is that information passed to the compiler?  My path is set to
point to: C:\gcc050\bin but I don't see any 'include' or 'lib'
environment variables.  How does the compiler know where the
'include' files are located?

My directory structure is:

C:\gcc050\PalmPilot-GNU
C:\gcc050\tutorial
C:\gcc050\example
C:\gcc050\copilot
C:\gcc050\emacs
C:\gcc050\man
C:\gcc050\m68k-palmos-coff
C:\gcc050\lib
C:\gcc050\include
C:\gcc050\bin
C:\gcc050\emacs\etc
C:\gcc050\emacs\lisp
C:\gcc050\emacs\info
C:\gcc050\emacs\bin
C:\gcc050\emacs\lisp\term
C:\gcc050\lib\gcc-lib
C:\gcc050\lib\gcc-lib\m68k-palmos-coff
C:\gcc050\lib\gcc-lib\m68k-palmos-coff\2.7.2.2-kgpd-071097
C:\gcc050\lib\gcc-lib\m68k-palmos-coff\2.7.2.2-kgpd-071097\include
C:\gcc050\lib\gcc-lib\m68k-palmos-coff\2.7.2.2-kgpd-071097\include\sys
C:\gcc050\m68k-palmos-coff\lib
C:\gcc050\m68k-palmos-coff\include
C:\gcc050\m68k-palmos-coff\bin
C:\gcc050\m68k-palmos-coff\include\PalmOs30
C:\gcc050\m68k-palmos-coff\include\PalmOs30\UI
C:\gcc050\m68k-palmos-coff\include\PalmOs30\System
C:\gcc050\m68k-palmos-coff\include\PalmOs30\Precompiled
C:\gcc050\m68k-palmos-coff\include\PalmOs30\Hardware
C:\gcc050\m68k-palmos-coff\include\PalmOs30\Precompiled\Obj
C:\gcc050\m68k-palmos-coff\include\PalmOs30\System\Unix
C:\gcc050\m68k-palmos-coff\lib\ldscripts
C:\gcc050\man\man1

--
-----------------------------------------------------------------
Discussion Group:        http://www.halcyon.com/ipscone/wwwboard/

Protect your constitutional rights. Your favorite one may be next!
-----------------------------------------------------------------



-- Denis Faivre - [EMAIL PROTECTED]
-- Ablivio - http://www.ablivio.com

-----Message d'origine-----
De : Mike Davis <[EMAIL PROTECTED]>
� : [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date : vendredi 21 janvier 2000 15:41
Objet : Stupid GCC question


I am trying to install support for SDK 3.5 and I have noticed
something strange.

I have checked my system variables and my path settings on my Windows
platform and I can't see how my included files are found.  I can see
nothing that tells my compiler where these files are located.

How is that information passed to the compiler?  My path is set to
point to: C:\gcc050\bin but I don't see any 'include' or 'lib'
environment variables.  How does the compiler know where the
'include' files are located?

My directory structure is:

C:\gcc050\PalmPilot-GNU
C:\gcc050\tutorial
C:\gcc050\example
C:\gcc050\copilot
C:\gcc050\emacs
C:\gcc050\man
C:\gcc050\m68k-palmos-coff
C:\gcc050\lib
C:\gcc050\include
C:\gcc050\bin
C:\gcc050\emacs\etc
C:\gcc050\emacs\lisp
C:\gcc050\emacs\info
C:\gcc050\emacs\bin
C:\gcc050\emacs\lisp\term
C:\gcc050\lib\gcc-lib
C:\gcc050\lib\gcc-lib\m68k-palmos-coff
C:\gcc050\lib\gcc-lib\m68k-palmos-coff\2.7.2.2-kgpd-071097
C:\gcc050\lib\gcc-lib\m68k-palmos-coff\2.7.2.2-kgpd-071097\include
C:\gcc050\lib\gcc-lib\m68k-palmos-coff\2.7.2.2-kgpd-071097\include\sys
C:\gcc050\m68k-palmos-coff\lib
C:\gcc050\m68k-palmos-coff\include
C:\gcc050\m68k-palmos-coff\bin
C:\gcc050\m68k-palmos-coff\include\PalmOs30
C:\gcc050\m68k-palmos-coff\include\PalmOs30\UI
C:\gcc050\m68k-palmos-coff\include\PalmOs30\System
C:\gcc050\m68k-palmos-coff\include\PalmOs30\Precompiled
C:\gcc050\m68k-palmos-coff\include\PalmOs30\Hardware
C:\gcc050\m68k-palmos-coff\include\PalmOs30\Precompiled\Obj
C:\gcc050\m68k-palmos-coff\include\PalmOs30\System\Unix
C:\gcc050\m68k-palmos-coff\lib\ldscripts
C:\gcc050\man\man1

--
-----------------------------------------------------------------
Discussion Group:        http://www.halcyon.com/ipscone/wwwboard/

Protect your constitutional rights. Your favorite one may be next!
-----------------------------------------------------------------



---
For information on using the Palm Developer Forums, or to unsubscribe, please see 
<http://www.palm.com/devzone/mailinglists.html>.

Reply via email to