home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / business / cube3d / cube3D.exe / cube3D / src / Makefile < prev    next >
Makefile  |  2000-12-26  |  1KB  |  57 lines

  1. #
  2. # @(#)Makefile
  3. #
  4. # Copyright 1999-2000, Aaron Ardiri (mailto:aaron@ardiri.com)
  5. # All rights reserved.
  6. #
  7. # The  source code  outlines a number of basic Palm Computing Programming
  8. # principles and you  should be able to take the core structure and write 
  9. # a large complex program. It is distributed WITHOUT ANY WARRANTY; use it
  10. # "AS IS" and at your own risk.
  11. #
  12. # The code presented is Copyright 1999-2000 by Aaron Ardiri. It should be
  13. # used for  educational purposes only.  You  shall not modify  the Cube3D 
  14. # source code in any way and  re-distribute it as your  own,  however you
  15. # are free to use  the code as  a guide for  developing  programs  on the 
  16. # Palm Computing Platform.
  17. #
  18.  
  19. # compiler commands 
  20. PREFIX   = 
  21. CC       = $(PREFIX)m68k-palmos-gcc
  22. PILRC    = $(PREFIX)pilrc
  23. BUILDPRC = $(PREFIX)build-prc
  24. PRC2BIN  = $(PREFIX)prc2bin
  25.  
  26. # source / outputs
  27. OBJS     = palm.o device.o graphics.o gccfix.o help.o cube3D.o
  28. EXEC     = cube3D
  29.  
  30. # compiler flags 
  31. CCFLAGS = -O2 -Wall -palmos3.5
  32.  
  33. # compile requirements
  34. $(EXEC).prc: $(EXEC) $(EXEC).def bin.stamp
  35.     $(BUILDPRC) $(EXEC).def $(EXEC) *.bin
  36.     make clean
  37.     cp $(EXEC).prc ..
  38.  
  39. $(EXEC): $(OBJS)
  40.     $(CC) $(OBJS) $(CCFLAGS) -o $(EXEC)
  41.  
  42. bin.stamp: $(EXEC).rcp
  43.     $(PILRC) -q $(EXEC).rcp
  44.  
  45. # compile rules
  46. .SUFFIXES: .c .o
  47.  
  48. .c.o:
  49.     $(CC) -c $(CCFLAGS) $<
  50.  
  51. # clean-up funtions
  52. clean:
  53.     rm -f *.[oa] *.bin *.grc *~ $(EXEC)
  54.  
  55. distclean:
  56.     rm -f *.[oa] *.bin *.[pg]rc *~ $(EXEC)
  57.