File: Makefile

package info (click to toggle)
gir2pas 0.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 732 kB
  • sloc: pascal: 7,033; makefile: 59
file content (29 lines) | stat: -rw-r--r-- 452 bytes parent folder | download | duplicates (2)
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)
UNITS_DIR=lib/${TARGET_CPU}-${TARGET_OS}
OPTIONS=\
 -MObjFPC\
 -Scghi\
 -Cg\
 -O1\
 -gw2\
 -godwarfsets\
 -gl\
 -l\
 -vewnhibq\
 -Fi${UNITS_DIR}\
 -Fu${UNITS_DIR}\
 -FU${UNITS_DIR}\
 -FE.\

OBJ=*.o *.or *.ppu *.rsj

gir2pas:gir2pascal.lpr $(SOURCES)
	mkdir -p ${UNITS_DIR}
	fpc $(OPTIONS) $(FPCOPTS) $< -o$@

clean:
	${RM} -r gir2pas ${UNITS_DIR} $(OBJ)

.PHONY: clean