home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / program / cdecl / makefile < prev    next >
Encoding:
Makefile  |  1993-10-23  |  1.4 KB  |  54 lines

  1. # @(#)makefile    2.2 1/20/88
  2. # the following can be added to CFLAGS for various things
  3. #
  4. # add -DNOVOID        If your compiler can not handle the void keyword.
  5. # add -DBSD        For BSD4.[23] UNIX Systems.
  6. # add -DDOS        For MS-DOS/PC-DOS Systems, Micro-Soft C 4.0, Turbo C
  7. #                Use the ANSI option.
  8. # add -DNOGETOPT    If your library doesn't have getopt().
  9. #                Another routine will be used in its place.
  10. # add -DNOVARARGS    If you have neither <stdarg.h> (ANSI C) or
  11. #                <varargs.h> (pre-ANSI C).
  12. #                Another method will be compiled instead.
  13. # add -Ddodebug        To compile in debugging trace statements.
  14. # add -Ddoyydebug    To compile in yacc trace statements.
  15.  
  16. #CFLAGS= -g -Ddodebug -Ddoyydebug
  17. CFLAGS= -O
  18. #CC= cc
  19. ALLFILES= makefile cdgram.y cdlex.l cdecl.c cdecl.1 testset testset++
  20. #BIN= /usr/lubin
  21.  
  22. #cdecl: c++decl test
  23.  
  24. #c++decl: cdgram.c cdlex.c cdecl.c
  25. cdecl.ttp: cdgram.c cdlex.c cdecl.c
  26.     $(CC) $(CFLAGS) -o cdecl cdecl.c
  27. #    -ln cdecl c++decl
  28.  
  29. cdlex.c: cdlex.l
  30. #    lex cdlex.l && mv lex.yy.c cdlex.c
  31.  
  32. cdgram.c: cdgram.y
  33. #    yacc cdgram.y && mv y.tab.c cdgram.c
  34.  
  35. test:
  36.     ./cdecl < testset
  37.     ./c++decl < testset++
  38.  
  39. install: c++decl
  40.     mv cdecl $(BIN)/cdecl
  41.     ln $(BIN)/cdecl $(BIN)/c++decl
  42.  
  43. clean:
  44.     rm -f cdgram.c cdlex.c cdecl y.output c++decl
  45.  
  46. clobber: clean
  47.     rm -f $(BIN)/cdecl $(BIN)/c++decl
  48.  
  49. cdecl.cpio: $(ALLFILES)
  50.     ls $(ALLFILES) | cpio -ocv > cdecl.cpio
  51.  
  52. cdecl.shar: $(ALLFILES)
  53.     shar $(ALLFILES) > cdecl.shar
  54.