home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / ifmapper-src-0.7.tar.gz / ifmapper-src-0.7.tar / ifmapper-0.7 / Makefile < prev    next >
Makefile  |  2000-04-22  |  3KB  |  135 lines

  1. ## Makefile for mapper
  2.  
  3. TARGET = IFmapper
  4. APPNAME = "IFmapper"
  5. APPID = "IFmr"
  6.  
  7. OBJS = main.o selectmap.o mapper.o db.o draw.o items.o util.o
  8. LIBS =
  9.  
  10. CC = m68k-palmos-coff-gcc
  11.  
  12. #CFLAGS = -Wall -g -O2 -fno-builtin
  13. CFLAGS =-g -O2 -Wall -fno-builtin -I$(HOME)/palm/pilrc2.3/
  14.  
  15. PILRC = $(HOME)/palm/pilrc2.3/pilrc
  16. OBJRES = m68k-palmos-coff-obj-res
  17. NM = m68k-palmos-coff-nm
  18. BUILDPRC = build-prc
  19. PILOTXFER = pilot-xfer
  20.  
  21. all: $(TARGET).prc
  22.  
  23. .S.o:
  24.     $(CC) $(TARGETFLAGS) -c $<
  25.  
  26. .c.s:
  27.     $(CC) $(CSFLAGS) $<
  28.  
  29.  
  30. NOWEAVEFLAGS=-n -indexfrom mapper.defs -delay  
  31.  
  32. mapper.tex: mapper.nw
  33.     nodefs mapper.nw >mapper.defs
  34.     noweave $(NOWEAVEFLAGS) mapper.nw >mapper.tex
  35. #    noweave -delay mapper.nw >mapper.tex
  36.  
  37. draw.tex: draw.nw
  38.     nodefs draw.nw >draw.defs
  39.     noweave $(NOWEAVEFLAGS) draw.nw >draw.tex
  40. #    noweave -delay draw.nw >draw.tex
  41.  
  42. db.tex: db.nw
  43.     nodefs db.nw >db.defs
  44.     noweave $(NOWEAVEFLAGS) db.nw >db.tex
  45. #    noweave -delay db.nw >db.tex
  46.  
  47. items.tex: items.nw
  48.     nodefs items.nw >items.defs
  49.     noweave $(NOWEAVEFLAGS) items.nw >items.tex
  50. #    noweave -delay items.nw >items.tex
  51.  
  52. main.tex: main.nw
  53.     nodefs main.nw >main.defs
  54.     noweave $(NOWEAVEFLAGS) main.nw >main.tex
  55. #    noweave -delay main.nw >main.tex
  56.  
  57. selectmap.tex: selectmap.nw
  58.     nodefs selectmap.nw >selectmap.defs
  59.     noweave $(NOWEAVEFLAGS) selectmap.nw >selectmap.tex
  60. #    noweave -delay selectmap.nw >selectmap.tex
  61.  
  62. util.tex: util.nw
  63.     nodefs util.nw >util.defs
  64.     noweave $(NOWEAVEFLAGS) util.nw >util.tex
  65. #    noweave -delay util.nw >util.tex
  66.  
  67.  
  68. doc: mapper.tex draw.tex db.tex items.tex main.tex selectmap.tex util.tex
  69.     latex IFmapper.tex
  70.     noindex mapper
  71.     noindex draw
  72.     latex IFmapper.tex
  73.  
  74.  
  75.  
  76. NOTANGLEFLAGS=-L
  77. mapper.c: mapper.nw
  78.     notangle $(NOTANGLEFLAGS) mapper.nw >mapper.c
  79.  
  80. draw.c: draw.nw
  81.     notangle $(NOTANGLEFLAGS) draw.nw >draw.c
  82.  
  83. db.c: db.nw
  84.     notangle $(NOTANGLEFLAGS) db.nw >db.c
  85.  
  86. items.c: items.nw
  87.     notangle $(NOTANGLEFLAGS) items.nw >items.c
  88.  
  89. main.c: main.nw
  90.     notangle $(NOTANGLEFLAGS) main.nw >main.c
  91.  
  92. selectmap.c: selectmap.nw
  93.     notangle $(NOTANGLEFLAGS) selectmap.nw >selectmap.c
  94.  
  95. util.c: util.nw
  96.     notangle $(NOTANGLEFLAGS) util.nw >util.c
  97.  
  98.  
  99. $(OBJS): mapper.h Makefile
  100.  
  101. $(TARGET).prc: code0000.$(TARGET).grc code0001.$(TARGET).grc data0000.$(TARGET).grc pref0000.$(TARGET).grc rloc0000.$(TARGET).grc bin.res
  102.     $(BUILDPRC) $(TARGET).prc $(APPNAME) $(APPID) code0001.$(TARGET).grc code0000.$(TARGET).grc data0000.$(TARGET).grc *.bin pref0000.$(TARGET).grc rloc0000.$(TARGET).grc
  103.  
  104. code0000.$(TARGET).grc: $(TARGET)
  105.     $(OBJRES) $(TARGET)
  106.  
  107. code0001.$(TARGET).grc: code0000.$(TARGET).grc
  108.  
  109. data0000.$(TARGET).grc: code0000.$(TARGET).grc
  110.  
  111. pref0000.$(TARGET).grc: code0000.$(TARGET).grc
  112.  
  113. rloc0000.$(TARGET).grc: code0000.$(TARGET).grc
  114.  
  115. bin.res: $(TARGET).rcp $(TARGET).pbm minifont.txt
  116.     $(PILRC) $(TARGET).rcp .
  117.     touch bin.res
  118.  
  119. $(TARGET): $(OBJS)
  120.     $(CC) $(CFLAGS) $(OBJS) -o $(TARGET) $(LIBS)
  121.     ! $(NM) -u $(TARGET) | grep .
  122.  
  123. send: $(TARGET).prc
  124.     $(PILOTXFER) -i $(TARGET).prc
  125.  
  126. depend:
  127.     makedepend -Y -I. *.c
  128.  
  129. clean:
  130.     -rm -f *.[oa] $(TARGET) *.bin bin.res *.grc Makefile.bak
  131.  
  132. veryclean: clean
  133.     -rm -f $(TARGET).prc pilot.ram pilot.scratch
  134.  
  135.