# # @(#)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 tailgunr.o \ ops0000.o ops0400.o ops0800.o ops0c00.o \ ops1000.o ops1400.o ops1800.o ops1c00.o EXEC = cube3D # compiler flags #-Id:/progra~1/prc-tools/h-i586-cygwin32/include \ # -Id:/progra~1/prc-tools/h-i586-cygwin32/include/palmos \ # -Id:/progra~1/prc-tools/h-i586-cygwin32/include/palmos/hardware \ # -Id:/progra~1/prc-tools/h-i586-cygwin32/include/palmos/system \ # -Id:/progra~1/prc-tools/h-i586-cygwin32/include/palmos/ui \ # -O2 -Wall CCFLAGS = -O2 -palmos3.5 \ -Id:/palmdev/sdk-3.5/include \ -Id:/palmdev/sdk-3.5/include/core \ -Id:/palmdev/sdk-3.5/include/core/system \ -Id:/palmdev/sdk-3.5/include/core/hardware \ -Id:/palmdev/sdk-3.5/include/core/ui \ -Id:/palmdev/sdk-3.5/include/libraries \ -Id:/palmdev/sdk-3.5/include/dynamic \ -Id:/palmdev/sdk-3.5/include/libraries/palmosglue \ -Id:/palmdev/sdk-3.5/include/libraries # compile requirements $(EXEC).prc: $(EXEC) $(EXEC).def bin.stamp $(BUILDPRC) $(EXEC).def $(EXEC) *.bin # make clean # cp $(EXEC).prc .. $(EXEC): $(OBJS) .\multilink -stdlib -libdir . -basename $(EXEC) -fid CUBE $(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)