home *** CD-ROM | disk | FTP | other *** search
/ DOpus Plus / DOpus Plus.iso / Tutorial / C Guide / RndPic_module / smakefile < prev   
Encoding:
Makefile  |  1998-09-20  |  1.8 KB  |  85 lines

  1. # Makefile for a sample Opus 5 module
  2.  
  3. # This is based on the structure of the real Opus makefile, but may be
  4. # adapted as you see fit
  5.  
  6.  
  7. # Files for this module
  8.  
  9. EXAMPLEOBJS   =  modinit.o ModuleEntry.o buildinstrings.o config.o
  10.  
  11. # Library-Version/-Revision
  12.  
  13. EXAMPLEVER    =   56
  14. EXAMPLEREV    =   3
  15.  
  16.  
  17. # Compiler options
  18. CCOPTS =  noversion optimize
  19.  
  20. # Linker options
  21. SLINKOPTS = noicons smallcode smalldata nodebug
  22.  
  23. #########################################################################
  24.  
  25. all: includes/buildin.strings rndpic.module
  26.  
  27. #########################################################################
  28.  
  29. rndpic.module: $(EXAMPLEOBJS) smakefile scoptions
  30.         slink with <<
  31. libprefix _L_
  32. libfd modules.fd
  33. from lib:libent.o lib:libinit.o $(EXAMPLEOBJS)
  34. to $@
  35. lib lib:sc.lib lib:amiga.lib lib:dopuslib.lib lib:sdi_std.lib
  36. libversion $(EXAMPLEVER)
  37. librevision $(EXAMPLEREV)
  38. $(SLINKOPTS)
  39. <
  40.  
  41. #########################################################################
  42.  
  43. # This will create the string file
  44. buildinstrings.o : includes/buildin.strings
  45.         setdate buildinstrings.c
  46.         sc buildinstrings.c
  47.  
  48. #
  49.  
  50. ModuleEntry.o: ModuleEntry.c includes/Project.h includes/buildin.strings includes/Window.h
  51.  
  52. #
  53.  
  54. config.o: config.c includes/Project.h includes/config.h
  55.  
  56. #
  57. modinit.o: modinit.c
  58.  
  59.  
  60. #########################################################################
  61.  
  62.  
  63. .c.o:
  64.         sc $(CCOPTS) $*.c
  65. .asm.o:
  66.         sc:c/asm -iASMINC: $*.asm
  67. .cd.strings:
  68.         catcomp descriptor=$*.cd cfile=$*.strings
  69.  
  70. #########################################################################
  71.  
  72. clean:
  73.         delete ~(\#?_strings).o quiet
  74.         copy *.module DOpus5:modules
  75.         setdate \#?.cd
  76.  
  77. #########################################################################
  78.  
  79. copy: 
  80.         avail flush
  81.         copy *.module DOpus5:modules
  82.         wait 5
  83.         avail flush
  84.         
  85.