File: Makefile

package info (click to toggle)
gtk3bindings 0.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,676 kB
  • sloc: pascal: 74,064; makefile: 26
file content (29 lines) | stat: -rw-r--r-- 579 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
SOURCES=$(wildcard *.pas)
TARGET_CPU=$(shell fpc -iTP)
TARGET_OS=$(shell fpc -iTO)
PREFIX=/usr/local
UNITS_DIR=units/${TARGET_CPU}-${TARGET_OS}/gtk3
OPTIONS=\
 -Fi${UNITS_DIR}\
 -Fu${UNITS_DIR}\
 -FU${UNITS_DIR}\
 -FE.\

all:${UNITS_DIR}/gtk3.ppu ${UNITS_DIR}/pangocairo1.ppu

install: all install-binaries install-sources

${UNITS_DIR}/%.ppu:%.pas ${SOURCES}
	mkdir -p ${@D}
	fpc $(OPTIONS) $<

install-binaries:
	install -D -t ${PREFIX}/${UNITS_DIR} ${UNITS_DIR}/*

install-sources:
	install -D -t ${PREFIX}/share/gtk4pas/gtk3 ${SOURCES}

clean:
	${RM} -r units

.PHONY: clean