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 ...

Get Palm OS Programming, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.