home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / stepcounter-1.3.tar.gz / stepcounter-1.3.tar / stepcounter-1.3 / Makefile < prev    next >
Makefile  |  1999-10-25  |  952b  |  63 lines

  1. OBJS = step.o
  2.  
  3. CC = m68k-palmos-coff-gcc
  4.  
  5. CSFLAGS = -O2 -S
  6.  
  7. CFLAGS = -O2 -fomit-frame-pointer
  8.  
  9. PILRC = pilrc
  10. OBJRES = m68k-palmos-coff-obj-res
  11. BUILDPRC = build-prc
  12.  
  13. ICONTEXT = "StepCount"
  14. APPID = StCt
  15.  
  16. all: step.prc
  17.     cd tilt_p3; make
  18.  
  19. step.o: step.c stepRsc.h
  20.  
  21. .S.o:
  22.     $(CC) $(TARGETFLAGS) -c $<
  23.  
  24. .c.s:
  25.     $(CC) $(CSFLAGS) $<
  26.  
  27. step.prc: res.stamp obj.stamp
  28.     $(BUILDPRC) step.prc $(ICONTEXT) $(APPID) *.grc *.bin
  29.  
  30. install: step.prc
  31.     pilot-xfer -i step.prc 
  32.  
  33. obj.stamp: step
  34.     $(OBJRES) step
  35.     touch obj.stamp
  36.  
  37. res.stamp: step.rcp stepRsc.h step.pbm
  38.     $(PILRC) step.rcp .
  39.     touch res.stamp
  40.  
  41. step: $(OBJS)
  42.     $(CC) $(CFLAGS) $(OBJS) -o step
  43.  
  44. clean:
  45.     rm -rf *.[oa] step *.bin *.stamp *.grc *~ step.zip
  46.     cd tilt_p3; make clean
  47.  
  48. dist:
  49.     rm -rf ../step*.zip
  50.     make all
  51.     zip ../step_prc.zip step.prc tilt_p3/tilt_p3.prc
  52.     make clean
  53.     cd ..; zip step.zip -r step/*
  54.  
  55. disk:
  56.     make dist
  57.     mcopy -o ../step*.zip a:
  58.  
  59. www:
  60.     make dist
  61.     cp ../step*.zip /usr/home/harbaum/WWW/pilot/
  62.  
  63.