O'Reilly logo

Palm OS Programming, 2nd Edition by Neil Rhodes, Julie McKeehan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

PRC-Tools Build Files

Makefile

CC = m68k-palmos-gcc DEBUGCFLAGS= -g -DDEBUG_BUILD RELEASECFLAGS= -O2 # Change the following from DEBUGCFLAGS to RELEASECFLAGS for a no-debug build. CFLAGS = -palmos4.0 -lPalmOSGlue $(DEBUGCFLAGS) # Change the following line to change the name of the built project. # Make sure you also change the name of the .def file to match. APP=Sales SRCDIR=Src/ OUTPUTDIR=GCC/ RCPFILE=Sales.rcp OBJS=$(OUTPUTDIR)Customer.o \ $(OUTPUTDIR)Customers.o \ $(OUTPUTDIR)Data.o \ $(OUTPUTDIR)Exchange.o \ $(OUTPUTDIR)Item.o \ $(OUTPUTDIR)Order.o \ $(OUTPUTDIR)Sales.o \ $(OUTPUTDIR)Utils.o $(OUTPUTDIR)$(APP).prc: $(OUTPUTDIR)$(APP) $(OUTPUTDIR)bin.stamp $(APP).def build-prc $(APP).def $(OUTPUTDIR)$(APP) -o $(OUTPUTDIR)$(APP).prc $(OUTPUTDIR)*.bin $(OUTPUTDIR)$(APP): $(OBJS) $(CC) -o $@ $(OBJS) $(CFLAGS) $(OUTPUTDIR)%.o: $(SRCDIR)%.c $(CC) $(CFLAGS) -c $< -o $@ $(OBJS): $(SRCDIR)SalesRsc.h $(SRCDIR)Utils.h $(SRCDIR)Common.h $(SRCDIR)Data.h $(OUTPUTDIR)Customer.o: \ $(SRCDIR)Customer.h $(OUTPUTDIR)Customers.o: \ $(SRCDIR)Customer.h \ $(SRCDIR)Customers.h \ $(SRCDIR)Exchange.h $(OUTPUTDIR)Exchange.o: \ $(SRCDIR)Exchange.h $(OUTPUTDIR)Item.o: \ $(SRCDIR)Item.h $(OUTPUTDIR)Order.o: \ $(SRCDIR)Customer.h \ $(SRCDIR)Exchange.h \ $(SRCDIR)Item.h $(OUTPUTDIR)Sales.o: \ $(SRCDIR)Customer.h \ $(SRCDIR)Customers.h \ $(SRCDIR)Exchange.h \ $(SRCDIR)Item.h \ $(SRCDIR)Order.h $(OUTPUTDIR)bin.stamp: $(SRCDIR)$(RCPFILE) $(SRCDIR)SalesRsc.h \ $(SRCDIR)Sales1.bmp $(SRCDIR)Sales2.bmp $(SRCDIR)Sales4.bmp ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required