home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 Mobile
/
Chip_Mobile_2001.iso
/
palm
/
business
/
cube3d
/
cube3D.exe
/
cube3D
/
src
/
Makefile
< prev
next >
Wrap
Makefile
|
2000-12-26
|
1KB
|
57 lines
#
# @(#)Makefile
#
# Copyright 1999-2000, Aaron Ardiri (mailto:aaron@ardiri.com)
# All rights reserved.
#
# The source code outlines a number of basic Palm Computing Programming
# principles and you should be able to take the core structure and write
# a large complex program. It is distributed WITHOUT ANY WARRANTY; use it
# "AS IS" and at your own risk.
#
# The code presented is Copyright 1999-2000 by Aaron Ardiri. It should be
# used for educational purposes only. You shall not modify the Cube3D
# source code in any way and re-distribute it as your own, however you
# are free to use the code as a guide for developing programs on the
# Palm Computing Platform.
#
# compiler commands
PREFIX =
CC = $(PREFIX)m68k-palmos-gcc
PILRC = $(PREFIX)pilrc
BUILDPRC = $(PREFIX)build-prc
PRC2BIN = $(PREFIX)prc2bin
# source / outputs
OBJS = palm.o device.o graphics.o gccfix.o help.o cube3D.o
EXEC = cube3D
# compiler flags
CCFLAGS = -O2 -Wall -palmos3.5
# compile requirements
$(EXEC).prc: $(EXEC) $(EXEC).def bin.stamp
$(BUILDPRC) $(EXEC).def $(EXEC) *.bin
make clean
cp $(EXEC).prc ..
$(EXEC): $(OBJS)
$(CC) $(OBJS) $(CCFLAGS) -o $(EXEC)
bin.stamp: $(EXEC).rcp
$(PILRC) -q $(EXEC).rcp
# compile rules
.SUFFIXES: .c .o
.c.o:
$(CC) -c $(CCFLAGS) $<
# clean-up funtions
clean:
rm -f *.[oa] *.bin *.grc *~ $(EXEC)
distclean:
rm -f *.[oa] *.bin *.[pg]rc *~ $(EXEC)