Makefile.fpc 944 B

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