home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / spiele / pilotmin / pilotmin.exe / pmines / src / Makefile < prev    next >
Encoding:
Makefile  |  2000-11-27  |  1.2 KB  |  56 lines

  1. #
  2. # environment set up for use with gcc-2.95.2 as distributed by www.palm.com
  3. #
  4.  
  5. CC       = m68k-palmos-gcc
  6.  
  7. # define OLDGCC if you are using gcc-2.7.x; check mine.c for a comment on this
  8. # CFLAGS   = -O2 -fomit-frame-pointer -Wall -D$(LANGUAGE) -DOLDGCC
  9. CFLAGS   = -Os -fomit-frame-pointer -Wall -D$(LANGUAGE)
  10. # CFLAGS   = -g -Wall -D$(LANGUAGE)
  11.  
  12. PILRC    = pilrc
  13. PRCFLAGS = -q -L $(LANGUAGE)
  14. OBJRES   = m68k-palmos-obj-res
  15. BUILDPRC = build-prc
  16. LANGUAGE ?= DEUTSCH 
  17. # LANGUAGE = ENGLISH
  18.  
  19. OBJS     = mine.o hscore.o
  20.  
  21. ICONTEXT = 'PilotMines'
  22. APPID    = tpPM
  23.  
  24. all: mine.prc
  25.  
  26. all-lang:
  27.     make clean all LANGUAGE=DEUTSCH
  28.     mv mine.prc mine-de.prc
  29.     make clean all LANGUAGE=ENGLISH
  30.     mv mine.prc mine-en.prc
  31.  
  32. mine.prc: code0000.mine.bin code0001.mine.bin data0000.mine.bin bin.res
  33.     $(BUILDPRC) mine.prc $(ICONTEXT) $(APPID) code0001.mine.grc \
  34.     code0000.mine.grc data0000.mine.grc *.bin pref0000.mine.grc
  35.     ls -l mine.prc
  36.  
  37. code0000.mine.bin: mine
  38.     $(OBJRES) $<
  39.  
  40. code0001.mine.bin: code0000.mine.bin
  41.  
  42. data0000.mine.bin: code0000.mine.bin
  43.  
  44. bin.res: mine.rcp
  45.     $(PILRC) $(PRCFLAGS) mine.rcp .
  46.     touch bin.res
  47.  
  48. mine: $(OBJS)
  49.     $(CC) $(CFLAGS) $(OBJS) -o $@ 
  50.  
  51. clean:
  52.     rm -f $(OBJS) mine *.bin bin.res *~ *.grc *.BAK *.bak *.log
  53.  
  54. realclean: clean
  55.     rm -f *.prc *.pdb
  56.