|
@@ -1,5 +1,5 @@
|
|
|
#
|
|
|
-# Makefile.fpc for WinUnits
|
|
|
+# Makefile.fpc for running fpmake
|
|
|
#
|
|
|
|
|
|
[package]
|
|
@@ -7,67 +7,70 @@ name=winunits-jedi
|
|
|
version=2.7.1
|
|
|
|
|
|
[require]
|
|
|
-packages_win32=winunits-base fcl-registry fcl-base
|
|
|
-packages_win64=winunits-base fcl-registry fcl-base
|
|
|
-
|
|
|
-[target]
|
|
|
-units=buildjwa
|
|
|
-implicitunits= jwawintype jwawinbase jwawinnt \
|
|
|
- jwalmerr jwalmmsg jwaaclui jwaadsdb jwalmerrlog jwalmjoin jwaauthz \
|
|
|
- jwabits jwalmremutl jwalmrepl jwalmserver jwalmshare jwalmsname \
|
|
|
- jwalmstats jwaaccctrl jwaaclapi jwacderr jwacpl jwaactiveds jwadbt jwadde \
|
|
|
- jwaadserr jwaadshlp jwaadsnms jwaadsprop jwaadssts jwaadtgen \
|
|
|
- jwaaf_irda jwaatalkwsh jwaauthif jwadlgs jwadssec jwabatclass \
|
|
|
- jwaexcpt jwaime jwabits1_5 jwabitscfg jwabitsmsg jwablberr \
|
|
|
- jwabluetoothapis jwabthdef jwabthsdpdef jwabugcodes jwalmat jwalmsvc \
|
|
|
- jwacmnquery jwacolordlg jwalmuse jwamsi jwacplext jwacryptuiapi \
|
|
|
- jwanb30 jwanetsh jwapbt jwapdh jwadhcpcsdk jwadhcpsapi jwadhcpssdk \
|
|
|
- jwaprsht jwapsapi jwadsadmin jwadsclient jwadsgetdc jwadskquota \
|
|
|
- jwadsquery jwadsrole jwaqos jwaqossp jwaerrorrep jwarpc jwasddl \
|
|
|
- jwafaxdev jwafaxext jwafaxmmc jwafaxroute jwagpedit jwahherror \
|
|
|
- jwahtmlguid jwahtmlhelp jwaiaccess jwaiadmext jwaicmpapi jwaiiscnfg \
|
|
|
- jwaimagehlp jwalmdfs jwaimapierror jwasens jwasfc jwaioevent \
|
|
|
- jwaipexport jwaiphlpapi jwaipifcons jwaipinfoid jwaiprtrmib \
|
|
|
- jwaiptypes jwaisguids jwaissper16 jwalmaccess jwalmalert jwalmapibuf \
|
|
|
- jwasnmp jwasspi jwalmaudit jwalmconfig jwalmcons jwawpapi \
|
|
|
- jwawsipx jwawsrm jwalmuseflg jwalmwksta jwaloadperf jwalpmapi \
|
|
|
- jwamciavi jwamprerror jwawsvns jwaimapi jwamsidefs jwamsiquery \
|
|
|
- jwamstask jwamstcpip jwamswsock jwanspapi jwantddpar jwantdsapi \
|
|
|
- jwantdsbcli jwantdsbmsg jwantldap jwantquery jwantsecapi jwantstatus \
|
|
|
- jwaobjsel jwapatchapi jwapatchwiz jwapdhmsg jwapowrprof jwaprofinfo \
|
|
|
- jwaprotocol jwaqosname jwaqospol jwareason jwaregstr jwarpcasync \
|
|
|
- jwarpcdce jwarpcnsi jwarpcnterr jwarpcssl jwascesvc jwaschedule \
|
|
|
- jwaschemadef jwasecext jwasecurity jwasensapi jwashlguid jwasisbkup \
|
|
|
- jwasporder jwasrrestoreptapi jwasubauth jwasvcguid jwatlhelp32 \
|
|
|
- jwatmschema jwatraffic jwauserenv jwauxtheme jwawbemcli jwawinable \
|
|
|
- jwawinber jwawincon jwawincpl jwawincred jwawincrypt \
|
|
|
- jwawindns jwawinefs jwawinerror jwawinfax jwawingdi jwawinioctl \
|
|
|
- jwawinldap jwawinnetwk jwawinnls jwawinperf jwawinreg jwawinresrc \
|
|
|
- jwawinsafer jwawinsock jwawinsock2 jwawinsvc jwawinuser \
|
|
|
- jwawinver jwawinwlx jwawmistr jwawownt16 jwawownt32 jwawpapimsg \
|
|
|
- jwawpcrsmsg jwawpftpmsg jwawppstmsg jwawpspihlp jwawptypes \
|
|
|
- jwawpwizmsg jwaws2atm jwaws2bth jwaws2dnet jwaws2spi jwaws2tcpip \
|
|
|
- jwawshisotp jwawsnetbs jwawsnwlink jwawtsapi32 jwazmouse jwasensevts \
|
|
|
- jwaadstlb jwanative jwawindows jwacarderr jwaactivex \
|
|
|
- jwawindllnames jwawinternl jwawinsta jwavista
|
|
|
-
|
|
|
-
|
|
|
-examples=examples
|
|
|
-
|
|
|
-rsts = jwawintype
|
|
|
+packages=rtl fpmkunit
|
|
|
|
|
|
[install]
|
|
|
-buildunit=buildjwa
|
|
|
fpcpackage=y
|
|
|
|
|
|
[default]
|
|
|
fpcdir=../..
|
|
|
|
|
|
-[compiler]
|
|
|
-options=-Ur
|
|
|
-sourcedir=src
|
|
|
-includedir=src
|
|
|
-unitdir=units
|
|
|
+[prerules]
|
|
|
+FPMAKE_BIN_CLEAN=$(wildcard .$(PATHSEP)fpmake$(SRCEXEEXT))
|
|
|
+ifdef OS_TARGET
|
|
|
+FPC_TARGETOPT+=--os=$(OS_TARGET)
|
|
|
+endif
|
|
|
+ifdef CPU_TARGET
|
|
|
+FPC_TARGETOPT+=--cpu=$(CPU_TARGET)
|
|
|
+endif
|
|
|
+LOCALFPMAKE=.$(PATHSEP)fpmake$(SRCEXEEXT)
|
|
|
|
|
|
[rules]
|
|
|
.NOTPARALLEL:
|
|
|
+
|
|
|
+fpmake: fpmake.pp
|
|
|
+ $(FPCFPMAKE) fpmake.pp $(FPMAKE_SKIP_CONFIG) $(addprefix -Fu,$(COMPILER_FPMAKE_UNITDIR)) $(FPCMAKEOPT)
|
|
|
+all: fpmake
|
|
|
+ $(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu
|
|
|
+smart: fpmake
|
|
|
+ $(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu -o -XX -o -CX
|
|
|
+release: fpmake
|
|
|
+ $(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu -o -dRELEASE
|
|
|
+debug: fpmake
|
|
|
+ $(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu -o -dDEBUG
|
|
|
+# If no fpmake exists and (dist)clean is called, do not try to build fpmake, it will
|
|
|
+# most often fail because the dependencies are cleared.
|
|
|
+# In case of a clean, simply do nothing
|
|
|
+ifeq ($(FPMAKE_BIN_CLEAN),)
|
|
|
+clean:
|
|
|
+else
|
|
|
+clean:
|
|
|
+ $(FPMAKE_BIN_CLEAN) clean --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
|
|
|
+endif
|
|
|
+# In case of a distclean, perform an 'old'-style distclean. This to avoid problems
|
|
|
+# when the package is compiled using fpcmake prior to running this clean using fpmake
|
|
|
+ifeq ($(FPMAKE_BIN_CLEAN),)
|
|
|
+distclean: $(addsuffix _distclean,$(TARGET_DIRS)) fpc_cleanall
|
|
|
+else
|
|
|
+distclean:
|
|
|
+ifdef inUnix
|
|
|
+ { $(FPMAKE_BIN_CLEAN) distclean --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC); if [ $$? != "0" ]; then { echo Something wrong with fpmake exectable. Remove the executable and call make recursively to recover.; $(DEL) $(FPMAKE_BIN_CLEAN); $(MAKE) fpc_cleanall; }; fi; }
|
|
|
+else
|
|
|
+ $(FPMAKE_BIN_CLEAN) distclean --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
|
|
|
+endif
|
|
|
+ -$(DEL) $(LOCALFPMAKE)
|
|
|
+endif
|
|
|
+install: fpmake
|
|
|
+ifdef UNIXHier
|
|
|
+ $(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR)
|
|
|
+else
|
|
|
+ $(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR)
|
|
|
+endif
|
|
|
+# distinstall also installs the example-sources
|
|
|
+distinstall: fpmake
|
|
|
+ifdef UNIXHier
|
|
|
+ $(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR) -ie
|
|
|
+else
|
|
|
+ $(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR) -ie
|
|
|
+endif
|
|
|
+
|