home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / spiele / argon / argon.exe / src / Makefile < prev    next >
Encoding:
Makefile  |  2000-01-24  |  1.8 KB  |  98 lines

  1. #
  2. #  Makefile
  3. #
  4. #  T.Harbaum@tu-bs.de - http://www.ibr.cs.tu-bs.de/~harbaum/pilot
  5. #
  6. #  This program is distributed in the hope that it will be useful,
  7. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  9. #  GNU General Public License for more details.
  10. #
  11.  
  12. APPNAME = ArgonV
  13. ICONTEXT = "Argon V"
  14. APPID = ArgV
  15.  
  16. SRCS = argonv.c video.c
  17.  
  18. # Tool locations
  19. CC = m68k-palmos-coff-gcc
  20. BUILDPRC = build-prc
  21. PILRC = pilrc
  22. OBJRES = m68k-palmos-coff-obj-res
  23.  
  24. # File names
  25. RESFILE = $(APPNAME).rcp
  26. PRC = ../$(APPNAME).prc
  27. OBJS = $(SRCS:.c=.o)
  28.  
  29. # Compile options
  30. DEFINES = -DASM
  31. CSFLAGS = -O2 -S $(DEFINES) $(INCLUDES)
  32. CFLAGS = -O2 -fomit-frame-pointer $(DEFINES) $(INCLUDES)
  33.  
  34. # Makefile targets
  35.  
  36. all: 
  37.     cd graphics; make
  38.     make $(PRC)
  39.  
  40. .S.o:
  41.     $(CC) $(TARGETFLAGS) -c $<
  42.  
  43. .c.s:
  44.     $(CC) $(CSFLAGS) $<
  45.  
  46. sin: sin.c
  47.     gcc -o sin sin.c -lm
  48.  
  49. csin0000.bin: sin
  50.     ./sin > csin0000.bin
  51.  
  52. one2four: one2four.c
  53.     gcc -o one2four one2four.c
  54.  
  55. conv0000.bin: one2four
  56.     ./one2four > conv0000.bin
  57.  
  58. $(PRC): code.stamp bin.stamp graphics.h conv0000.bin csin0000.bin levl0000.lev
  59.     $(BUILDPRC) $@ $(ICONTEXT) $(APPID) *.grc *.bin font0000.fnt levl0000.lev
  60.  
  61. code.stamp: $(APPNAME)
  62.     $(OBJRES) $(APPNAME)
  63.     touch code.stamp
  64.  
  65. bin.stamp: $(RESFILE)
  66.     $(PILRC) $(RESFILE)
  67.     touch bin.stamp
  68.  
  69. $(APPNAME): $(OBJS)
  70.     $(CC) $(CFLAGS) $(OBJS) $(LIBS) -o $@
  71.  
  72. clean::
  73.     rm -rf *.[oa] $(APPNAME) *.bin *.stamp *.grc *~
  74.     rm -rf one2four sin
  75.     cd graphics; make clean
  76.  
  77. dist:    all
  78.     make clean
  79.     rm -f ../../$(APPNAME).zip
  80.     cd ../..; zip -r $(APPNAME).zip argonv
  81.  
  82. www::
  83.     make dist
  84.     cp ../../$(APPNAME).zip /usr/home/harbaum/WWW/pilot/argonv
  85.  
  86. disk::
  87.     make dist
  88.     mcopy -o ../../$(APPNAME).zip a:
  89.  
  90. level::
  91.     cd graphics; make edit_level
  92.  
  93. install::
  94.     make all
  95.     pilot-xfer -p /dev/palmv -i $(PRC)
  96.  
  97.  
  98.