You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
1.0 KiB

  1. YFLAGS+= -d
  2. OBJS= cd.o cdtext.o time.o cuefile.o
  3. CUE_OBJS= cue_parse.o cue_scan.o cue_print.o
  4. TOC_OBJS= toc_parse.o toc_scan.o toc_print.o
  5. toc_scan.c: LFLAGS+= -Ptoc_yy
  6. cue_scan.c: LFLAGS+= -Pcue_yy
  7. toc_parse.c: YFLAGS+= -p toc_yy
  8. cue_parse.c: YFLAGS+= -p cue_yy
  9. TARGETS= libcuefile.a
  10. all: $(TARGETS)
  11. libcuefile.a: libcuefile.a($(OBJS) $(CUE_OBJS) $(TOC_OBJS))
  12. %.c: %.y
  13. $(YACC) -o $@ $(YFLAGS) $<
  14. install: all
  15. uninstall:
  16. clean:
  17. rm -f $(TARGETS)
  18. rm -f *.o *.a *.core *.output
  19. rm -f toc_scan.c toc_parse.c toc_parse.h
  20. rm -f cue_scan.c cue_parse.c cue_parse.h
  21. # dependancies
  22. # generated with `gcc -MM *.c'
  23. # after building lex and yacc .c files
  24. cd.o: cd.c cd.h cdtext.h
  25. cdtext.o: cdtext.c cdtext.h
  26. cuefile.o: cuefile.c cuefile.h cd.h cdtext.h cue.h toc.h
  27. cue_parse.o: cue_parse.c cd.h cdtext.h time.h
  28. cue_print.o: cue_print.c cd.h cdtext.h time.h
  29. cue_scan.o: cue_scan.c cd.h cdtext.h cue_parse.h
  30. time.o: time.c
  31. toc_parse.o: toc_parse.c cd.h cdtext.h time.h
  32. toc_print.o: toc_print.c cd.h cdtext.h time.h
  33. toc_scan.o: toc_scan.c cd.h cdtext.h toc_parse.h