lazarus/tools/gir2pascal/Makefile
Abou Al Montacir ec6cbdbee7 gir2pas: Fixed make file.
Create units output directory upon build.

Remove output directory recursively.
2023-06-17 21:57:38 +02:00

30 lines
458 B
Makefile

SOURCES=$(wildcard *.pas)
TARGET_CPU=$(shell fpc -iTP)
TARGET_OS=$(shell fpc -iTO)
UNITS_DIR=lib/tools/gir2pascal/${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) $< -o$@
clean:
${RM} -r gir2pas ${UNITS_DIR} $(OBJ)
.PHONY: clean