home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Editor / Edge1721.DMS / Edge1721.adf / ExtraStuff / Edge_SasC.lha / makefile.sc6 < prev    next >
Encoding:
Makefile  |  1993-11-09  |  1.0 KB  |  49 lines

  1. # Makefile for project
  2.  
  3. # Change this to the main file name (whitout ext)
  4. # This is also the name of the executable file
  5. MAIN=
  6.  
  7. # Add .o files for all other sourcefiles after $(MAIN).o
  8. # Ex) if graphics.c is one subpart of the project:
  9. #    OBJFILES=lib:c.o $(MAIN).o graphics.o
  10. OBJFILES=lib:c.o $(MAIN).o
  11.  
  12. # Default linker-libraries
  13. # add lib:scm.lib before lib:sc.lib if using math..
  14. LINKLIBS=lib:sc.lib lib:amiga.lib
  15.  
  16. # C-compiler
  17. CC=SC
  18. CFLAGS = 
  19.  
  20. # Assembler
  21. ASM=asm
  22. AFLAGS= -iinclude:
  23.  
  24. # Linker
  25. LINK=slink
  26.  
  27. #Default rules
  28. # C source files (.c -> .o)
  29. .c.o:
  30.     $(CC) $(CFLAGS) $*.c
  31. # ASM source files ( .a .s .asm -> .o)
  32. .a.o:
  33.     $(ASM) $(AFLAGS) -o$*.o $*.a
  34. .s.o:
  35.     $(ASM) $(AFLAGS) -o$*.o $*.s
  36. .asm.o:
  37.     $(ASM) $(AFLAGS) -o$*.o $*.asm
  38.  
  39. # Use defaultrules for compiling... then link
  40. $(MAIN): $(OBJFILES)
  41.     $(LINK) $(OBJFILES) TO $(MAIN) LIB $(LINKLIBS)
  42.  
  43. #Special rules: 
  44. #destination: dependency-files
  45. #        compile-command(s)
  46. #Ex (sound.c -> sound.o, recompile if sound.c or sound.h is changed)
  47. #sound.o: sound.c sound.h
  48. #        $(CC) $(CFLAGS) -y -b0 sound.c
  49.