home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 4 / AACD04.ISO / AACD / Programming / envsof20 / source / syntax / DMakefile < prev    next >
Encoding:
Makefile  |  1999-10-01  |  1.5 KB  |  61 lines

  1.  
  2. # scanner library makefile (DICE)
  3.  
  4. OD     = o/
  5. EXE    = golded:add-ons/eiffel/syntax/eiffel.parser
  6. CFLAGS = -s -mRR -ms -mi -s -// -I$(OD) -l0 -Ldlib: -lc -lamiga20 -proto -Idinclude:amiga30
  7.  
  8. PROTOS = $(OD)lib-protos.h
  9.  
  10. # linker libraries (used during GoldED development only)
  11.  
  12. LIB    = golded:developer/syntax/dlib/scanlib.lib
  13. RLIB   = golded:developer/syntax/dlib/scanlibr.lib
  14. SRLIB  = golded:developer/syntax/dlib/scanlibsr.lib
  15.  
  16. SRCS   = tag.a init.c lib.c funcs.c language.c keyword.c debug.c
  17. OBJS   = $(SRCS:"*.a":"$(OD)*.o") $(SRCS:"*.c":"$(OD)*.o")
  18.  
  19. all: $(OD) $(PROTOS) $(EXE) $(LIB) $(RLIB) $(SRLIB)
  20.  
  21. # note: flush program flushes memory (i.e. any previous version of
  22. # this library that is in memory is flushed), new utility that does
  23. # not exist on older DICE distributions.
  24.  
  25. $(EXE) : $(OBJS)
  26.      dcc $(CFLAGS) %(right) -o %(left) -v
  27.      -flush
  28.  
  29. $(OBJS) : $(SRCS)
  30.      dcc $(CFLAGS) %(right) -o %(left) -c
  31.  
  32. $(PROTOS) : $(SRCS)
  33.      makeproto -o %(left) %(right)
  34.  
  35. $(LIB) : lib.fd
  36.      fdtolib golded:developer/syntax/fd/lib.fd -o t:lib.o -I$(OD)
  37.      copy t:lib.o %(left)
  38.      delete t:lib.o
  39.  
  40. $(RLIB) : lib.fd
  41.      fdtolib golded:developer/syntax/fd/lib.fd -mr -h defs.h -o t:lib.o -I$(OD)
  42.      copy t:lib.o %(left)
  43.      delete t:lib.o
  44.  
  45. $(SRLIB) : lib.fd
  46.      fdtolib golded:developer/syntax/fd/lib.fd -mr -md -h defs.h -o t:lib.o -I$(OD)
  47.      copy t:lib.o %(left)
  48.      delete t:lib.o
  49.  
  50. clean:
  51.      -delete $(OBJS) $(PROTOS) QUIET
  52.      touch golded:syntax/developer/fd/lib.fd
  53.  
  54. $(OD) : $(OD)
  55.      makedir %(left:*/:*)
  56.  
  57. rebuild:
  58.      -touch $(SRCS)
  59.      -dmake
  60.  
  61.