| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- #
- # Makefile.fpc for FP IDE
- #
- [targets]
- programs=fp
- [dirs]
- fpcdir=../..
- unitdir=$(COMPUNITDIR) $(GDBUNITDIR)
- objdir=$(GDBOBJDIR)
- libdir=$(GDBLIBDIR)
- [packages]
- packages=api fv gdbint
- [libs]
- libgcc=1
- [defaults]
- defaultoptions=-Sg
- [presettings]
- # when making a full version include the compiler
- ifeq ($(FULL),1)
- override COMPUNITDIR+=../../compiler
- else
- override COMPUNITDIR+=../fake/compiler
- endif
- # when including debugger include the gdbinterface
- ifndef GDBINT
- GDBINT=gdbint
- endif
- ifeq ($(GDB),1)
- GDBUNITDIR+=$(PACKAGEDIR)/$(GDBINT)
- GDBLIBDIR+=$(PACKAGEDIR)/$(GDBINT)/libgdb/$(OS_TARGET)
- GDBOBJDIR+=$(PACKAGEDIR)/$(GDBINT)/libgdb/$(OS_TARGET)
- ifeq ($(OS_TARGET),go32v2)
- ifneq ($(DJDIR),)
- GDBLIBDIR+=$(DJDIR)/lib
- endif
- endif
- else
- override GDBUNITDIR+=../fake/gdb
- endif
- [postsettings]
- ifeq ($(FULL),1)
- override NEEDOPT+=-dBrowserCol -dGDB -Sg
- endif
- [rules]
- .PHONY: gdb full fullgdb clean_compiler
- fp$(EXEEXT): $(wildcard *.pas) $(wildcard *.inc)
- gdb:
- $(MAKE) all GDB=1
- full:
- $(MAKE) all FULL=1
- fullgdb:
- $(MAKE) all FULL=1 GDB=1
- # This is necessary because we don't have all units separate in the
- # units targets
- clean: fpc_cleanall
- #
- # Installation
- #
- install: fpc_install
- $(INSTALL) $(wildcard *.pt) $(wildcard *.tdf) readme.txt $(BININSTALLDIR)
- #
- # Misc
- #
- clean_compiler:
- $(MAKE) -C ../../compiler clean
|