home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / timber-0.0beta.tar.gz / timber-0.0beta.tar / Timber / Makefile < prev    next >
Makefile  |  2000-01-14  |  2KB  |  59 lines

  1. #Makefile for gcc PalmPilot crosscompiler m68k-palmos-coff-gcc package.
  2. # Change the strings from APP to BUILDPRC to match your own
  3. # system configuration.
  4. # Place the file into the developping directory.
  5. # "make clean" removes all generated files, but not the ".prc".
  6. APP             =Timber
  7. ICONTEXT        ="Timber"
  8. APPID           =Tmbr
  9. RCP             =$(APP).rcp
  10. PRC             =$(APP).prc
  11. SRC             =$(APP).c
  12. GRC             =$(APP).grc
  13. BIN             =$(APP).bin
  14.  
  15. CC              =m68k-palmos-coff-gcc
  16. PILRC           =pilrc
  17. TXT2BITM        =txt2bitm
  18. OBJRES          =m68k-palmos-coff-obj-res
  19. BUILDPRC        =build-prc
  20. LDFLAGS        =-lmf 
  21.  
  22. # uncomment this if you want to build a gdb debuggable version
  23. # -On: n=Optimization-level (0=none), -g: needed for debugging
  24. CFLAGS          =-O0 -g $(DEFINES) $(INCLUDES)
  25. #CFLAGS          =-O3 $(DEFINES) $(INCLUDES)
  26.  
  27. all:            $(PRC)
  28.  
  29. $(PRC):       grc.stamp bin.stamp
  30.     $(BUILDPRC) $(PRC) $(ICONTEXT) $(APPID) *.grc *.bin $(LINKFILES) 
  31.     ls -l *.prc
  32.  
  33. grc.stamp:    $(APP)
  34.     $(OBJRES) $(APP)
  35.     touch $@
  36.  
  37. $(APP):       $(SRC:.c=.o)
  38.     $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
  39.  
  40. bin.stamp:    $(RCP)
  41.     $(PILRC) $^ $(BINDIR)
  42.     touch $@
  43.  
  44. Timber.o: Timber.c TimberRsc.h
  45.     $(CC) $(CFLAGS) -c $< -o $@
  46.     #               touch $<
  47.     # enable this line if you want to compile EVERY time.
  48.  
  49. depend dep:
  50.     $(CC) -M $(SRC) > .dependencies
  51.  
  52.  
  53. clean:
  54.     rm -rf *.o $(APP) *.bin *.grc *.stamp 
  55.  
  56. backup:
  57.     rm -rf *.o $(APP) *.bin *.grc *.stamp *'~'
  58.     (cd ..; gtar cvzf Timber.tgz Timber; cd Timber)
  59.