Makefile.fpc 976 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #
  2. # Makefile.fpc for Free Pascal GDB Interface
  3. #
  4. [targets]
  5. units=gdbint gdbcon
  6. examples=testgdb symify
  7. [install]
  8. examplesubdir=gdbint
  9. [dirs]
  10. fpcdir=../..
  11. targetdir=.
  12. objdir=libgdb/$(OS_TARGET)
  13. libdir=libgdb/$(OS_TARGET)
  14. [libs]
  15. libgcc=1
  16. [rules]
  17. gdbint$(PPUEXT): gdbint$(PASEXT)
  18. gdbcon$(PPUEXT): gdbcon$(PASEXT) gdbint$(PPUEXT)
  19. ifeq ($(OS_TARGET),go32v2)
  20. DBGCOM=dbgcom$(OEXT)
  21. else
  22. DBGCOM=
  23. endif
  24. ifdef $(COMPILEDBGCOM)
  25. # FPC conditionnal remove the file watching mecanism introduced
  26. # in v2.02 of dbgcom.c because it relies
  27. # on the fact that all files are opened via C lib calls
  28. # which is wrong for FPC !!
  29. $(DBGCOM): ../v4.16/dbgcom.c
  30. gcc -c -DFPC -Dother_sel -gstabs -o dbgcom.o -I../v4.16 ../v4.16/dbgcom.c
  31. else
  32. $(DBGCOM):
  33. endif
  34. simple: $(DBGCOM)
  35. -rm gdbint.ppu
  36. ppc386 -dUSE_LIBGDB gdbint
  37. ppc386 testgdb
  38. testgdb$(EXEEXT): testgdb.pp gdbint$(PPUEXT) gdbcon$(PPUEXT) $(DBGCOM)
  39. # Allow test for example
  40. .PHONY: test
  41. test: examples