home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / program / compiler / fasbin21 / fas_src / makefile < prev    next >
Makefile  |  1990-12-11  |  3KB  |  101 lines

  1. # HEADER:    ;
  2. # TITLE:    Frankenstein Cross Assemblers;
  3. # VERSION:     2.0;
  4. # SYSTEM:    Unix (microport system V/AT);
  5. # FILENAME:    Makefile ;
  6. # DESCRIPTION: "Reconfigurable Cross-assembler producing Intel (TM)
  7. #        Hex format object records.  ";
  8. # KEYWORDS:     cross-assemblers, 1805, 2650, 6301, 6502, 6805, 6809, 
  9. #        6811, tms7000, 8048, 8051, 8096, z8, z80;
  10. # WARNINGS:    "This software is in the public domain.  
  11. #        Any prior copyright claims are relinquished.  
  12. #    
  13. #        This software is distributed with no warranty whatever.  
  14. #        The author takes no responsibility for the consequences 
  15. #        of its use.
  16. #    
  17. #        Yacc (or Bison) required to compile."  ;
  18. # AUTHORS:    Mark Zenier;
  19. # COMPILERS:    Microport System V/AT;
  20. #
  21. #    usage    
  22. #        make somename TARGET=somename 
  23. #        make newmachine       clean out machine dependent *.o
  24. #        make clean          clean out for release disk
  25. #
  26. #    Conditional Compilation Flags
  27. #
  28. #    DOSTMP        use the current directory for temporary intermediate
  29. #            file
  30. #    NOGETOPT    use the getopt.h file
  31. #    USEINDEX    redefine the strchr() library function to use
  32. #            the older equivalent name index()
  33. #    NOSTRING    use internal definitions if the <string.h> include
  34. #            file does not exist
  35. #
  36.  
  37.  
  38. TARGET = frasm
  39. PRINTSPOOL = lpr
  40.  
  41. # LEXERDEBUG = -DDEBUG=1
  42. LEXERDEBUG =
  43.  
  44. # for microport and xenix
  45. CFLAGS = -Ml -g 
  46. YACCLEXLIB = -ly 
  47. MAINNEEDS =
  48. MAINDEPENDS =
  49.  
  50. # for dos cross compiled on xenix
  51. # CFLAGS = -dos  -Ml
  52. # YACCLEXLIB =
  53. # MAINNEEDS = -DNOGETOPT -DDOSTMP
  54. # MAINDEPENDS = getopt.h
  55.  
  56. # for v7
  57. # CFLAGS = -DUSEINDEX -DNOSTRING
  58. # YACCLEXLIB = -ly 
  59. # MAINNEEDS = -DNOGETOPT
  60. # MAINDEPENDS = getopt.h
  61.  
  62. clean :
  63.     rm -f *.o fraytok.h 
  64.     rm -f y.tab.[ch]
  65.     rm -f as*.c as*.h as*.o
  66.  
  67. newmachine :
  68.     rm -f fraytok.h
  69.     rm -f fryylex.o
  70.     rm -f $(TARGET).c $(TARGET).h $(TARGET).o
  71.  
  72. $(TARGET) : frasmain.o frapsub.o fryylex.o $(TARGET).o fraosub.o
  73.     cc $(CFLAGS) -o $(TARGET) frasmain.o frapsub.o \
  74.         fraosub.o fryylex.o $(TARGET).o $(YACCLEXLIB)
  75.     rm -f fraytok.h
  76.  
  77. frasmain.o : frasmain.c  frasmdat.h $(MAINDEPENDS)
  78.     cc $(CFLAGS) $(MAINNEEDS) -c frasmain.c
  79.  
  80. $(TARGET).c $(TARGET).h : $(TARGET).y
  81.     yacc -d $(TARGET).y
  82.     mv y.tab.c $(TARGET).c
  83.     mv y.tab.h $(TARGET).h
  84.     rm -f fraytok.h
  85.  
  86. fraytok.h : $(TARGET).h
  87.     cp $(TARGET).h fraytok.h
  88.  
  89. $(TARGET).o : $(TARGET).c  frasmdat.h fragcon.h
  90.     cc $(CFLAGS) -c $(TARGET).c
  91.  
  92. frapsub.o : frapsub.c fragcon.h frasmdat.h fraeuni.h fraebin.h
  93.     cc $(CFLAGS) -c frapsub.c
  94.  
  95. fraosub.o : fraosub.c  frasmdat.h fragcon.h fraeuni.h fraebin.h
  96.     cc $(CFLAGS) -c fraosub.c
  97.  
  98. fryylex.o : fryylex.c frasmdat.h fraytok.h
  99.     cc $(CFLAGS) $(LEXERDEBUG) -c fryylex.c
  100.  
  101.