fpc/packages/base/graph/Makefile.fpc
florian cfe47bf0d8 * don't create shared libs for graph
git-svn-id: trunk@2262 -
2006-01-11 22:50:24 +00:00

90 lines
1.5 KiB
Makefile

#
# Makefile.fpc for Free Component Library
#
[package]
name=graph
version=2.1
[require]
libc=y
# clean package units
[clean]
units=$(GGIGRAPH_UNIT) $(GRAPH_UNIT)
[target]
dirs=
units=
units_linux=$(GRAPH_UNIT) $(GGIGRAPH_UNIT)
units_freebsd=graph $(GGIGRAPH_UNIT)
units_win32=graph wincrt winmouse
units_go32v2=graph
units_amiga=graph
[compiler]
options=-S2
includedir=$(OS_TARGET) inc
includedir_linux=unix
includedir_freebsd=unix
includedir_darwin=unix
includedir_netbsd=unix
includedir_openbsd=unix
sourcedir=$(OS_TARGET) inc
[install]
fpcpackage=y
[default]
fpcdir=../../..
[shared]
build=n
[prerules]
GRAPHDIR=inc
UNIXINC=unix
ifndef USELIBGGI
USELIBGGI=NO
endif
GGIGRAPH_UNIT=ggigraph
GRAPH_UNIT=graph
GRAPHUNIT_DIR=$(OS_TARGET)
ifeq ($(OS_TARGET),linux)
GRAPHUNIT_DIR=unix
UNIXINCDEPS=$(UNIXINC)/graph16.inc
ifeq ($(CPU_TARGET),powerpc64)
GGIGRAPH_UNIT=
endif
ifneq ($(CPU_TARGET),i386)
GRAPH_UNIT=
endif
endif
ifeq ($(OS_TARGET),freebsd)
GRAPHUNIT_DIR=unix
UNIXINCDEPS=$(UNIXINC)/graph16.inc
endif
[rules]
include inc/makefile.inc
GRAPHINCDEPS=$(addprefix $(GRAPHDIR)/,$(GRAPHINCNAMES)) $(UNIXINCDEPS)
graph$(PPUEXT) : graph.pp $(GRAPHINCDEPS)
$(COMPILER) -I$(GRAPHDIR) $(GRAPHUNIT_DIR)/graph.pp
ggigraph$(PPUEXT) : $(UNIXINC)/ggigraph.pp $(GRAPHINCDEPS)
$(COMPILER) -I$(GRAPHDIR) $(UNIXINC)/ggigraph.pp
winmouse$(PPUEXT) : win32/winmouse.pp graph$(PPUEXT)
$(COMPILER) win32/winmouse.pp
wincrt$(PPUEXT) : win32/wincrt.pp graph$(PPUEXT)
$(COMPILER) win32/wincrt.pp