| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- #
- # Makefile.fpc for FP IDE
- #
- [targets]
- programs=fp
- [dirs]
- fpcdir=../..
- unitdir=$(COMPUNITDIR) $(GDBUNITDIR)
- objdir=$(GDBOBJDIR)
- libdir=$(GDBLIBDIR)
- [require]
- options=-Sg
- packages=api fv gdbint
- [libs]
- libgcc=1
- [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+=$(PACKAGESDIR)/$(GDBINT)
- GDBLIBDIR+=$(PACKAGESDIR)/$(GDBINT)/libgdb/$(OS_TARGET)
- GDBOBJDIR+=$(PACKAGESDIR)/$(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 clean
- clean: fpc_cleanall
- distclean: clean
- 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
|