home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / happydays-src-1.37.tar.gz / happydays-src-1.37.tar / happydays-1.37 / Makefile < prev    next >
Makefile  |  2000-09-28  |  7KB  |  183 lines

  1. ## Makefile for HappyDays application
  2.  
  3. TARGET = happydays
  4. APPNAME = "HappyDays"
  5. APPID = "Jmje"
  6.  
  7. FILES = happydays.c lun2sol.c sol2lun.c address.c datebook.c util.c \
  8.         birthdate.c memodb.c s2lconvert.c todo.c
  9. OBJS = happydays.o lun2sol.o sol2lun.o address.o datebook.o util.o \
  10.         birthdate.o memodb.o s2lconvert.o todo.o
  11.  
  12. CC = m68k-palmos-gcc
  13.  
  14. CFLAGS = -Wall -O2 
  15. #CFLAGS = -Wall -g -O2
  16.  
  17. PILRC = pilrc
  18. OBJRES = m68k-palmos-obj-res
  19. NM = m68k-palmos-nm
  20. BUILDPRC = build-prc
  21. PILOTXFER = pilot-xfer
  22. LANG = ENGLISH
  23.  
  24. all: en
  25.  
  26. all-lang: en ko de th dutch fr sp cz
  27.  
  28. en: $(TARGET).prc
  29.  
  30. ko: $(TARGET)-kt.prc $(TARGET)-km.prc
  31.  
  32. de: $(TARGET)-de.prc 
  33.  
  34. th: $(TARGET)-th.prc
  35.  
  36. chi: $(TARGET)-chi.prc
  37.  
  38. dutch: $(TARGET)-dutch.prc
  39.  
  40. fr: $(TARGET)-fr.prc
  41.  
  42. sp: $(TARGET)-sp.prc
  43.  
  44. cz: $(TARGET)-cz.prc
  45.  
  46. .S.o:
  47.     $(CC) $(TARGETFLAGS) -c $<
  48.  
  49. .c.s:
  50.     $(CC) $(CSFLAGS) $<
  51.  
  52. $(TARGET).prc: code0000.$(TARGET).grc code0001.$(TARGET).grc data0000.$(TARGET).grc pref0000.$(TARGET).grc rloc0000.$(TARGET).grc bin.res
  53.     $(BUILDPRC) $(TARGET).prc $(APPNAME) $(APPID) code0001.$(TARGET).grc code0000.$(TARGET).grc data0000.$(TARGET).grc *.bin pref0000.$(TARGET).grc rloc0000.$(TARGET).grc
  54.  
  55. $(TARGET)-kt.prc: code0000.$(TARGET).grc code0001.$(TARGET).grc data0000.$(TARGET).grc pref0000.$(TARGET).grc rloc0000.$(TARGET).grc bin-kt.res
  56.     $(BUILDPRC) $(TARGET)-kt.prc $(APPNAME) $(APPID) code0001.$(TARGET).grc code0000.$(TARGET).grc data0000.$(TARGET).grc *.bin pref0000.$(TARGET).grc rloc0000.$(TARGET).grc
  57.  
  58. $(TARGET)-km.prc: code0000.$(TARGET).grc code0001.$(TARGET).grc data0000.$(TARGET).grc pref0000.$(TARGET).grc rloc0000.$(TARGET).grc bin-km.res
  59.     $(BUILDPRC) $(TARGET)-km.prc $(APPNAME) $(APPID) code0001.$(TARGET).grc code0000.$(TARGET).grc data0000.$(TARGET).grc *.bin pref0000.$(TARGET).grc rloc0000.$(TARGET).grc
  60.  
  61. $(TARGET)-de.prc: code0000.$(TARGET).grc code0001.$(TARGET).grc data0000.$(TARGET).grc pref0000.$(TARGET).grc rloc0000.$(TARGET).grc bin-de.res
  62.     $(BUILDPRC) $(TARGET)-de.prc $(APPNAME) $(APPID) code0001.$(TARGET).grc code0000.$(TARGET).grc data0000.$(TARGET).grc *.bin pref0000.$(TARGET).grc rloc0000.$(TARGET).grc
  63.  
  64. $(TARGET)-th.prc: code0000.$(TARGET).grc code0001.$(TARGET).grc data0000.$(TARGET).grc pref0000.$(TARGET).grc rloc0000.$(TARGET).grc bin-th.res
  65.     $(BUILDPRC) $(TARGET)-th.prc $(APPNAME) $(APPID) code0001.$(TARGET).grc code0000.$(TARGET).grc data0000.$(TARGET).grc *.bin pref0000.$(TARGET).grc rloc0000.$(TARGET).grc
  66.  
  67. $(TARGET)-chi.prc: code0000.$(TARGET).grc code0001.$(TARGET).grc data0000.$(TARGET).grc pref0000.$(TARGET).grc rloc0000.$(TARGET).grc bin-chi.res
  68.     $(BUILDPRC) $(TARGET)-chi.prc $(APPNAME) $(APPID) code0001.$(TARGET).grc code0000.$(TARGET).grc data0000.$(TARGET).grc *.bin pref0000.$(TARGET).grc rloc0000.$(TARGET).grc
  69.  
  70. $(TARGET)-dutch.prc: code0000.$(TARGET).grc code0001.$(TARGET).grc data0000.$(TARGET).grc pref0000.$(TARGET).grc rloc0000.$(TARGET).grc bin-dutch.res
  71.     $(BUILDPRC) $(TARGET)-dutch.prc $(APPNAME) $(APPID) code0001.$(TARGET).grc code0000.$(TARGET).grc data0000.$(TARGET).grc *.bin pref0000.$(TARGET).grc rloc0000.$(TARGET).grc
  72.  
  73. $(TARGET)-fr.prc: code0000.$(TARGET).grc code0001.$(TARGET).grc data0000.$(TARGET).grc pref0000.$(TARGET).grc rloc0000.$(TARGET).grc bin-fr.res
  74.     $(BUILDPRC) $(TARGET)-fr.prc $(APPNAME) $(APPID) code0001.$(TARGET).grc code0000.$(TARGET).grc data0000.$(TARGET).grc *.bin pref0000.$(TARGET).grc rloc0000.$(TARGET).grc
  75.  
  76. $(TARGET)-sp.prc: code0000.$(TARGET).grc code0001.$(TARGET).grc data0000.$(TARGET).grc pref0000.$(TARGET).grc rloc0000.$(TARGET).grc bin-sp.res
  77.     $(BUILDPRC) $(TARGET)-sp.prc $(APPNAME) $(APPID) code0001.$(TARGET).grc code0000.$(TARGET).grc data0000.$(TARGET).grc *.bin pref0000.$(TARGET).grc rloc0000.$(TARGET).grc
  78.  
  79. $(TARGET)-cz.prc: code0000.$(TARGET).grc code0001.$(TARGET).grc data0000.$(TARGET).grc pref0000.$(TARGET).grc rloc0000.$(TARGET).grc bin-cz.res
  80.     $(BUILDPRC) $(TARGET)-cz.prc $(APPNAME) $(APPID) code0001.$(TARGET).grc code0000.$(TARGET).grc data0000.$(TARGET).grc *.bin pref0000.$(TARGET).grc rloc0000.$(TARGET).grc
  81.  
  82. code0000.$(TARGET).grc: $(TARGET)
  83.     $(OBJRES) $(TARGET)
  84.  
  85. code0001.$(TARGET).grc: code0000.$(TARGET).grc
  86.  
  87. data0000.$(TARGET).grc: code0000.$(TARGET).grc
  88.  
  89. pref0000.$(TARGET).grc: code0000.$(TARGET).grc
  90.  
  91. rloc0000.$(TARGET).grc: code0000.$(TARGET).grc
  92.  
  93. bin.res: $(TARGET)-en.rcp
  94.     rm -f *.bin
  95.     $(PILRC) -L ENGLISH $(TARGET)-en.rcp .
  96.  
  97. bin-kt.res: $(TARGET)-ko.rcp
  98.     rm -f *.bin
  99.     $(PILRC) -L KOREAN -Fkt $(TARGET)-ko.rcp .
  100.  
  101. bin-km.res: $(TARGET)-ko.rcp
  102.     rm -f *.bin
  103.     $(PILRC) -L KOREAN -Fkm $(TARGET)-ko.rcp .
  104.  
  105. bin-de.res: $(TARGET)-de.rcp
  106.     rm -f *.bin
  107.     $(PILRC) -L GERMAN $(TARGET)-de.rcp .
  108.  
  109. bin-th.res: $(TARGET)-th.rcp
  110.     rm -f *.bin
  111.     $(PILRC) -L THAI $(TARGET)-th.rcp .
  112.  
  113. bin-chi.res: $(TARGET)-chi.rcp
  114.     rm -f *.bin
  115.     $(PILRC) -L CHINESE $(TARGET)-chi.rcp .
  116.  
  117. bin-dutch.res: $(TARGET)-dutch.rcp
  118.     rm -f *.bin
  119.     $(PILRC) -L DUTCH $(TARGET)-dutch.rcp .
  120.  
  121. bin-fr.res: $(TARGET)-fr.rcp
  122.     rm -f *.bin
  123.     $(PILRC) -L FRENCH $(TARGET)-fr.rcp .
  124.  
  125. bin-sp.res: $(TARGET)-sp.rcp
  126.     rm -f *.bin
  127.     $(PILRC) -L SPANISH $(TARGET)-sp.rcp .
  128.  
  129. bin-cz.res: $(TARGET)-cz.rcp
  130.     rm -f *.bin
  131.     $(PILRC) -L CZECH $(TARGET)-cz.rcp .
  132.  
  133. $(TARGET)-en.rcp: $(TARGET).rcp english.msg hdr.msg
  134.     cat hdr.msg english.msg $(TARGET).rcp > $(TARGET)-en.rcp
  135.  
  136. $(TARGET)-ko.rcp: $(TARGET).rcp korean.msg hdr.msg
  137.     cat hdr.msg korean.msg $(TARGET).rcp > $(TARGET)-ko.rcp
  138.  
  139. $(TARGET)-de.rcp: $(TARGET).rcp german.msg hdr.msg
  140.     cat hdr.msg german.msg $(TARGET).rcp > $(TARGET)-de.rcp
  141.  
  142. $(TARGET)-th.rcp: $(TARGET).rcp thai.msg hdr.msg
  143.     cat hdr.msg thai.msg $(TARGET).rcp > $(TARGET)-th.rcp
  144.  
  145. $(TARGET)-chi.rcp: $(TARGET).rcp chinese.msg hdr.msg
  146.     cat hdr.msg chinese.msg $(TARGET).rcp > $(TARGET)-chi.rcp
  147.  
  148. $(TARGET)-dutch.rcp: $(TARGET).rcp dutch.msg hdr.msg
  149.     cat hdr.msg dutch.msg $(TARGET).rcp > $(TARGET)-dutch.rcp
  150.  
  151. $(TARGET)-fr.rcp: $(TARGET).rcp french.msg hdr.msg
  152.     cat hdr.msg french.msg $(TARGET).rcp > $(TARGET)-fr.rcp
  153.  
  154. $(TARGET)-sp.rcp: $(TARGET).rcp spanish.msg hdr.msg
  155.     cat hdr.msg spanish.msg $(TARGET).rcp > $(TARGET)-sp.rcp
  156.  
  157. $(TARGET)-cz.rcp: $(TARGET).rcp czech.msg hdr.msg
  158.     cat hdr.msg czech.msg $(TARGET).rcp > $(TARGET)-cz.rcp
  159.  
  160. $(TARGET): $(OBJS)
  161.     $(CC) $(CFLAGS) $(OBJS) -o $(TARGET) $(LIBS)
  162. #    ! $(NM) -u $(TARGET) | grep .
  163.  
  164. send: $(TARGET).prc
  165.     $(PILOTXFER) -i $(TARGET).prc
  166.  
  167. depend:
  168.     $(CC) -MM $(FILES) > .depend
  169.  
  170. tags:
  171.     etags $(FILES) *.h
  172.  
  173. clean:
  174.     -rm -f *.[oa] $(TARGET) *.bin bin.res *.grc Makefile.bak
  175.  
  176. veryclean: clean
  177.     -rm -f $(TARGET)*.prc pilot.ram pilot.scratch
  178.  
  179. save:
  180.     zip $@ *.c Makefile *.rcp README COPYING *.h *.pbitm 
  181.  
  182. -include .depend
  183.