home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hand Held Organizer Toolkit
/
walnutcreekcdrom-handheldorganizertoolkit-march1998.iso
/
PalmPilot
/
development
/
pfc.sit
/
Makefile
next >
Wrap
Makefile
|
1997-04-08
|
4KB
|
138 lines
#######################################################
# Makefile for TestApp
# Target: TestApp
#
# This makefile compiles and links the TestApp sample
# application for testing custom fonts.
#
# To run this make, use the MPW Directory Menu to set
# the current directory to the MemoPad directory, go to
# the Build Menu, select "Build..." and enter "TestApp"
# into the dialog box.
#
#######################################################
#######################################################
# Set up paths
########################################################
LIB_DIR = :::Libraries:PalmOS:
INC_DIR = :::Incs:
SRC_DIR = :Src:
OBJ_DIR = :Obj:
#######################################################
# Set up Compiler
########################################################
# Use Metrowerks' compiler
CC = MWC68K
CPP = MWC68K
LINK = MWLink68K
#######################################################
# Compile Options
#
# The most likely options you might change are COUNTRY,
# LANGUAGE, and ERROR_CHECK_LEVEL.
#
########################################################
C_OPTIONS = ╢
-d COUNTRY=0 ╢
-d LANGUAGE=0 ╢
-d ERROR_CHECK_LEVEL=2 ╢
-d CMD_LINE_BUILD ╢
-d EMULATION_LEVEL=0 ╢
-d ENVIRONMENT=0 ╢
-d MEMORY_FORCE_LOCK=1 ╢
-nosyspath ╢
-i ":Src:" ╢
-i "{INC_DIR}" ╢
-i "{INC_DIR}System:" ╢
-i "{INC_DIR}UI:" ╢
-i "{INC_DIR}Hardware:" ╢
-model near ╢
-intsize 2 ╢
-maxerrors 3 ╢
-opt speed -opt global -opt peep ╢
-mbg on ╢
-b ╢
-d PILOT_PRECOMPILED_HEADERS_OFF
LINK_OPTIONS = -single -custom
#######################################################
# Object List
#
# Each of the source files must be listed here.
########################################################
OBJECTS = ╢
"{LIB_DIR}StartupCode.c.o" ╢
"{OBJ_DIR}CustomFonts.c.o" ╢
"{OBJ_DIR}TestApp.c.o"
# "{OBJ_DIR}Module2.c.o" ╢ Add other source files here
########################################################################
# Compiles
#
# There should be one compile statement per source file. On the right side of
# the first line is a list of files the target is dependent on. Only if
# one of those files changes is the target regenerated.
########################################################################
"{OBJ_DIR}TestApp.c.o" ─ MakeFile "{SRC_DIR}TestApp.c"
{CPP} -o "{OBJ_DIR}TestApp.c.o" ╢
"{SRC_DIR}TestApp.c" ╢
{C_OPTIONS}
"{OBJ_DIR}CustomFonts.c.o" ─ MakeFile "{SRC_DIR}CustomFonts.c"
{CPP} -o "{OBJ_DIR}CustomFonts.c.o" ╢
"{SRC_DIR}CustomFonts.c" ╢
{C_OPTIONS}
########################################################################
# Final Link
########################################################################
TestApp ── MakeFile {OBJECTS} "{SRC_DIR}TestApp.r"
#
# Link all of the code together.
#
{LINK} {LINK_OPTIONS} -t rsrc -c RSED ╢
{OBJECTS} ╢
-o TestApp.code
Delete -i "TestApp"
#
# Build a description of all the resources used by the application
#
{CC} -d RESOURCE_COMPILER ╢
{C_OPTIONS} ╢
-e ╢
"{SRC_DIR}TestApp.r" > TestApp.i
#
# Process the ui resources and combine them and the code into a single file
# for use on the Pilot. Additionally, set other data about the Pilot file
# like it's type, creator, version number, name, etc. Type PilotRez
# in the MPW Worksheet to see a description of PilotRez's options.
#
PilotRez -v 1 -t appl -c Test -it TestApp.i -ot "TestApp"
#
# Pilot Desktop prefers Pilot files to end with .prc
#
Duplicate -y "TestApp" "TestApp.prc"
#
# PilotDebugger is used by application developers to send the Pilot application
# to the Pilot. Place a duplicate of the file in a place handy for the debugger.
#
Duplicate -y "TestApp.prc" "{PilotDir}"Debugger