mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-20 00:51:56 +02:00
53 lines
1010 B
Makefile
53 lines
1010 B
Makefile
#
|
|
# Makefile.fpc for Free Pascal GTK 1.2.x Bindings
|
|
#
|
|
|
|
[targets]
|
|
units=glib gmodule gdk gtk
|
|
|
|
[dirs]
|
|
fpcdir=../..
|
|
sourcesdir=glib gdk gtk
|
|
targetdir=.
|
|
|
|
[libs]
|
|
libname=fpgtk
|
|
|
|
|
|
[rules]
|
|
clean: fpc_clean
|
|
$(MAKE) -C examples clean
|
|
$(MAKE) -C tutorial clean
|
|
|
|
glib$(PPUEXT): $(wildcard glib/glib*$(PASEXT))
|
|
|
|
gmodule$(PPUEXT): $(wildcard glib/gmodule*$(PASEXT)) glib$(PPUEXT)
|
|
|
|
gdk$(PPUEXT): $(wildcard gdk/gdk*$(PASEXT)) glib$(PPUEXT)
|
|
|
|
gtk$(PPUEXT): $(wildcard gtk/gtk*$(PASEXT)) gdk$(PPUEXT)
|
|
|
|
|
|
# Examples, tutorial
|
|
|
|
.PHONY: examples tutorial installexamples
|
|
|
|
examples: all
|
|
$(MAKE) -C examples
|
|
|
|
tutorial: all
|
|
$(MAKE) -C tutorial
|
|
|
|
ifndef EXAMPLESINSTALLDIR
|
|
EXAMPLESINSTALLDIR=$(DOCINSTALLDIR)/examples
|
|
endif
|
|
ifndef TUTORIALINSTALLDIR
|
|
TUTORIALINSTALLDIR=$(DOCINSTALLDIR)/tutorial
|
|
endif
|
|
|
|
installexamples:
|
|
$(MKDIR) $(EXAMPLESINSTALLDIR)
|
|
$(COPYTREE) examples/* $(EXAMPLESINSTALLDIR)
|
|
$(MKDIR) $(TUTORIALINSTALLDIR)
|
|
$(COPYTREE) tutorial/* $(TUTORIALINSTALLDIR)
|